查看密钥详情
<p><span style="font-size:18px"><strong>查看密钥详情:DescribeKey</strong></span></p>
<p><strong>描述</strong></p>
<p>查看指定主用户密钥的详细信息。</p>
<p><strong>请求参数</strong></p>
<table border="1">
<thead>
<tr>
<th>
<p>名称</p>
</th>
<th>
<p>类型</p>
</th>
<th>
<p>是否必需</p>
</th>
<th>
<p>描述</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<p>keyId</p>
</td>
<td>
<p>String</p>
</td>
<td>
<p>是</p>
</td>
<td>
<p>密钥的全局唯一标识符</p>
</td>
</tr>
</tbody>
</table>
<p><strong>返回参数</strong></p>
<table border="1">
<thead>
<tr>
<th>
<p>名称</p>
</th>
<th>
<p>类型</p>
</th>
<th>
<p>描述</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<p>code</p>
</td>
<td>
<p>String</p>
</td>
<td>
<p>返回码,成功返回"SUCCESS"</p>
</td>
</tr>
<tr>
<td>
<p>keyMetadata</p>
</td>
<td>
<p>KeyMetadata</p>
</td>
<td>
<p>密钥的Metadata</p>
</td>
</tr>
<tr>
<td>
<p>requestId</p>
</td>
<td>
<p>String</p>
</td>
<td>
<p>当前请求ID</p>
</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre>
<code>https:// kms-cn-shanghai.yun.pingan.com/?action=DescribeKey
&keyId=<cmkid>
&<公共请求参数></code></pre>
<p><strong>返回示例</strong></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>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!