Updating the Azure Key Expiry Notification Settings
Use the patch /v1/cckm/settings/azure_key_expiry_notification
API to update the Azure key expiry notification settings.
Syntax
curl -k '<IP>/api/v1/cckm/settings/azure_key_expiry_notification' -X PATCH -H 'Authorization: Bearer AUTHTOKEN' --compressed
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
key_expiry_days (optional) | integer | Number of days before key expiry to notify of expiring keys. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/settings/azure_key_expiry_notification' -X PATCH -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI2NjYzNGY4Yy0xMmM1LTRlYTUtOGI0MC04ODdhNjMyYTU3Y2QiLCJzdWIiOiJsb2NhbHw5MmM0YzQxNy1lZGM4LTQyYjktYWY0Zi03ZjQwN2YwNjhmZGYiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImYyZDAyNTk5LTY3ZTgtNDRkYi1hZWMwLWFiYmUyM2ZmZTUyMyIsImlhdCI6MTcyMDEyMjYwNywiZXhwIjoxNzIwMTIyOTA3fQ.N7xnJikPkaly-5snDDP2nuC8THKRR_rAmKSCmbYJgmnkoU243XRb6Tww9ULYdwVjczbunAIzYsJ3hGA-7i5CaQ' -H 'accept: application/json' --compressed
Example Response
{
"key_expiry_days": 28
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.