Queries all versions of a key.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| KeyId | string | Yes | The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see Use aliases. | 0b30658a-ed1a-4922-b8f7-a673ca9c**** |
| PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
| PageSize | integer | No | The number of entries to return on each page. Valid values: 0 to 101. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
JSONformat
{
"PageSize": 10,
"RequestId": "f71204c4-53cd-4eea-b405-653ba2db7e86",
"PageNumber": 1,
"TotalCount": 3,
"KeyVersions": {
"KeyVersion": [
{
"KeyId": "0b30658a-ed1a-4922-b8f7-a673ca9c****",
"KeyVersionId": "1e3304fd-68ac-4d5b-8886-ae5f01a1****",
"CreationDate": "2016-03-25T10:42:40Z"
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
