For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ko/api/latest/csm-ownership/submit-feedback-on-an-ownership-inference.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.
POSThttps://api.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.us3.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.us5.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.datadoghq.eu/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.ap1.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.ap2.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.uk1.datadoghq.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.ddog-gov.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedbackhttps://api.us2.ddog-gov.com/api/v2/csm/ownership/{resource_id}/{owner_type}/feedback

개요

리소스 및 소유자 유형에 대한 현재 소유권 추론에 대한 피드백을 제출합니다. 유효한 작업은 confirm, reject, correct 및 persist입니다.

요청은 inference_checksum에 현재 추론 checksum을 포함해야 합니다. 체크섬이 현재 추론 상태와 일치하지 않으면 엔드포인트는 409 Conflict를 반환합니다.

action이 correct인 경우 corrected_owner_handle 및 corrected_owner_type이 필요합니다.

인수

경로 파라미터

이름
유형
설명
resource_id [required]
string

The identifier of the resource that the feedback applies to.

owner_type [required]
enum

The type of owner that the feedback applies to.

Allowed enum values: user, team, service, unknown

요청

Body Data (required)

항목
유형
설명
data [required]
object

소유권 피드백 제출에 대한 요청 본문입니다.

응답

Created

The response returned after applying ownership feedback to an inference.

항목
유형
설명
data [required]
object

The data wrapper for an ownership feedback result response.

코드 예시

소유권 추론에 대한 피드백 제출
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF
# Path parameters
export resource_id="res-1"
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 POST "https://api.${DD_SITE}/api/v2/csm/ownership/${resource_id}/${owner_type}/feedback" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "action": "confirm",
      "inference_checksum": "abc123"
    },
    "type": "ownership_feedback"
  }
}
EOF