Updating the AWS Key Expiry Notification Settings
Use the get /v1/cckm/settings/aws_key_expiry_notification
API to fetch the AWS key expiry notification settings.
Syntax
curl -k '<IP>/api/v1/cckm/settings/aws_key_expiry_notification' -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/aws_key_expiry_notification' -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI2NjYzNGY4Yy0xMmM1LTRlYTUtOGI0MC04ODdhNjMyYTU3Y2QiLCJzdWIiOiJsb2NhbHw5MmM0YzQxNy1lZGM4LTQyYjktYWY0Zi03ZjQwN2YwNjhmZGYiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjJiZmU4MDU5LTZkMjMtNDVjYS05NWM2LTRmNzJiNjcwY2QyOCIsImlhdCI6MTcyMDEyNTIwNiwiZXhwIjoxNzIwMTI1NTA2fQ.LTf_U4fG-9P3dvIZmi1EWTZUDnrhJ7c-QlBxQvT3LQ87j9rZ0pE3WyUtAo6IdlHFzngpfhFh1NwONXz-EEx7Qw' -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.