For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/identity-providers/update-an-identity-provider.md. A documentation index is available at /llms.txt.
Language
Datadog site

Update an identity provider

PATCHhttps://api.datadoghq.com/api/v2/identity_providers/{idp_id}https://api.us3.datadoghq.com/api/v2/identity_providers/{idp_id}https://api.us5.datadoghq.com/api/v2/identity_providers/{idp_id}https://api.datadoghq.eu/api/v2/identity_providers/{idp_id}https://api.ap1.datadoghq.com/api/v2/identity_providers/{idp_id}https://api.ap2.datadoghq.com/api/v2/identity_providers/{idp_id}https://api.uk1.datadoghq.com/api/v2/identity_providers/{idp_id}https://api.ddog-gov.com/api/v2/identity_providers/{idp_id}https://api.us2.ddog-gov.com/api/v2/identity_providers/{idp_id}

概要

Enable or disable an identity provider for the current organization.

This endpoint requires the org_management permission.

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

引数

パスパラメーター

名前
タイプ
説明
idp_id [required]
string

The ID of the identity provider.

リクエスト

Body Data (required)

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

Data object for updating an organization identity provider.

応答

OK

Response containing a single organization identity provider.

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

Data object representing an organization identity provider.

コード例

Update an identity provider
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF
# Path parameters
export idp_id="00000000-0000-0000-0000-000000000001"

# 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 PATCH "https://api.${DD_SITE}/api/v2/identity_providers/${idp_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "enabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "identity_providers"
  }
}
EOF