Deleting a DKE Authorized Tenant
Use the delete v1/cckm/microsoft/dke/auth-tenants/{id} API to delete a Microsoft DKE authorized tenant from the database.
Here, {id} is the ID of the DKE authorized tenant.
Syntax
curl -k '<CCKM IP address>/api/v1/cckm/microsoft/dke/auth-tenants/{id}' -X DELETE -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Request Parameter
| Parameter | Type | Description |
|---|---|---|
| AUTHTOKEN | string | Authorization token. |
| id | string | ID of the DKE authorized tenant. |
Example Request
curl -k 'https://54.173.227.108/api/v1/cckm/microsoft/dke/auth-tenants/d27d849e-e487-4b0e-a54c-a71e67687d10' -X DELETE -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI1OGE3OTZlNi0wMjY0LTRjNjgtOWVlOS0xNTEzODFmYWYxZWIiLCJzdWIiOiJsb2NhbHwxYWIwNGY0ZC01MDQ5LTQ0M2ItOWQ0OC02MzVlYjVjNDRmYzciLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImE1YjA0NjAyLTg5ZDYtNDFmZS05YTA3LWJhYzQ2MGViZTM4YSIsImlhdCI6MTcwODUxMDc0NiwiZXhwIjoxNzA4NTExMDQ2fQ.EqiUSpGyLeo_DvQ91pE-u0N2KS2G7pViwBF-ONkL6nCuFCmxLWcxhXtRUUQs9cwHlVk5o1G_XJAYJp7lYLknUQ' -H 'accept: application/json' --compressed
Example Response
{
"status": 204
}
The sample output shows that the DKE authorized tenant is successfully deleted from the database.
Response Codes
| Response Code | Description |
|---|---|
| 2xx | Success |
| 4xx | Client errors |
| 5xx | Server errors |
Refer to HTTP status codes for details.