Queries the information about a key version.
Operation description
This topic provides an example on how to query the information about a version of the CMK 1234abcd-12ab-34cd-56ef-12345678****. The ID of the CMK version is 2ab1a983-7072-4bbc-a582-584b5bd8****. The response shows that the creation time of the CMK version is 2016-03-25T10:42:40Z.
Debugging
Authorization information
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 Alias overview. | 1234abcd-12ab-34cd-56ef-12345678**** |
| KeyVersionId | string | Yes | The globally unique ID of the CMK version. You can call the ListKeyVersions operation to query the versions of the CMK. | 2ab1a983-7072-4bbc-a582-584b5bd8**** |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "7021b6ec-4be7-4d3c-8a68-1e85d4d515a0",
"KeyVersion": {
"KeyId": "1234abcd-12ab-34cd-56ef-12345678****",
"KeyVersionId": "2ab1a983-7072-4bbc-a582-584b5bd8****",
"CreationDate": "2016-03-25T10:42:40Z"
}
}Error codes
For a list of error codes, visit the Service error codes.
