For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/fr/api/latest/csm-ownership/get-the-evidence-for-an-ownership-inference.md. A documentation index is available at /llms.txt.
Language
Datadog site

Get the evidence for an ownership inference

WARNINGNote: This endpoint is in Preview and may be subject to change. If you have any feedback, contact Datadog support.
GEThttps://api.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.us3.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.us5.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.datadoghq.eu/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.ap1.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.ap2.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.uk1.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.ddog-gov.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidencehttps://api.us2.ddog-gov.com/api/v2/csm/ownership/{resource_id}/{owner_type}/evidence

Présentation

Get the evidence versions backing the current ownership inference for a resource and owner type.

This endpoint supports weak ETag caching. Pass the previously returned ETag value in the If-None-Match request header to receive a 304 Not Modified response when the evidence has not changed.

Arguments

Paramètres du chemin

Name
Type
Description
resource_id [required]
string

The identifier of the resource to retrieve evidence for.

owner_type [required]
enum

The owner type of the inference to retrieve evidence for.

Allowed enum values: user, team, service, unknown

Paramètres d'en-tête

Name
Type
Description
If-None-Match
string

A previously returned weak ETag value. When supplied and the evidence has not changed, the endpoint returns 304 Not Modified.

Réponse

OK

The response returned when retrieving the evidence backing an ownership inference for an owner type.

Champ
Type
Description
data [required]
object

The data wrapper for an ownership evidence response.

Exemple de code

Get the evidence for an ownership inference
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Path parameters
export resource_id="test-resource"
export owner_type="team"

# 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/v2/csm/ownership/${resource_id}/${owner_type}/evidence" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"