For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/fr/api/latest/csm-ownership/submit-feedback-on-an-ownership-inference.md. A documentation index is available at /llms.txt.
Language
Datadog site

Submit feedback on an ownership inference

WARNINGNote: 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

Présentation

Submit feedback on the current ownership inference for a resource and owner type. Valid actions are confirm, reject, correct, and persist.

The request must include the current inference checksum in inference_checksum. If the checksum does not match the current inference state, the endpoint returns 409 Conflict.

When action is correct, corrected_owner_handle and corrected_owner_type are required.

Arguments

Paramètres du chemin

Name
Type
Description
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

Requête

Body Data (required)

Champ
Type
Description
data [required]
object

The data wrapper for an ownership feedback request.

Réponse

Created

The response returned after applying ownership feedback to an inference.

Champ
Type
Description
data [required]
object

The data wrapper for an ownership feedback result response.

Exemple de code

Submit feedback on an ownership inference
# 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