Deletes a policy boundary by uuid within a level. You can't delete a global-level boundary, as these are managed by Dynatrace.
DELETE
https://api.dynatrace.com/iam/v1/repo/account/{accountId}/boundaries/{policyBoundaryUuid}
To execute this request, you need the Allow IAM policy configuration for environments (iam-policies-management) permission assigned to your token. To learn how to obtain and use it, see OAuth clients.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| policyBoundaryUuid | - | The ID of the required boundary. | path | Required |
| accountId | - | The ID of the policy boundary level. Use the UUID of the account. | path | Required |
| Code | Type | Description |
|---|---|---|
| 204 | - | Successful response - policy boundary deleted |
| 400 | Error | Failed. The request is invalid |
| 404 | Error | Failed. The specified resource is not found. |
ErrorDto object| Element | Type | Description |
|---|---|---|
| code | number | The code of the error. |
| message | string | A short description of the error. |
| errorsMap | object | - |
{"code": 1,"message": "string","errorsMap": {}}
In this example, the request deletes a policy boundary with policy boundary UUID of 9a7b6c54-3d2e-4f10-a8b2-7cde9012f345 for the accountID f1a2b3c4-d5e6-7890-ab12-34cd56ef7890.
curl --request DELETE \--url https://api.dynatrace.com/iam/v1/repo/account/f1a2b3c4-d5e6-7890-ab12-34cd56ef7890/boundaries/9a7b6c54-3d2e-4f10-a8b2-7cde9012f345 \--header 'Authorization: Bearer abcdefjhij1234567890'
https://api.dynatrace.com/iam/v1/repo/account/f1a2b3c4-d5e6-7890-ab12-34cd56ef7890/boundaries/9a7b6c54-3d2e-4f10-a8b2-7cde9012f345
204 - Successful response - policy boundary deleted.