获取一个加密参数,包括参数值。请确保在使用该接口前有操作kms GetSecretValue API的权限。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
oos:GetSecretParameter |
get |
*secretparameter
|
|
无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
RegionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
Name |
string |
是 |
参数名称。取值范围:内容限制为字母、数字、中划线、下划线,长度不能超过 180 字符,且不能以 ALIYUN、ACS、ALIBABA、ALICLOUD、OOS 开头。 |
MySecretParameter |
ParameterVersion |
integer |
否 |
参数版本号。取值范围:1-100。 |
1 |
WithDecryption |
boolean |
否 |
是否解密参数值。只有参数为 true 时,返回值的 value 才会有结果,否则为空。 |
false |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
加密参数的信息。 |
||
RequestId |
string |
请求 ID。 |
7F14FB7C-C9BE-44AE-92ED-21ACC02FBFD2 |
Parameter |
object |
加密参数信息 |
|
Type |
string |
参数类型 |
Secret |
UpdatedDate |
string |
参数更新时间 |
2020-09-01T09:35:17Z |
UpdatedBy |
string |
参数更新者 |
root(130900000) |
KeyId |
string |
加密使用的 KMS 的 KeyId |
80e9409f-78fa-42ab-84bd-83f40c****** |
Tags |
object |
标签 |
{"k1": "v1", "k2": "v2"} |
Value |
string |
参数内容 |
SecretParameter |
Description |
string |
参数描述信息 |
SecretParameter |
Constraints |
string |
参数约束条件 |
'{''AllowedValues":["secretparameter"],"AllowedPattern":".*","MinLength":0,"MaxLength":20}' |
ResourceGroupId |
string |
资源组 ID |
rg-acfmxsn4m4****** |
CreatedBy |
string |
参数创建者 |
root(130900000) |
CreatedDate |
string |
参数创建时间 |
2020-09-01T09:28:47Z |
ParameterVersion |
integer |
参数版本号 |
1 |
Name |
string |
加密参数名称 |
MySecretParameter |
Id |
string |
加密参数 Id |
p-14ed150fdcd048xxxxxx |
ShareType |
string |
参数共享类型 |
Private |
DKMSInstanceId |
string |
KMS 实例的实例 ID。 |
kst-hzz**** |
示例
正常返回示例
JSON
格式
{
"RequestId": "7F14FB7C-C9BE-44AE-92ED-21ACC02FBFD2",
"Parameter": {
"Type": "Secret",
"UpdatedDate": "2020-09-01T09:35:17Z",
"UpdatedBy": "root(130900000)",
"KeyId": "80e9409f-78fa-42ab-84bd-83f40c******",
"Tags": {
"k1": "v1",
"k2": "v2"
},
"Value": "SecretParameter",
"Description": "SecretParameter",
"Constraints": "'{''AllowedValues\":[\"secretparameter\"],\"AllowedPattern\":\".*\",\"MinLength\":0,\"MaxLength\":20}'",
"ResourceGroupId": "rg-acfmxsn4m4******",
"CreatedBy": "root(130900000)",
"CreatedDate": "2020-09-01T09:28:47Z",
"ParameterVersion": 1,
"Name": "MySecretParameter",
"Id": "p-14ed150fdcd048xxxxxx",
"ShareType": "Private",
"DKMSInstanceId": "kst-hzz****"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。