Updating the Azure Cloud Key Backups
Use the patch /v1/cckm/azure/keys/{id}/backups/{backup_id}
API to update a backup of an Azure cloud key.
Syntax
curl -k '<IP>/api/v1/cckm/azure/keys/{id}/backups/{backup_id}' -X PATCH -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
represents the key ID, and {backup_id}
represents the key backup ID.
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
description (optional) | string | Description of the key backup. |
name (optional) | string | Name of the key backup. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/azure/keys/mvz6/backups/1mski34' -X PATCH -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhNzBlNTQ0Yi03M2MxLTQ3NzItOTg4YS04MDU3NDcyYTAwNjAiLCJzdWIiOiJsb2NhbHwwNGU5YjJjOS1jZDE4LTRmNDUtOTMyMy03Y2IzZGRhMDI3OTEiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjllMDY1NzE2LWYyYzUtNGQ4OC1hNDJhLTIyNTZmM2Q0MjIxMSIsImlhdCI6MTcxNjc2MDkzMSwiZXhwIjoxNzE2NzYxMjMxfQ.PVUtp9YbqPxJCRb1nXGigCnArsi27jSwoQbJpdQJoUpwCryKi6nV5BkSFt0X9M8xkCCBIGTZfl7JdLBpgT5P5A' -H 'accept: application/json' --compressed
Example Response
{
"id": "b4239e9b-d16a-41c2-9ef0-024befbaaeaf",
"uri": "kylo:kylo:cckm:azure-pit-key-backup:b4239e9b-d16a-41c2-9ef0-024befbaaeaf",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2024-01-05T09:41:38.29955Z",
"updatedAt": "2024-01-05T09:41:38.298341Z",
"name": "test",
"description": "test desc",
"tenant": "qa883erg-48e6-xyza-a4a9-24cfxxxa123xx",
"subscription_id": "xxxxx3b3-f1ce-xxxx-b5bc-02xxxx0cxx12a",
"subscription_name": "test subscription",
"vault_name": "test-keyvault-name",
"key_vault": "test-keyvault-name::xxxxx3b3-f1ce-xxxx-b5bc-02xxxx0cxx12a",
"key_name": "key-name",
"region": "eastus",
"cloud_name": "AzureCloud",
"backup": "142d6c4c68be4cfca971f033ac4e2fa6cdfd17ef6df74c94b3807864003834d1",
"type": "manual",
"gone": false
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.