Retrieve node status
GET/node/status
Get the current status of the node including hostname, uptime, load averages, memory, and disk usage.
Request
Query Parameters
Default value: _any
Target: _any (load-balanced), _all (broadcast), hostname (direct), or key:value (label group, e.g., group:web.dev).
Responses
- 200
- 400
- 401
- 403
- 500
A JSON object containing the node's status information.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The job ID used to process this request.
results
object[]
required
The hostname of the system.
The uptime of the system.
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.
disks
object[]
List of local disk usage information.
Disk identifier, e.g., "/dev/sda1".
Total disk space in bytes.
Used disk space in bytes.
Free disk space in bytes.
os_info
object
Operating system information.
The name of the Linux distribution.
The version of the Linux distribution.
Error message if the agent failed to process the request.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"results": [
{
"hostname": "my-linux-server",
"uptime": "0 days, 4 hours, 1 minute",
"load_average": {
"1min": 0.32,
"5min": 0.28,
"15min": 0.25
},
"memory": {
"total": 8388608,
"free": 2097152,
"used": 4194304
},
"disks": [
{
"name": "/dev/sda1",
"total": 500000000000,
"used": 250000000000,
"free": 250000000000
}
],
"os_info": {
"distribution": "Ubuntu",
"version": "20.04"
},
"error": "string"
}
]
}
Invalid request parameters.
- 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
}
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 retrieving node status.
- 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
}