ListKeyRotations
In this article:
ListKeyRotations#
Description#
Returns a list of KMS key versions.
Request Parameters#
Required parameters#
KeyId — The ID of the KMS key.
Type: String
Required: Yes
Optional parameters#
Limit — The maximum number of items that will be returned in the response.
Type: String
Required: No
Default value:
100Valid range: from 1 to 1000
Marker — NextMarker from the previous call (see Response Elements).
Type: String
Required: No
Response Elements#
NextMarker — Contains the value to pass in the Marker parameter in a subsequent request to continue listing data. Returned when Truncated is
true.Type: String
Rotations — The list of KMS key versions.
Type: List of RotationsListEntry objects
Truncated — Indicates that the response could not return all list items.
Type: Boolean
Examples#
Sample Request#
POST / HTTP/1.1
Host: kms.<region>.<domain>
Content-Length: <PayloadSizeBytes>
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=<Headers>, Signature=<Signature>
X-Amz-Date: <Date>
X-Amz-Target: TrentService.ListKeyRotations
{
"KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab"
}
Sample Response#
HTTP/1.1 200 OK
Content-Type: application/x-amz-json-1.1
{
"Rotations": [
{
"KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
"KeyMaterialType": "NON_CURRENT",
"RotationDate": 1805964072.694000
},
{
"KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
"KeyMaterialType": "CURRENT",
"RotationDate": 1837490072.694000
}
],
"Truncated": false
}