• Home
  • Dynatrace API
  • Configuration
  • Azure credentials
  • DELETE credentials

Azure credentials API - DELETE credentials

Deletes the specified Azure credentials configuration. You can't undo a deletion.

DELETEManaged https://{your-domain}/e/{your-environment-id}/api/config/v1/azure/credentials/{id}
SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/azure/credentials/{id}
Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/azure/credentials/{id}

Authentication

To execute this request, you need an access token with Write configuration (WriteConfig) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

The ID of the required Azure credentials configuration.

pathrequired

Response

Response codes

CodeTypeDescription
200AzureCredentials

Success

Response body objects

The AzureCredentials object

Configuration of Azure app-level credentials.

ElementTypeDescription
metadataConfigurationMetadata

Metadata useful for debugging

Can be null.

idstring

The Dynatrace entity ID of the Azure credentials configuration.

Can be null.

labelstring

The unique name of the Azure credentials configuration.

Allowed characters are letters, numbers, and spaces. Also the special characters .+-_ are allowed.

appIdstring

The application ID (also referred to as client ID).

The field is required when creating a new credentials configuration.

The field is ignored during an update, the old value remains unaffected.

Can be null.

directoryIdstring

The directory ID (also referred to as tenant ID).

The field is required when creating a new credentials configuration.

The field is ignored during an update, the old value remains unaffected.

Can be null.

keystring

The secret key associated with the application ID.

For security reasons, GET requests return this field as null.

Submit your key on creation or update of the configuration.

The field is required when creating a new credentials configuration. If the field is omitted during an update, the old value remains unaffected.

Can be null.

activeboolean

The monitoring is enabled (true) or disabled (false).

If not set on creation, the true value is used.

If the field is omitted during an update, the old value remains unaffected.

Can be null.

autoTaggingboolean

The automatic capture of Azure tags is on (true) or off (false).

monitorOnlyTaggedEntitiesboolean

Monitor only resources that have specified Azure tags (true) or all resources (false).

monitorOnlyTagPairsCloudTag[]

A list of Azure tags to be monitored.

You can specify up to 20 tags. A resource tagged with any of the specified tags is monitored.

Only applicable when the monitorOnlyTaggedEntities parameter is set to true.

monitorOnlyExcludingTagPairsCloudTag[]

A list of Azure tags to be excluded from monitoring.

You can specify up to 20 tags. A resource tagged with any of the specified tags will not be monitored.

Only applicable when the monitorOnlyTaggedEntities parameter is set to true.

Can be null.

supportingServicesAzureSupportingService[]

A list of Azure services to be monitored. Available services are listed by /azure/supportedServices operation.

For each service, a list of metrics and dimensions can be specified. A list of supported metrics and dimensions for a given service can be checked in Dynatrace documentation.

List of metrics can be skipped (set to null), resulting in recommended (default) set of metrics and dimensions being chosen for monitoring.

Can be null.

The ConfigurationMetadata object

Metadata useful for debugging

ElementTypeDescription
configurationVersionsinteger[]

A sorted list of the version numbers of the configuration.

Can be null.

currentConfigurationVersionsstring[]

A sorted list of version numbers of the configuration.

Can be null.

clusterVersionstring

Dynatrace version.

Can be null.

The CloudTag object

A cloud tag.

ElementTypeDescription
namestring

The name of the tag.

Can be null.

valuestring

The value of the tag.

If set to null, then resources with any value of the tag are monitored.

Can be null.

The AzureSupportingService object

A supporting service to be monitored.

ElementTypeDescription
namestring

The name of the supporting service. Valid supported service names can be discovered using /azure/supportedServices restAPI

monitoredMetricsAzureMonitoredMetric[]

A list of metrics to be monitored for this service. It must include all the recommended metrics. If the list is null then recommended list of metrics for this service will be monitored.

Can be null.

The AzureMonitoredMetric object

A metric of supporting service to be monitored.

ElementTypeDescription
namestring

The name of the metric of the supporting service.

dimensionsstring[]

A list of metric's dimensions names. It must include all the recommended dimensions.

Response body JSON model

json
{ "metadata": { "configurationVersions": [ 4, 2 ], "currentConfigurationVersions": [ "1.0.4", "1.23" ], "clusterVersion": "1.192.1" }, "id": "string", "label": "string", "appId": "string", "directoryId": "string", "key": "string", "active": true, "autoTagging": true, "monitorOnlyTaggedEntities": true, "monitorOnlyTagPairs": [ { "name": "string", "value": "string" } ], "monitorOnlyExcludingTagPairs": [ {} ], "supportingServices": [ { "name": "string", "monitoredMetrics": [ { "name": "string", "dimensions": [ "string" ] } ] } ] }

Example

In this example, the request deletes Azure app-level credentials from the POST request example. The response code of 204 indicates that the deletion was successful.

The API token is passed in the Authorization header.

Curl

shell
curl -X DELETE \ https://mySampleEnv.live.dynatrace.com/api/config/v1/azure/credentials/AZURE_CREDENTIALS-357FDA338DAAF338 \ -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

plaintext
https://mySampleEnv.live.dynatrace.com/api/config/v1/azure/credentials/AZURE_CREDENTIALS-357FDA338DAAF338

Response code

204

Related topics
  • Set up Dynatrace on Microsoft Azure

    Set up Dynaytrace monitoring for Azure.