CSM Settings
List unified hosts
Get the list of unified hosts for CSM, combining agent and agentless host data, with optional pagination and filtering.
get/api/v2/csm/settings/hosts
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/csm/settings/hosts
- AuthAPI key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
Query parameters
pageinteger
The page index for pagination (zero-based).
sizeinteger
Example:10
The number of hosts to return per page.
querystring
Example:source:agent
A search query string to filter unified hosts.
Response
OK
Example response
{
"data": [
{
"attributes": {
"account_id": "123456789012",
"agent_csm_vm_hosts_enabled": true,
"agent_posture_management": true,
"agent_version": "7.50.0",
"agentless_vulnerability_scanning": true,
"cloud_provider": "aws",
"cluster_name": "my-cluster",
"datadog_agent_key": "key123",
"env": [
"prod"
],
"host_id": 12345678,
"install_method_tool": "helm",
"os": "linux",
"resource_type": "aws_ec2_instance",
"source": "agent"
},
"id": "i-0123456789abcdef0",
"type": "unified_host"
}
],
"meta": {
"page_size": 10,
"total_filtered": 100,
"total_pages": 10
}
}Changes
No recorded changes to this operation across all 1 revision of this API.