GET https://api.ap1.datadoghq.com/api/v2/csm/onboarding/serverless/agents https://api.datadoghq.eu/api/v2/csm/onboarding/serverless/agents https://api.ddog-gov.com/api/v2/csm/onboarding/serverless/agents https://api.datadoghq.com/api/v2/csm/onboarding/serverless/agents https://api.us3.datadoghq.com/api/v2/csm/onboarding/serverless/agents https://api.us5.datadoghq.com/api/v2/csm/onboarding/serverless/agents
Información general Get the list of all CSM Serverless Agents running on your hosts and containers.
Argumentos Cadenas de consulta The page index for pagination (zero-based).
The number of items to include in a single page.
A search query string to filter results (for example, hostname:COMP-T2H4J27423
).
The sort direction for results. Use asc
for ascending or desc
for descending. Allowed enum values: asc, desc
Respuesta OK
Response object that includes a list of CSM Agents.
Expand All
A CSM Agent returned by the API.
Version of the Datadog Agent.
List of cluster names associated with the Agent.
Unique identifier for the Datadog Agent.
ARN of the ECS Fargate task.
List of environments associated with the Agent.
install_method_installer_version
Version of the installer used for installing the Datadog Agent.
Tool used for installing the Datadog Agent.
is_csm_vm_containers_enabled
Indicates if CSM VM Containers is enabled.
Indicates if CSM VM Hosts is enabled.
Indicates if CSPM is enabled.
Indicates if CWS is enabled.
is_cws_remote_configuration_enabled
Indicates if CWS Remote Configuration is enabled.
is_remote_configuration_enabled
Indicates if Remote Configuration is enabled.
Operating system of the host.
The type of the resource. The value should always be datadog_agent
.
Allowed enum values: datadog_agent
default: datadog_agent
Metadata related to the paginated response.
The index of the current page in the paginated results.
The number of items per page in the paginated results.
Total number of items that match the filter criteria.
{
"data" : [
{
"attributes" : {
"agent_version" : "string" ,
"aws_fargate" : "string" ,
"cluster_name" : [],
"datadog_agent" : "string" ,
"ecs_fargate_task_arn" : "string" ,
"envs" : [],
"host_id" : "integer" ,
"hostname" : "string" ,
"install_method_installer_version" : "string" ,
"install_method_tool" : "string" ,
"is_csm_vm_containers_enabled" : false ,
"is_csm_vm_hosts_enabled" : false ,
"is_cspm_enabled" : false ,
"is_cws_enabled" : false ,
"is_cws_remote_configuration_enabled" : false ,
"is_remote_configuration_enabled" : false ,
"os" : "string"
},
"id" : "fffffc5505f6a006fdf7cf5aae053653" ,
"type" : "datadog_agent"
}
],
"meta" : {
"page_index" : 0 ,
"page_size" : 10 ,
"total_filtered" : 128697
}
}
Not Authorized
{
"errors" : [
"Bad Request"
]
}
Too many requests
{
"errors" : [
"Bad Request"
]
}
Ejemplo de código Copia
# Curl command curl -X GET "https://api.ap1.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v2/csm/onboarding/serverless/agents " \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} "