Get process by PID
GET/node/:hostname/process/:pid
Get detailed information about a specific process by PID.
Request
Path Parameters
Possible values: non-empty
Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).
Possible values: >= 1
Process identifier (PID).
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Process detail.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The job ID used to process this request.
results
object[]
required
The hostname of the agent.
Possible values: [ok, failed, skipped]
The status of the operation for this host.
process
object
Information about a running process.
Process identifier.
Process name.
User running the process.
Process state.
CPU usage percentage.
Memory usage percentage.
Resident set size in bytes.
Full command line.
Process start time.
Error message if the agent failed.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"results": [
{
"hostname": "string",
"status": "ok",
"process": {
"pid": 1234,
"name": "nginx",
"user": "www-data",
"state": "running",
"cpu_percent": 2.5,
"mem_percent": 1.2,
"mem_rss": 12345678,
"command": "nginx: master process /usr/sbin/nginx",
"start_time": "2026-01-15T10:30:00Z"
},
"error": "string"
}
]
}
Bad request - validation error.
- 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
}
Process not found.
- 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 getting process.
- 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
}