查看密钥详情
<p><span style="font-size:18px"><strong>查看密钥详情:DescribeKey</strong></span></p>
<p><span style="font-size:14px"><strong>描述:</strong></span></p>
<p>查看指定主用户密钥的详细信息。</p>
<p><span style="font-size:14px"><strong>请求参数:</strong></span></p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="background-color:#ededed"><strong>名称</strong></td>
<td style="background-color:#ededed"><strong>类型</strong></td>
<td style="background-color:#ededed"><strong>是否必需</strong></td>
<td style="background-color:#ededed"><strong>描述</strong></td>
</tr>
<tr>
<td>keyId</td>
<td>String</td>
<td>是</td>
<td>密钥的全局唯一标识符</td>
</tr>
</tbody>
</table>
<p><span style="font-size:14px"><strong>返回参数:</strong></span></p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="background-color:#ededed"><strong>名称</strong></td>
<td style="background-color:#ededed"><strong>类型</strong></td>
<td style="background-color:#ededed"><strong>描述</strong></td>
</tr>
<tr>
<td>code</td>
<td>String</td>
<td>返回码,成功返回"SUCCESS"</td>
</tr>
<tr>
<td>keyMetadata</td>
<td>KeyMetadata</td>
<td>密钥的Metadata</td>
</tr>
<tr>
<td>requestId</td>
<td>String</td>
<td>当前请求Id</td>
</tr>
</tbody>
</table>
<p><span style="font-size:14px"><strong>请求示例:</strong></span></p>
<pre>
<code>https:// kms-cn-shanghai.ocftcloud.com/?action=DescribeKey
&keyId=<cmkid>
&<公共请求参数></code></pre>
<p><span style="font-size:14px"><strong>返回示例:</strong></span></p>
<pre>
<code>{
"code": "SUCCESS",
"requestId": "f64d833a-584d-40df-9272-4f69b3b807d3",
"keyMetadata": {
"keyUsage": "ENCRYPT_DECRYPT",
"origin": "平安金融云产生",
"keyState": "ENABLE|已启用",
"keyId": "08a19976-d039-4469-9a03-af4ff13783fa",
"alias": "your key alias",
"description": "your key description ",
"ownerId": "123456",
"creationDate": "2018-12-04 14:40:03"
}
}</code></pre>
<p> </p>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!