For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/es/api/latest/fleet-automation/list-tracers-for-a-specific-agent.md. A documentation index is available at /llms.txt.
Language
Datadog site

List tracers for a specific agent

ADVERTENCIAThis endpoint is in Preview and may introduce breaking changes. If you have any feedback, contact Datadog support.
GEThttps://api.datadoghq.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.us3.datadoghq.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.us5.datadoghq.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.datadoghq.eu/api/unstable/fleet/agents/{agent_key}/tracershttps://api.ap1.datadoghq.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.ap2.datadoghq.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.uk1.datadoghq.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.ddog-gov.com/api/unstable/fleet/agents/{agent_key}/tracershttps://api.us2.ddog-gov.com/api/unstable/fleet/agents/{agent_key}/tracers

Descripción general

Retrieve a paginated list of tracers for a specific agent.

This endpoint returns tracers associated with a given agent key, identified by the agent's hostname. Use this to discover telemetry-derived service names for a particular host.

This endpoint requires the hosts_read permission.

Argumentos

Parámetros de ruta

Nombre
Type
Descripción
agent_key [required]
string

The unique identifier (agent key) for the Datadog Agent.

Cadenas de consulta

Nombre
Type
Descripción
page_number
integer

Page number for pagination (starts at 0).

Default: 0
page_size
integer

Number of results per page (must be greater than 0 and less than or equal to 100).

Default: 10
sort_attribute
string

Attribute to sort by.

sort_descending
boolean

Sort order (true for descending, false for ascending).

Default: true

Respuesta

OK

Response containing a paginated list of fleet tracers.

Campo
Type
Descripción
data [required]
object

The response data containing status and tracers array.

meta
object

Metadata for the list of tracers response.

Ejemplo de código

List tracers for a specific agent
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export agent_key="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/unstable/fleet/agents/${agent_key}/tracers" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"