更新时间:2022-08-23 GMT+08:00
导入密钥材料
功能介绍
导入密钥材料。
URI
请求消息
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
key_id |
是 |
String |
密钥ID,36字节,满足正则匹配“^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$”。 例如:0d0466b0-e727-4d9c-b35d-f84bb474a37f |
import_token |
是 |
String |
密钥导入令牌,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{200,6144}$”。 |
encrypted_key_material |
是 |
String |
加密后的密钥材料,base64格式,满足正则匹配“^[0-9a-zA-Z+/=]{344,360}$”。 |
expiration_time |
否 |
String |
密钥材料到期时间,时间戳,即从1970年1月1日至该时间的总秒数,KMS会在该时间的24小时内删除密钥材料。 例如:1550291833 |
sequence |
否 |
String |
请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff |
响应消息
无
示例
如下将密钥导入令牌和密钥材料导入密钥ID为“bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e”的密钥,并指定密钥材料过期时间为“1521578672”为例。
- 请求样例
{ "key_id": "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "import_token":"AACIBjY2ZTQxYjBmLTY3ZWItNDU4Ny04OTIxLWVhZTVhZjg5NDZmYQAAuihvPN7Hly3uhp7cWw4cfuwDIem9mGwaIl7/HTx10+8ENsRR4FB7DCR+zG1s7UIZMAZRLx7LD1lkXY+rfN5ibDOOHZkoIiVSh+9u7xtC5m/mNpIFeyqumxHei2I8CNdsNuJtjLV5bDU3tQrIkj72HCWpC0k9yf1ZSvi3yCwD4wyULXBsYwUa76bTK85MIZNGGtqfOyV6w74MT6m70gLhog8r7oWe6Gbof58uyYfFMbc+s0OpkzMjvlvl1HApyOTijled26VgbgoGbPm9QvgjxC7mQEJpzQeg1/uNiziAG0YKo7wuD2mojwMBnr+XGJrrFgmdO0pUaK+53KtDr8dtpGrVfJ+0zvebA45c4A4VfvaQQDC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xdFvzUABNzfYSj3RZ0K3wQCNAcXU3HYw==", "expiration_time":1521578672 }
- 响应样例
{ }
或
{ "error": { "error_code": "KMS.XXXX", "error_msg": "XXX" } }
父主题: API说明