Skip to main content

List

List the endpoint groups this binary has.

osapi dsl endpoint list

Examples​

osapi dsl endpoint list
osapi dsl endpoint list --json

Result​

The command prints:

$ osapi dsl endpoint list
Endpoint groups (2):
  NAME   AREA   METHODS                            DESCRIPTION
  agent  fleet  status, list, get, drain, undrain  Manage the agents in the fleet: discovery, drain and PKI enrollment
  audit  audit  list, export, get                  Read the audit log

With --json, the command prints:

{
"items": [
{
"name": "agent",
"area": "fleet",
"methods": ["status", "list", "get", "drain", "undrain"],
"doc": "Manage the agents in the fleet: discovery, drain and PKI enrollment"
},
{
"name": "audit",
"area": "audit",
"methods": ["list", "export", "get"],
"doc": "Read the audit log"
}
]
}

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file; without one at the default path, osapi runs on the defaults/etc/osapi/osapi.yaml

Output tells how the result is printed, and what --json gives.