List active agents
GET/node
Discover all active agents in the fleet.
Responses
- 200
- 401
- 403
- 500
List of active agents.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
agents
object[]
required
hostname stringrequired
The hostname of the agent.
total integerrequired
Total number of active agents.
{
"agents": [
{
"hostname": "string"
}
],
"total": 0
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error discovering agents.
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Loading...