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

소유자 유형별 소유권 추론 가져오기

경고Note: 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}https://api.us3.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.us5.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.datadoghq.eu/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.ap1.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.ap2.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.uk1.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.ddog-gov.com/api/v2/csm/ownership/{resource_id}/{owner_type}https://api.us2.ddog-gov.com/api/v2/csm/ownership/{resource_id}/{owner_type}

개요

특정 소유자 유형에 대한 리소스의 현재 소유권 추론을 가져옵니다.

이 엔드포인트는 ETag 기반 캐싱을 지원합니다. 추론이 변경되지 않았을 때 304 Not Modified 응답을 받으려면 이전에 반환된 ETag 값을 If-None-Match 요청 헤더에 전달합니다.

인수

경로 파라미터

이름
유형
설명
resource_id [required]
string

The identifier of the resource to retrieve the ownership inference for.

owner_type [required]
enum

The owner type of the inference to retrieve.

Allowed enum values: user, team, service, unknown

헤더 파라미터

이름
유형
설명
If-None-Match
string

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

응답

OK

The response returned when retrieving a single ownership inference for an owner type.

항목
유형
설명
data [required]
object

The data wrapper for a single ownership inference response.

코드 예시

소유자 유형별 소유권 추론 가져오기
# 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}" \
-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}" \
-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}" \
-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}" \
-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}" \
-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}" \
-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}" \
-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}" \
-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}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"