For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/customer-org/disable-the-authenticated-customer-organization.md. A documentation index is available at /llms.txt.
Language
Datadog site

Disable the authenticated customer organization

警告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/org/disablehttps://api.us3.datadoghq.com/api/v2/org/disablehttps://api.us5.datadoghq.com/api/v2/org/disablehttps://api.datadoghq.eu/api/v2/org/disablehttps://api.ap1.datadoghq.com/api/v2/org/disablehttps://api.ap2.datadoghq.com/api/v2/org/disablehttps://api.uk1.datadoghq.com/api/v2/org/disablehttps://api.ddog-gov.com/api/v2/org/disablehttps://api.us2.ddog-gov.com/api/v2/org/disable

概要

Disable the Datadog organization associated with the authenticated user or API key. The request body uses JSON:API format. If org_uuid is supplied, it must match the authenticated org or the request is rejected. Successful calls disable the org and return the resulting state from the downstream service. Requires the org_management permission.

Limitations:

  • Organization age: Only organizations created within the last 10 days can be disabled through this endpoint. This restriction is a safeguard against accidentally disabling long-running organizations. Attempting to disable an older organization returns a 403 Forbidden.
  • Feature flag: The feature flag org_disable_self_service_enabled must be enabled for the target organization or one of its ancestor organizations. Contact Datadog support to enable this for your organization. Requests for organizations without this flag return a 403 Forbidden.
  • Already-disabled organizations: If the target organization is already disabled, the request returns a 409 Conflict.

OAuth apps require the org_management authorization scope to access this endpoint.

リクエスト

Body Data (required)

フィールド
タイプ
説明
data [required]
object

Data object for a customer org disable request.

応答

OK

Response describing the outcome of disabling the customer organization.

フィールド
タイプ
説明
data [required]
object

Data object returned after disabling the customer organization.

コード例

Disable the authenticated customer organization
# 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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
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/org/disable" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "org_uuid": "abcdef01-2345-6789-abcd-ef0123456789"
    },
    "id": "1",
    "type": "customer_org_disable"
  }
}
EOF