GetSecretValue
更新时间:2023-03-07
GetSecretValue
- 接口描述
获取凭据数值。
- 请求URI
Plain Text
1POST /?action=GetSecretValue
请求体参数
- 请求体字段数据结构说明
参数 | 类型 | 是否必需 | 描述 | 示例值 |
---|---|---|---|---|
SecretId | String | 是 | 凭据id | |
SecretVersion | String | 否 | 凭据版本 | 不指定,则默认选择最新版本 |
SecretStage | String | 否 | 凭据版本状态 | 对于通用凭据有效,可以直接选择是current或者previous |
响应体参数
- 响应体字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
SecretId | String | 凭据id | |
SecretVersion | String | 凭据版本 | |
SecretGenericData | String | 通用凭据内容,通用类型时存在 | |
SecretRdsData | []RdsSecret | RDS凭据内容,RDS类型时存在 | |
SecretBccData | []BccSecret | BCC凭据内容,BCC类型时存在 | |
RotateAccount | String | 处于轮转周期的账号 |
- RdsSecret字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
Account | String | 账号 | |
Password | String | 密码 |
- BccSecret字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
UserName | String | BCC账号 | |
Password | String | BCC密码 | |
PrivateKey | String | BCC绑定密钥对私钥,和密码不同时存在 | |
PublicKey | String | BCC绑定密钥对公钥,和密码不同时存在 | |
FingerPrint | String | BCC绑定密钥对指纹,和密码不同时存在 |
请求示例
Plain Text
1POST /ssm?action=GetSecretValue
2<公共请求头>
3
4{
5"SecretId":"041e5c01-090d-955c-dd7b-776fd49ba8f5",
6"SecretVersion":"ccccc-cfe178ed"
7}
响应示例
Plain Text
1
2HTTP/1.1 200 OK
3<公共响应头>
4
5{
6 "SecretId": "041e5c01-090d-955c-dd7b-776fd49ba8f5",
7 "SecretVersion": "ccccc-cfe178ed",
8 "SecretGenericData": "{\"sd\":\"wwww\"}"
9}
10