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/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings.md. A documentation index is available at /llms.txt.
Language
Datadog site

팀 소유자 매핑 대량 생성 및 제거

경고Note: This endpoint is in Preview and is subject to change. If you have any feedback, contact Datadog support.
POSThttps://api.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.us3.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.us5.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.datadoghq.eu/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.ap1.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.ap2.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.uk1.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.us2.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings/operations

개요

JSON:API 원자적 작업 확장에 따라 단일 원자적 요청으로 조직의 팀 소유자 매핑을 추가 및 제거합니다. 작업은 함께 적용됩니다. 즉, 작업 중 하나라도 유효하지 않으면 어떤 작업도 적용되지 않습니다. 추가 작업이 제거 작업보다 먼저 처리되므로 결과가 요청과 동일한 순서로 나타나지 않을 수 있습니다.

요청

Body Data (required)

원자적으로 적용할 추가 및 제거 작업 목록입니다.

항목
유형
설명
atomic:operations [required]
[object]

팀 소유자 매핑을 대량으로 생성하고 제거하기 위한 요청 본문입니다.

응답

OK

The response body for the bulk create and remove operation. On success, atomic:results contains one entry per operation. Add results appear before remove results and may not match request order. Correlate add results by their type and id rather than by array position. On failure, no operations were applied and errors describes what went wrong.

항목
유형
설명
atomic:results
[object]

The result of each operation. Add operations are processed first, then remove operations, so results may not appear in the same order as the request. Present only on success.

errors
[object]

The validation or processing errors encountered. Present only when the request could not be completed.

코드 예시

팀 소유자 매핑 대량 생성 및 제거
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF
# 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/rum/config/teams-ownership/mappings/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "data": {
        "attributes": {
          "application_id": "11111111-2222-3333-4444-555555555555",
          "match_type": "exact",
          "service": "web-checkout",
          "team_handle": "team-rum",
          "view_name": "/checkout"
        },
        "type": "teams_ownership_mappings"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF