For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/ja/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 atomic operations extension に従い、単一のアトミックリクエストで 組織のチーム所有権マッピングを追加および削除します。 操作は同時に適用されます。いずれかの操作が無効な場合、どの操作も適用されません。 追加操作は削除操作の前に処理されるため、結果がリクエストと同じ順序で 表示されない場合があります。

This endpoint requires the rum_apps_write permission.

リクエスト

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