Refreshing an Azure Key
Use the post /v1/cckm/azure/keys/{id}/refresh
API to refresh the details of an Azure key and its versions and update with the latest values.
Syntax
curl -k '<IP>/api/v1/cckm/azure/keys/{id}/refresh' -X POST -H 'Authorization: Bearer AUTHTOKEN' --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/90333464-8df0-4bb6-9280-dc644f8a59dc/refresh' -X POST -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIyM2JmOTFhNi0wZGUwLTRiMmMtOTE5ZC0yMmJiNzc5MWVkYWMiLCJzdWIiOiJsb2NhbHw5M2IyZWJhNC1iYzRkLTQ2MWItOTk2MS01NmQzYTdjNzRlMTEiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjQ2OTlhOGRmLTg0ZDQtNGFhZC1iMWY1LWY3NGNmMmU2MmNiMyIsImlhdCI6MTcwNjgwNTIyNSwiZXhwIjoxNzA2ODA1NTI1fQ.6rEBkfAekM9UZ4eCNzMaRiER3PNDQ3MIwhDz8sNa3P8axcAE4lTRx8ZIvihzcuLap7pXQZfFleK0czsgoRs50w' -H 'accept: application/json' --compressed
Example Response
"Azure key 'test-1' will be refreshed and persisted"
The response shows that the Azure key (with ID 90333464-8df0-4bb6-9280-dc644f8a59dc
) will be refreshed and persisted.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.