恢复凭据
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | RestoreSecret | 要执行的操作,取值:RestoreSecret。 |
Version | String | 是 | 2021-02-18 | API的版本,取值:2021-02-18。 |
SecretDataKey | String | 是 | C3UuDNBwR8eGeh4MpKp0bQAAY/IF0N+VFVlzDdbuKAaWYN8KxwbN9cqKB9d34lbeKFKPRGia9Egv/6PASfbgua7IG+ilsUOGkCTsqmvYcwGo/9prXDEutiThS6GOo/eenGpCzHYLV/p5TgeuzNc= | 备份凭据时返回的数据密钥密文,Base64 编码 |
BackupData | String | 是 | {} | 备份凭据时返回的 Secret 全量数据,JSON 格式 |
Signature | String | 是 | GHblfcSOT2aewMP5ZslQnSk6aM1R1WA4HpK8K+N/wGM= | 备份凭据时返回的 BackupData 的签名值,Base64 编码 |
本接口无特有的返回参数。更多信息请见返回结构。
POST /?Action=RestoreSecret&Version=2021-02-18 HTTP/1.1 Host: kms.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20240811T065828Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240811/cn-beijing/kms/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "SecretDataKey": "C3UuDNBwR8eGeh4MpKp0bQAAY/IF0N+VFVlzDdbuKAaWYN8KxwbN9cqKB9d34lbeKFKPRGia9Egv/6PASfbgua7IG+ilsUOGkCTsqmvYcwGo/9prXDEutiThS6GOo/eenGpCzHYLV/p5TgeuzNc=", "BackupData": "{}", "Signature": "GHblfcSOT2aewMP5ZslQnSk6aM1R1WA4HpK8K+N/wGM=" }
{ "ResponseMetadata": { "RequestId": "202408111458350352532021348F6125", "Action": "RestoreSecret", "Version": "2021-02-18", "Service": "kms", "Region": "cn-beijing" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | InvalidParameter | |
403 | Reject.Throttling.Action | |
403 | AccessDenied | |
404 | Not Found | |
409 | ProjectConflict | |
409 | Conflict | |
500 | UndefinedError |