List active agents
GET/api/agent
Discover all active agents in the fleet.
Responses
- 200
- 401
- 403
- 500
List of active agents.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
Array [
]
]
agents
object[]
required
The permanent machine identifier.
The SHA256 fingerprint of the agent's PKI public key. Empty when PKI is disabled.
The hostname of the agent.
Possible values: [Ready, NotReady]
The current status of the agent.
labels
object
Key-value labels configured on the agent.
When the agent last refreshed its heartbeat.
When the agent process started.
os_info
object
Operating system information.
The name of the Linux distribution.
The version of the Linux distribution.
The system uptime.
load_average
object
The system load averages for 1, 5, and 15 minutes.
Load average for the last 1 minute.
Load average for the last 5 minutes.
Load average for the last 15 minutes.
memory
object
Memory usage information.
Total memory in bytes.
Free memory in bytes.
Used memory in bytes.
CPU architecture.
OS kernel version.
Number of logical CPUs.
Fully qualified domain name.
Init system.
Package manager.
interfaces
object[]
Possible values: [inet, inet6, dual]
IP address family.
Name of the interface used for the default route.
routes
object[]
Network routing table entries.
Destination network address.
Gateway address.
Network interface name.
Network mask in CIDR notation.
Route metric.
Route flags.
facts
object
Extended facts from additional providers.
Extended facts from additional providers.
Possible values: [Ready, Draining, Cordoned, Pending]
Agent scheduling state.
conditions
object[]
Evaluated node conditions.
Possible values: [MemoryPressure, HighLoad, DiskPressure]
timeline
object[]
Agent state transition history.
Total number of active agents.
{
"agents": [
{
"machine_id": "string",
"fingerprint": "string",
"hostname": "string",
"status": "Ready",
"labels": {},
"registered_at": "2024-07-29T15:51:28.071Z",
"started_at": "2024-07-29T15:51:28.071Z",
"os_info": {
"distribution": "Ubuntu",
"version": "20.04"
},
"uptime": "string",
"load_average": {
"1min": 0.32,
"5min": 0.28,
"15min": 0.25
},
"memory": {
"total": 8388608,
"free": 2097152,
"used": 4194304
},
"architecture": "amd64",
"kernel_version": "5.15.0-91-generic",
"cpu_count": 4,
"fqdn": "web-01.example.com",
"service_mgr": "systemd",
"package_mgr": "apt",
"interfaces": [
{
"name": "eth0",
"ipv4": "192.168.1.10",
"ipv6": "fe80::1",
"mac": "00:11:22:33:44:55",
"family": "dual"
}
],
"primary_interface": "eth0",
"routes": [
{
"destination": "0.0.0.0",
"gateway": "192.168.1.1",
"interface": "eth0",
"mask": "/0",
"metric": 100,
"flags": "0003"
}
],
"facts": {},
"state": "Ready",
"conditions": [
{
"type": "MemoryPressure",
"status": true,
"reason": "string",
"last_transition_time": "2024-07-29T15:51:28.071Z"
}
],
"timeline": [
{
"timestamp": "2024-07-29T15:51:28.071Z",
"event": "string",
"hostname": "string",
"message": "string",
"error": "string"
}
]
}
],
"total": 0
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
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
A description of the error that occurred.
Additional details about the error.
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
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}