You need to enable JavaScript to run this app.
导航

查询用户主密钥

最近更新时间2023.06.21 16:55:02

首次发布时间2022.01.24 17:45:55

描述
查询用户主密钥

请求业务参数

名称类型是否必选示范值描述
ActionStringDescribeKey接口名,取值:DescribeKey
VersionString2021-02-18版本号,取值:2021-02-18
KeyringNameStringtest_keyring-1密钥环的别名。长度为 2 - 31 个字符合法字符:[a-zA-Z0-9-_]
KeyNameStringdemo_key主密钥的别名。长度为 2 - 31 个字符合法字符:[a-zA-Z0-9-_]

返回业务参数

名称类型描述
ResponseMetaDataResponseMetaData返回公共参数
ResultKey密钥元数据

请求示例

GET https://kms.volcengineapi.com?Action=DescribeKey&Version=2021-02-18&KeyringName=test_keyring-1&KeyName=demo_key

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2022012110320501021206316623007667",
        "Action": "DescribeKey",
        "Version": "2021-02-18",
        "Service": "kms",
        "Region": "cn-beijing"
    },
    "Result": {
        "Key": {
            "ID": "0324d9b3-c5d9-4b6f-94e7-884010a16fee",
            "CreationDate": 1642732307,
            "UpdateDate": 1642732307264,
            "KeyName": "demo_key",
            "KeySpec": "SYMMETRIC_256",
            "Description": "for test",
            "KeyState": "Enable",
            "KeyUsage": "ENCRYPT_DECRYPT",
            "ProtectionLevel": "SOFTWARE",
            "RotationState": "Enable",
            "LastRotationTime": "2022-01-21T10:31:47.264+08:00",
            "ScheduleRotationTime": "2023-01-21T10:31:47.264+08:00",
            "Trn": "trn:kms:cn-beijing:2100056381:keyrings/test_keyring-1/keys/demo_key"
        }
    }
}