Skip to main content

Agent

Manage the agents in the fleet: discovery, drain and PKI enrollment. osapi dsl endpoint get --name agent shows the same.

Endpoint group​

Nameagent
DescriptionManage the agents in the fleet: discovery, drain and PKI enrollment
Areafleet

Methods (8)​

NAMEVERBPATHPERMISSIONOPERATION ID
factsGET/api/agent/factsagent:readGetAgentFacts
listGET/api/agentagent:readGetAgents
getGET/api/agent/{hostname}agent:readGetAgentDetails
joinPOST/api/agent/joinnone (public)JoinAgent
drainPOST/api/agent/{hostname}/drainagent:writeDrainAgent
getconfigGET/api/agent/config/{hostname}agent:readGetAgentConfig
setconfigPUT/api/agent/config/{hostname}agent:writePutAgentConfig
undrainPOST/api/agent/{hostname}/undrainagent:writeUndrainAgent

Types (8)​

NAMEINPUTOUTPUT
factsFactsInputFactKeysResponse { items, total_items }
listListInputListAgentsResponse { items, total_items }
getGetInput { 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 }
joinJoinInputJoinResponse { controller_public_key }
drainDrainInput { hostname* }
getconfigConfigGetInput { hostname* }AgentConfigResponse { version, labels, updated_at }
setconfigConfigSetInput { hostname*, body* }AgentConfigResponse { version, labels, updated_at }
undrainUndrainInput { hostname* }