Deleting the Azure Cloud Key Backups
Use the patch /v1/cckm/azure/keys/{id}/backups/{backup_id}
API to delete a backup of an Azure cloud key.
Syntax
curl -k '<IP>/api/v1/cckm/azure/keys/{id}/backups/{backup_id}' -X DELETE -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
represents the key ID.
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/azure/keys/mvz6/backups/1mski34' -X DELETE -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhNzBlNTQ0Yi03M2MxLTQ3NzItOTg4YS04MDU3NDcyYTAwNjAiLCJzdWIiOiJsb2NhbHwwNGU5YjJjOS1jZDE4LTRmNDUtOTMyMy03Y2IzZGRhMDI3OTEiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjMxMTAxMjY0LWViOWEtNDJkMS04YmZkLTRmZWNhODIyODk5MiIsImlhdCI6MTcxNjc2MjA3NCwiZXhwIjoxNzE2NzYyMzc0fQ.MlKr4CZqQhbHtksHHArhRlUgzFLJOqS2nJUFaKJaMXzfg8Kn83JhPKF3oMrPaCTQTb7A1QANcfgqCXzmPQSjhg' -H 'accept: application/json' --compressed
Example Response
{
"status": 204
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.