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

Actualizar los filtros de hosts de una integración 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

Descripción general

Actualiza la lista definida de filtros de hosts para una determinada integración Azure en Datadog.

This endpoint requires the azure_configuration_edit permission.

Solicitud

Body Data (required)

Actualiza el cuerpo de los filtros de hosts de una integración Azure en Datadog.

Campo
Type
Descripción
app_service_plan_filters
string

Integraciones Azure en Datadog configuradas para tu organización.

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.

Respuesta

OK

No response body

Ejemplo de código

Actualizar los filtros de hosts de una integración 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