Agent
Manage the agents in the fleet: discovery, drain and PKI enrollment.
osapi dsl endpoint get --name agent shows the same.
Endpoint group
| Name | agent |
| Description | Manage the agents in the fleet: discovery, drain and PKI enrollment |
| Area | fleet |
Methods (8)
| NAME | VERB | PATH | PERMISSION | OPERATION ID |
|---|---|---|---|---|
| facts | GET | /api/agent/facts | agent:read | GetAgentFacts |
| list | GET | /api/agent | agent:read | GetAgents |
| get | GET | /api/agent/{hostname} | agent:read | GetAgentDetails |
| join | POST | /api/agent/join | none (public) | JoinAgent |
| drain | POST | /api/agent/{hostname}/drain | agent:write | DrainAgent |
| getconfig | GET | /api/agent/config/{hostname} | agent:read | GetAgentConfig |
| setconfig | PUT | /api/agent/config/{hostname} | agent:write | PutAgentConfig |
| undrain | POST | /api/agent/{hostname}/undrain | agent:write | UndrainAgent |
Types (8)
| NAME | INPUT | OUTPUT |
|---|---|---|
| facts | FactsInput | FactKeysResponse { items, total_items } |
| list | ListInput | ListAgentsResponse { items, total_items } |
| get | GetInput { hostname* } | AgentInfo { hostname, machine_id, state, conditions, labels, started_at, load_average, os_info, version, config_version, config_wanted, config_behind, fingerprint, registered_at, uptime, memory, architecture, kernel_version, cpu_count, fqdn, service_mgr, package_mgr, primary_interface, interfaces, routes, missing_programs, facts, timeline, key_stored, verified } |
| join | JoinInput | JoinResponse { controller_public_key } |
| drain | DrainInput { hostname* } | |
| getconfig | ConfigGetInput { hostname* } | AgentConfigResponse { version, labels, updated_at } |
| setconfig | ConfigSetInput { hostname*, body* } | AgentConfigResponse { version, labels, updated_at } |
| undrain | UndrainInput { hostname* } |