DELETE https://api.ap1.datadoghq.com/api/v1/integration/azure https://api.ap2.datadoghq.com/api/v1/integration/azure https://api.datadoghq.eu/api/v1/integration/azure https://api.ddog-gov.com/api/v1/integration/azure https://api.us2.ddog-gov.com/api/v1/integration/azure https://api.uk1.datadoghq.com/api/v1/integration/azure https://api.datadoghq.com/api/v1/integration/azure https://api.us3.datadoghq.com/api/v1/integration/azure https://api.us5.datadoghq.com/api/v1/integration/azure
概要 Datadog アカウントから 特定の Datadog-Azure インテグレーションを削除します。
This endpoint requires the azure_configurations_manage permission.
リクエスト Body Data (required) 特定の Datadog-Azure インテグレーションのリクエスト本文を削除します。
Expand All
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.
Silence monitors for expected Azure VM shutdowns.
Your Azure web application ID.
Your Azure web application secret key.
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.
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.
Enable custom metrics for your organization.
Errors in your configuration.
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.
Enable Azure metrics for your organization.
Enable Azure metrics for your organization for resource providers where no resource provider config is specified.
Your New Azure web application ID.
Your New Azure Active Directory ID.
resource_collection_enabled
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
Configuration settings applied to resources from the specified Azure resource providers.
Collect metrics for resources from this provider.
The provider namespace to apply this configuration to.
(Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
Your Azure Active Directory ID.
Enable azure.usage metrics for your organization.
{
"client_id" : "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ,
"tenant_name" : "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
} 応答 Bad Request
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Authentication Error
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Too many requests
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} コード例 コピー
## default
#
# Curl command curl -X DELETE "https://api.ap1.datadoghq.com "https://api.ap2.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.us2.ddog-gov.com "https://api.uk1.datadoghq.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v1/integration/azure " \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} " \
-d @- << EOF
{
"client_id": "testc7f6-1234-5678-9101-3fcbf464test",
"tenant_name": "testc44-1234-5678-9101-cc00736ftest"
}
EOF
// Delete an Azure integration returns "OK" response
package main
import (
"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"
)
func main () {
body := datadogV1 . AzureAccount {
ClientId : datadog . PtrString ( "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ),
TenantName : datadog . PtrString ( "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ),
}
ctx := datadog . NewDefaultContext ( context . Background ())
configuration := datadog . NewConfiguration ()
apiClient := datadog . NewAPIClient ( configuration )
api := datadogV1 . NewAzureIntegrationApi ( apiClient )
resp , r , err := api . DeleteAzureIntegration ( ctx , body )
if err != nil {
fmt . Fprintf ( os . Stderr , "Error when calling `AzureIntegrationApi.DeleteAzureIntegration`: %v\n" , err )
fmt . Fprintf ( os . Stderr , "Full HTTP response: %v\n" , r )
}
responseContent , _ := json . MarshalIndent ( resp , "" , " " )
fmt . Fprintf ( os . Stdout , "Response from `AzureIntegrationApi.DeleteAzureIntegration`:\n%s\n" , responseContent )
}
Instructions First install the library and its dependencies and then save the example to main.go and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" go run "main.go"
// Delete an Azure integration returns "OK" response
import com.datadog.api.client.ApiClient ;
import com.datadog.api.client.ApiException ;
import com.datadog.api.client.v1.api.AzureIntegrationApi ;
import com.datadog.api.client.v1.model.AzureAccount ;
public class Example {
public static void main ( String [] args ) {
ApiClient defaultClient = ApiClient . getDefaultApiClient ();
AzureIntegrationApi apiInstance = new AzureIntegrationApi ( defaultClient );
AzureAccount body =
new AzureAccount ()
. clientId ( "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" )
. tenantName ( "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" );
try {
apiInstance . deleteAzureIntegration ( body );
} catch ( ApiException e ) {
System . err . println ( "Exception when calling AzureIntegrationApi#deleteAzureIntegration" );
System . err . println ( "Status code: " + e . getCode ());
System . err . println ( "Reason: " + e . getResponseBody ());
System . err . println ( "Response headers: " + e . getResponseHeaders ());
e . printStackTrace ();
}
}
}
Instructions First install the library and its dependencies and then save the example to Example.java and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" java "Example.java"
from datadog import initialize , api
options = {
'api_key' : '<DATADOG_API_KEY>' ,
'app_key' : '<DATADOG_APPLICATION_KEY>'
}
initialize ( ** options )
api . AzureIntegration . delete (
tenant_name = "<AZURE_TENANT_NAME>" ,
client_id = "<AZURE_CLIENT_ID>"
)
Instructions First install the library and its dependencies and then save the example to example.py and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" python "example.py"
"""
Delete an Azure integration returns "OK" response
"""
from datadog_api_client import ApiClient , Configuration
from datadog_api_client.v1.api.azure_integration_api import AzureIntegrationApi
from datadog_api_client.v1.model.azure_account import AzureAccount
body = AzureAccount (
client_id = "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ,
tenant_name = "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ,
)
configuration = Configuration ()
with ApiClient ( configuration ) as api_client :
api_instance = AzureIntegrationApi ( api_client )
response = api_instance . delete_azure_integration ( body = body )
print ( response )
Instructions First install the library and its dependencies and then save the example to example.py and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" python3 "example.py"
require 'rubygems'
require 'dogapi'
api_key = '<DATADOG_API_KEY>'
app_key = '<DATADOG_APPLICATION_KEY>'
dog = Dogapi :: Client . new ( api_key , app_key )
config = {
"tenant_name" : '<AZURE_TENANT_NAME>' ,
"client_id" : '<AZURE_CLIENT_ID>'
}
dog . azure_integration_delete ( config )
Instructions First install the library and its dependencies and then save the example to example.rb and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" rb "example.rb"
# Delete an Azure integration returns "OK" response
require "datadog_api_client"
api_instance = DatadogAPIClient :: V1 :: AzureIntegrationAPI . new
body = DatadogAPIClient :: V1 :: AzureAccount . new ({
client_id : "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ,
tenant_name : "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" ,
})
p api_instance . delete_azure_integration ( body )
Instructions First install the library and its dependencies and then save the example to example.rb and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" rb "example.rb"
// Delete an Azure integration returns "OK" response
use datadog_api_client ::datadog ;
use datadog_api_client ::datadogV1 ::api_azure_integration ::AzureIntegrationAPI ;
use datadog_api_client ::datadogV1 ::model ::AzureAccount ;
#[tokio::main]
async fn main () {
let body = AzureAccount ::new ()
. client_id ( "" . to_string ())
. tenant_name ( "" . to_string ());
let configuration = datadog ::Configuration ::new ();
let api = AzureIntegrationAPI ::with_config ( configuration );
let resp = api . delete_azure_integration ( body ). await ;
if let Ok ( value ) = resp {
println! ( " {:#?} " , value );
} else {
println! ( " {:#?} " , resp . unwrap_err ());
}
}
Instructions First install the library and its dependencies and then save the example to src/main.rs and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-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" ;
const configuration = client . createConfiguration ();
const apiInstance = new v1 . AzureIntegrationApi ( configuration );
const params : 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 ));
Instructions First install the library and its dependencies and then save the example to example.ts and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com uk1.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" tsc "example.ts"