For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ko/api/latest/azure-integration/update-azure-integration-host-filters.md. A documentation index is available at /llms.txt.
Language
Datadog site

Azure 통합 호스트 필터 업데이트하기

POSThttps://api.datadoghq.com/api/v1/integration/azure/host_filtershttps://api.us3.datadoghq.com/api/v1/integration/azure/host_filtershttps://api.us5.datadoghq.com/api/v1/integration/azure/host_filtershttps://api.datadoghq.eu/api/v1/integration/azure/host_filtershttps://api.ap1.datadoghq.com/api/v1/integration/azure/host_filtershttps://api.ap2.datadoghq.com/api/v1/integration/azure/host_filtershttps://api.uk1.datadoghq.com/api/v1/integration/azure/host_filtershttps://api.ddog-gov.com/api/v1/integration/azure/host_filtershttps://api.us2.ddog-gov.com/api/v1/integration/azure/host_filters

개요

지정된 Datadog-Azure 통합에 대해 정의된 호스트 필터 목록을 업데이트합니다.

This endpoint requires the azure_configuration_edit permission.

요청

Body Data (required)

Datadog-Azure 통합의 호스트 필터 요청 본문을 업데이트합니다.

항목
유형
설명
app_service_plan_filters
string

조직에 대해 구성된 Datadog-Azure 통합입니다.

automute
boolean

Silence monitors for expected Azure VM shutdowns.

client_id
string

Your Azure web application ID.

client_secret
string

Your Azure web application secret key.

container_app_filters
string

Limit the Azure container apps that are pulled into Datadog using tags. Only container apps that match one of the defined tags are imported into Datadog.

cspm_enabled
boolean

When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true.

custom_metrics_enabled
boolean

Enable custom metrics for your organization.

errors
[string]

Errors in your configuration.

host_filters
string

Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog.

metrics_enabled
boolean

Enable Azure metrics for your organization.

metrics_enabled_default
boolean

Enable Azure metrics for your organization for resource providers where no resource provider config is specified.

new_client_id
string

Your New Azure web application ID.

new_tenant_name
string

Your New Azure Active Directory ID.

resource_collection_enabled
boolean

When enabled, Datadog collects metadata and configuration info from cloud resources (compute instances, databases, load balancers, etc.) monitored by this app registration.

resource_provider_configs
[object]

Configuration settings applied to resources from the specified Azure resource providers.

secretless_auth_enabled
boolean

(Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.

tenant_name
string

Your Azure Active Directory ID.

usage_metrics_enabled
boolean

Enable azure.usage metrics for your organization.

응답

OK

No response body

코드 예시

Azure 통합 호스트 필터 업데이트하기
# 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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
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/v1/integration/azure/host_filters" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "client_id": "testc7f6-1234-5678-9101-3fcbf464test",
  "host_filters": "key:value,filter:example",
  "tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
EOF