Distributed Cloud AIP sends event data to the Distributed Cloud AIP platform for analysis. An Agent is considered online
when it is actively connected to the Distributed Cloud AIP platform and is sending data. An Agent is considered offline
if it cannot connect and send messages to the Distributed Cloud AIP platform.
The Agent sends metadata from the host system that includes the hostname
and kernel
. That metadata is included in the response from this endpoint. Distributed Cloud AIP automatically revokes Agents if they are offline
and have not reported in 1 day.
This method enables you to get a list of all the online
or offline
Distributed Cloud AIP Agents in your environment.
NOTE
status
is a required query parameter for the /agents endpoint.- This endpoint is paginated and returns up to 100 records at a time. See Pagination.
NOTE
agentModuleHealth
returnsUNSUPPORTED
fordnsTracer
,networkTracer
, andprocessSandbox
for Agents that do not support eBPF (2.x and earlier).
Find online
Agents limited to a specific agent type
(monitor or investigate):
https://api.threatstack.com/v2/agents?status=online&type=investigate
Find online
Agents limited to the hostname
(example: testing_i-12345):
https://api.threatstack.com/v2/agents?status=online&hostname=testing_i-12345
Find online
Agents created from
yyyy-mm-dd and until
yyyy-mm-dd:
https://api.threatstack.com/v2/agents?status=online&from=2017-01-01&until=2017-04-01
A 400 error code can occur when a required parameter is missing or when you have not correctly specified a valid option for a parameter.
You may see this on status
(online/offline), type
(monitor/investigate), or if the until
date is prior to the from
date - or the reverse."
Success
Bad parameters
Unauthorized response
Rate limit hit
An internal error has occurred
{- "agents": [
- {
- "id": "string",
- "instanceId": "string",
- "status": "string",
- "createdAt": "string",
- "lastReportedAt": "string",
- "version": "string",
- "name": "string",
- "description": "string",
- "hostname": "string",
- "ipAddress": [
- {
- "private": "string",
- "link_local": "string",
- "public": "string"
}
], - "tags": [
- {
- "key": "string",
- "value": "string",
- "source": "string"
}
], - "agentType": "string",
- "kernel": "string",
- "osVersion": "string",
- "agentModuleHealth": {
- "isHealthy": true,
- "login": {
- "state": "UP"
}, - "audit": {
- "state": "UP"
}, - "logScan": {
- "state": "UP"
}, - "vulnScan": {
- "state": "UP"
}, - "FIM": {
- "state": "UP"
}, - "containerdMonitoring": {
- "state": "UP"
}, - "dockerMonitoring": {
- "state": "UP"
}, - "kubesAudit": {
- "state": "UP"
}
}
}
]
}
This method enables you to get the details of an Agent with an agentId
.
NOTE
You can only pass one
agentId
at a time.
NOTE
agentModuleHealth
returnsUNSUPPORTED
fordnsTracer
,networkTracer
, andprocessSandbox
for Agents that do not support eBPF (2.x and earlier).
Find the details of an Agent by agentId
:
https://api.threatstack.com/v2/agents/{agentId}
A 404 error message for agentId
means the Agent ID was not found in the database.
Success
Unauthorized response
The resource was not found
Rate limit hit
An internal error has occurred
{- "id": "string",
- "instanceId": "string",
- "status": "string",
- "createdAt": "string",
- "lastReportedAt": "string",
- "version": "string",
- "name": "string",
- "description": "string",
- "hostname": "string",
- "ipAddress": [
- {
- "private": "string",
- "link_local": "string",
- "public": "string"
}
], - "tags": [
- {
- "key": "string",
- "value": "string",
- "source": "string"
}
], - "agentType": "string",
- "kernel": "string",
- "osVersion": "string",
- "agentModuleHealth": {
- "isHealthy": true,
- "login": {
- "state": "UP"
}, - "audit": {
- "state": "UP"
}, - "logScan": {
- "state": "UP"
}, - "vulnScan": {
- "state": "UP"
}, - "FIM": {
- "state": "UP"
}, - "containerdMonitoring": {
- "state": "UP"
}, - "dockerMonitoring": {
- "state": "UP"
}, - "kubesAudit": {
- "state": "UP"
}
}
}