Fetching List of Rotations of a Specific Key
Use the post /v1/cckm/aws/keys/{id}/rotations
API to view the list of rotations of a specific key.
Syntax
curl -k '<IP>/api/v1/cckm/aws/keys/{id}/rotations?skip=0&limit=10&sort=updatedAt' -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
represents the key ID.
Request Parameter
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Request Query Parameters
Parameter | Type | Description |
---|---|---|
skip | integer | Number of records to skip. For example, if "skip":5 is specified, the first five records will not be displayed in the output. |
limit | integer | Numbers of records to display. For example, if "limit":10 is specified, then the next 10 records (after skipping the number of records specified in the skip parameter ) will be displayed in the output. |
sort | string | Comma-delimited list of properties to sort the results. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/aws/keys/0090/rotations?skip=0&limit=10&sort=updatedAt' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjNWMwZGJlNC1lMmJmLTQ3M2MtODY4MC01NWVkMWIzMDEzMmEiLCJzdWIiOiJsb2NhbHxhNjdjMzc0OC05YTRiLTRhZGQtYjNkOS0wNTRiYTIwYmUzYWMiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiMDhkNDI5ZjktNDgzYi00ODdlLWJjOTQtNGE1Mjc2ZDI2ZjZjIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjJhN2Y2MWM0LTAyZDYtNDcyOC1hNjE2LTNiNGE1NWMzMzFiNSIsImlhdCI6MTYwNDU1ODY5NSwiZXhwIjoxNjA0NTU4OTk1fQ.j7dg_wOMie9RoTy_i3EbAx_yQGyrw4_4n5kaHp0EmN0' --compressed
Example Response
{
"skip": 0,
"limit": 10,
"total": 1,
"resources": [
{
"id": "ec6e55a9-3dee-49c3-b098-7f43477a01d4",
"uri": "kylo:kylo:cckm:aws-key-rotation:ec6e55a9-3dee-49c3-b098-7f43477a01d4",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2024-09-20T04:04:17.971899Z",
"updatedAt": "2024-09-20T04:04:17.970896Z",
"local_key_id": "7cd90ccd-52c4-4696-af3d-354cf4f4adae",
"aws_param": {
"KeyId": "arn:aws:kms:ap-loc-1:12345678:key/52807625-2f13-4319-9e82-39fe30842f7d",
"RotationDate": "2024-09-20T04:04:07.296Z",
"RotationType": "ON_DEMAND"
}
},
{
"id": "967a4454-2305-46dd-bdee-a114d1b66f81",
"uri": "kylo:kylo:cckm:aws-key-rotation:967a4454-2305-46dd-bdee-a114d1b66f81",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2024-09-20T04:06:24.351017Z",
"updatedAt": "2024-09-20T04:06:24.350201Z",
"local_key_id": "7cd90ccd-52c4-4696-af3d-354cf4f4adae",
"aws_param": {
"KeyId": "arn:aws:kms:ap-loc-1:12345678:key/52807625-2f13-4319-9e82-39fe30842f7d",
"RotationDate": "2024-09-20T04:06:19.48Z",
"RotationType": "ON_DEMAND"
}
}
]
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.