启用密钥

<p class="shortdesc"></p> <section class="section" id="EnableKey__section_hcz_cz3_mlb"><h2 class="doc-tairway">启用密钥:EnableKey</h2> <p class="p"><strong class="ph b">描述</strong></p> <p class="p">将一个指定的主用户密钥(CMK)标记为启用状态,可以使用它进行加解密操作,并且可以用来产生数据密钥</p> <p class="p"><strong class="ph b">请求参数</strong></p> <table class="table" id="EnableKey__table_axq_dz3_mlb"><caption></caption><colgroup><col><col><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="EnableKey__table_axq_dz3_mlb__entry__1">名称</th> <th class="entry" id="EnableKey__table_axq_dz3_mlb__entry__2">类型</th> <th class="entry" id="EnableKey__table_axq_dz3_mlb__entry__3">是否必需</th> <th class="entry" id="EnableKey__table_axq_dz3_mlb__entry__4">描述</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="EnableKey__table_axq_dz3_mlb__entry__1 "> <p class="p">keyId</p> </td> <td class="entry" headers="EnableKey__table_axq_dz3_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="EnableKey__table_axq_dz3_mlb__entry__3 "> <p class="p">是</p> </td> <td class="entry" headers="EnableKey__table_axq_dz3_mlb__entry__4 "> <p class="p">密钥的全局唯一标识符</p> </td> </tr> </tbody></table> <p class="p"><strong class="ph b">返回参数</strong></p> <table class="table" id="EnableKey__table_bxq_dz3_mlb"><caption></caption><colgroup><col><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="EnableKey__table_bxq_dz3_mlb__entry__1">名称</th> <th class="entry" id="EnableKey__table_bxq_dz3_mlb__entry__2">类型</th> <th class="entry" id="EnableKey__table_bxq_dz3_mlb__entry__3">描述</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="EnableKey__table_bxq_dz3_mlb__entry__1 "> <p class="p">code</p> </td> <td class="entry" headers="EnableKey__table_bxq_dz3_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="EnableKey__table_bxq_dz3_mlb__entry__3 "> <p class="p">返回码,成功返回"SUCCESS"</p> </td> </tr> <tr class="row"> <td class="entry" headers="EnableKey__table_bxq_dz3_mlb__entry__1 "> <p class="p">requestId</p> </td> <td class="entry" headers="EnableKey__table_bxq_dz3_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="EnableKey__table_bxq_dz3_mlb__entry__3 "> <p class="p">当前请求Id</p> </td> </tr> </tbody></table> <p class="p"><strong class="ph b">请求示例</strong></p> <pre class="pre codeblock"><code>https:// kms-cn-shanghai.yun.pingan.com/?action=EnableKey &keyId=<cmkid> &<公共请求参数></code></pre> <p class="p"><strong class="ph b">返回示例</strong></p> <pre class="pre codeblock"><code>{ "code": "SUCCESS", "requestId": "77a0a9b1-403d-443f-9869-566a24ca30d9" }</code></pre> </section>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

工单支持

解决云产品相关技术问题