最近更新时间:2023.06.21 16:55:00
首次发布时间:2021.11.24 19:45:10
描述
创建密钥环
请求业务参数
名称 | 类型 | 是否必选 | 示范值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateKeyring | 接口名,取值:CreateKeyring |
Version | String | 是 | 2021-02-18 | 版本号,取值:2021-02-18 |
KeyringName | String | 是 | test_keyring-1 | 密钥环的别名。长度为 2 - 31 个字符合法字符:[a-zA-Z0-9-_] |
KeyringType | String | 否 | CustomKeyring | 密钥环的类型,取值:CustomKeyring |
Description | String | 否 | Example description | 密钥环的描述。长度为 0 - 8192 个字符。 |
返回参数:
参数名称 | 数据类型 | 参数说明 |
---|---|---|
ResponseMetaData | ResponseMetaData | 返回公共参数 |
Result | Keyring | 密钥环信息 |
请求示例:
https://kms.volcengineapi.com?Action=CreateKeyring&Version=2021-02-18&KeyringName=demo&Description=demo%20keyring%20for%20test&KeyringType=CustomKeyring
返回示例:
{ "ResponseMetadata":{ "RequestId":"DBFD8037-904D-4DD2-9BDB-BDF743E545B5", "Action":"CreateKeyring", "Version":"2021-02-18", "Service":"kms", "Region":"cn-north-1" }, "Result":{ "Keyring":{ "ID":"758cb40e-3bf2-4cff-88d5-f898e1d9cf27", "CreationDate":1626748349, "UpdateDate":1626748349045, "KeyringName":"demo", "KeyringType":"CustomKeyring", "Description":"demo keyring for test", "UID":"2100000282" } } }