Limit the Azure app service plans that are pulled into Datadog using tags.
Only app service plans that match one of the defined tags are imported into Datadog.
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_config
object
Dictionary containing the key excluded_resource_providers which has to be a list of Microsoft Azure Resource Provider names.
This feature is currently being beta tested.
In order to enable all resource providers for metric collection, pass:
metrics_config: {"excluded_resource_providers": []} (i.e., an empty list for excluded_resource_providers).
excluded_resource_providers
[string]
List of Microsoft Azure Resource Providers to exclude from metric collection.
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.
"""
List all Azure integrations returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v1.api.azure_integration_apiimportAzureIntegrationApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=AzureIntegrationApi(api_client)response=api_instance.list_azure_integration()print(response)
# List all Azure integrations returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V1::AzureIntegrationAPI.newpapi_instance.list_azure_integration()
// List all Azure integrations returns "OK" response
packagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV1")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV1.NewAzureIntegrationApi(apiClient)resp,r,err:=api.ListAzureIntegration(ctx)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `AzureIntegrationApi.ListAzureIntegration`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `AzureIntegrationApi.ListAzureIntegration`:\n%s\n",responseContent)}
// List all Azure integrations returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV1::api_azure_integration::AzureIntegrationAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=AzureIntegrationAPI::with_config(configuration);letresp=api.list_azure_integration().await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* List all Azure integrations returns "OK" response
*/import{client,v1}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv1.AzureIntegrationApi(configuration);apiInstance.listAzureIntegration().then((data: v1.AzureAccount[])=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
Using the POST method updates your integration configuration by adding your new
configuration to the existing one in your Datadog organization.
Using the PUT method updates your integration configuration by replacing your
current configuration with the new one sent to your Datadog organization.
Request
Body Data (required)
Create a Datadog-Azure integration for your Datadog account request body.
Limit the Azure app service plans that are pulled into Datadog using tags.
Only app service plans that match one of the defined tags are imported into Datadog.
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_config
object
Dictionary containing the key excluded_resource_providers which has to be a list of Microsoft Azure Resource Provider names.
This feature is currently being beta tested.
In order to enable all resource providers for metric collection, pass:
metrics_config: {"excluded_resource_providers": []} (i.e., an empty list for excluded_resource_providers).
excluded_resource_providers
[string]
List of Microsoft Azure Resource Providers to exclude from metric collection.
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.
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Create an Azure integration returns "OK" response
*/import{client,v1}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv1.AzureIntegrationApi(configuration);constparams: v1.AzureIntegrationApiCreateAzureIntegrationRequest={body:{appServicePlanFilters:"key:value,filter:example",automute: true,clientId:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",clientSecret:"TestingRh2nx664kUy5dIApvM54T4AtO",containerAppFilters:"key:value,filter:example",cspmEnabled: true,customMetricsEnabled: true,errors:["*"],hostFilters:"key:value,filter:example",newClientId:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",newTenantName:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",resourceCollectionEnabled: true,tenantName:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",},};apiInstance.createAzureIntegration(params).then((data: any)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
Limit the Azure app service plans that are pulled into Datadog using tags.
Only app service plans that match one of the defined tags are imported into Datadog.
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_config
object
Dictionary containing the key excluded_resource_providers which has to be a list of Microsoft Azure Resource Provider names.
This feature is currently being beta tested.
In order to enable all resource providers for metric collection, pass:
metrics_config: {"excluded_resource_providers": []} (i.e., an empty list for excluded_resource_providers).
excluded_resource_providers
[string]
List of Microsoft Azure Resource Providers to exclude from metric collection.
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.
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Delete an Azure integration returns "OK" response
*/import{client,v1}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv1.AzureIntegrationApi(configuration);constparams: v1.AzureIntegrationApiDeleteAzureIntegrationRequest={body:{clientId:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",tenantName:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",},};apiInstance.deleteAzureIntegration(params).then((data: any)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
Update a Datadog-Azure integration. Requires an existing tenant_name and client_id.
Any other fields supplied will overwrite existing values. To overwrite tenant_name or client_id,
use new_tenant_name and new_client_id. To leave a field unchanged, do not supply that field in the payload.
Limit the Azure app service plans that are pulled into Datadog using tags.
Only app service plans that match one of the defined tags are imported into Datadog.
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_config
object
Dictionary containing the key excluded_resource_providers which has to be a list of Microsoft Azure Resource Provider names.
This feature is currently being beta tested.
In order to enable all resource providers for metric collection, pass:
metrics_config: {"excluded_resource_providers": []} (i.e., an empty list for excluded_resource_providers).
excluded_resource_providers
[string]
List of Microsoft Azure Resource Providers to exclude from metric collection.
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.
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Update an Azure integration returns "OK" response
*/import{client,v1}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv1.AzureIntegrationApi(configuration);constparams: v1.AzureIntegrationApiUpdateAzureIntegrationRequest={body:{appServicePlanFilters:"key:value,filter:example",automute: true,clientId:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",clientSecret:"TestingRh2nx664kUy5dIApvM54T4AtO",containerAppFilters:"key:value,filter:example",cspmEnabled: true,customMetricsEnabled: true,errors:["*"],hostFilters:"key:value,filter:example",newClientId:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",newTenantName:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",resourceCollectionEnabled: true,metricsConfig:{excludedResourceProviders:["Microsoft.Sql","Microsoft.Cdn"],},tenantName:"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",},};apiInstance.updateAzureIntegration(params).then((data: any)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
Limit the Azure app service plans that are pulled into Datadog using tags.
Only app service plans that match one of the defined tags are imported into Datadog.
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_config
object
Dictionary containing the key excluded_resource_providers which has to be a list of Microsoft Azure Resource Provider names.
This feature is currently being beta tested.
In order to enable all resource providers for metric collection, pass:
metrics_config: {"excluded_resource_providers": []} (i.e., an empty list for excluded_resource_providers).
excluded_resource_providers
[string]
List of Microsoft Azure Resource Providers to exclude from metric collection.
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.
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run