the selector to filter agents by, e.g. configuration=my-config
offsetstringOptional
the pagination offset
limitstringOptional
the maximum number of results to return
sortstringOptional
the field on which to sort results. A '-' prefix indicates descending sorting.
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
/agents
Delete agents by ids
delete
Query parameters
limitintegerOptional
the maximum number of agents to delete
Body
idsstring[]Optional
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
/agents
Bulk apply labels to agents
patch
Body
Body of the request to update labels for multiple agents
idsstring[]Optional
IDs is the list of agent IDs to update
Example: ["agent1","agent2"]
includeFailedIdsbooleanOptional
IncludeFailedIDs when true, and when IDs are provided, will include the IDs that failed to update
in the BulkAgentLabelsResponse under the "failedIds" field.
overwritebooleanOptional
Overwrite is true if the labels should be overwritten. Must be true if modifying a pre-existing label value.
querystringOptional
Query is a query string to find agents to update, e.g. "env:production". A query can
match fields or labels on the agent.
Example: env:production
selectorstringOptional
Selector is the selector to find agents to update, e.g. "env=production". A selector
matches labels on the agent and supports "!", "=", "==", "in", "!=", "notin", and
"exists" operators.
Example: env=production
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
patch
/agents/labels
Update multiple agents
patch
Body
idsstring[]Optional
versionstringOptional
Responses
204
Upgrade request processed, no content
401
Unauthorized
application/json
500
Internal Server Error
application/json
patch
/agents/version
No content
Get agent by id
get
Path parameters
idstringRequired
the id of the agent
Responses
200
OK
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
/agents/{id}
Get configuration for a given agent
get
Path parameters
idstringRequired
the id of the agent
Responses
200
OK
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
/agents/{id}/configuration
Disconnect an agent by id
post
Path parameters
idstringRequired
the id of the agent
Responses
204
Disconnect request processed, no content
500
Internal Server Error
application/json
post
/agents/{id}/disconnect
No content
Get agent labels by agent id
get
Path parameters
idstringRequired
the id of the agent
Responses
200
OK
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
/agents/{id}/labels
Patch agent labels by agent id
patch
Path parameters
idstringRequired
the id of the agent
Query parameters
overwritestringOptional
if true, overwrite any existing labels with the same names