Refreshing the AWS Key
Use the post /v1/cckm/aws/keys/{id}/refresh API to view the latest updates by refreshing the key.
Syntax
curl -k '<IP>/api/v1/cckm/aws/keys/{id}/refresh' -X POST -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/aws/keys/123456abcdef43f88aa7f1b876547d9e/refresh' -X POST -H 'Authorization: Bearer {Place jwt token here. Bearer token / JWT can be created via the /v1/auth/tokens API.}' -H 'accept: application/json' --compressed
Example Response
{
"message": "AWS key '123456abcdef43f88aa7f1b876547d9e' 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.