Management zones API - DELETE a management zone
Deletes the specified management zone.
DELETE | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/managementZones/{id} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/managementZones/{id} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/managementZones/{id} |
Authentication
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the management zone to delete. | path | required |
Response
Response codes
Code | Description |
---|---|
204 | Deleted. Response does not have a body. |
Example
In this example, the request deletes the Mainframe management zone 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
1curl -L -X DELETE 'https://mySampleEnv.live.dynatrace.com/api/config/v1/managementZones/2072664797514502900' \2-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/config/v1/managementZones/2072664797514502900
Response code
204