Get agents
[Required authorization] Route required privileges: fleet-agents-read.
Query parameters
-
page
number -
perPage
number Default value is
20
. -
kuery
string -
showAgentless
boolean Default value is
true
. -
showInactive
boolean Default value is
false
. -
withMetrics
boolean Default value is
false
. -
showUpgradeable
boolean Default value is
false
. -
getStatusSummary
boolean Default value is
false
. -
sortField
string -
sortOrder
string Values are
asc
ordesc
. -
searchAfter
string -
openPit
boolean -
pitId
string -
pitKeepAlive
string
GET
/api/fleet/agents
curl \
--request GET 'https://localhost:5601/api/fleet/agents' \
--header "Authorization: $API_KEY"