You can this operation to query metadata information of a specified key version.

Request parameters

Parameter Type Required Description
KeyId String Yes The globally unique ID of the CMK.
KeyVersionId String Yes The ID of the key version.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
KeyVersion KeyVersion The array that consists of KeyVersion data.

KeyVersion

Parameter Type Decription
KeyId String The globally unique ID of the CMK.
KeyVersionId String The ID of the key version.
CreationDate Timestamp The time when the CMK was created. The time is displayed in UTC.

Examples

Sample requests

https://kms.cn-hangzhou.aliyuncs.com/?Action=DescribeKeyVersion
&KeyId=<cmkid>
&KeyVersionId=<key version id>
&<Common request parameters>

Sample responses

JSON format

//json response
{
        "KeyVersion": {
                "KeyId": "0b30658a-ed1a-4922-b8f7-a673ca9c440b",
                "KeyVersionId": "6a69c763-388a-4708-9fc0-4322266bf2d0",
                "CreationDate": "2019-08-06T10:17:04Z"
        },
        "RequestId": "80b4eac8-9f51-452a-a859-0c9b06b283c1"
}

XML format

//xml response
<KMS>
        <KeyVersion>
                <KeyId>0b30658a-ed1a-4922-b8f7-a673ca9c440b</KeyId>
                <KeyVersionId>2ab1a983-7072-4bbc-a582-584b5bd8ecf3</KeyVersionId>
                <CreationDate>2016-03-25T10:40:47Z</CreationDate>
        </KeyVersion>
        <RequestId>b0ae52a2-33a4-43de-b68c-849f81d09f5d</RequestId>
</KMS>