Retrieves the details of one or more encrypted parameters. Make sure that you have the permissions to call the Key Management Service (KMS) GetSecretValue API operation before you call this API operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GetSecretParameters |
get |
*secretparameter
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| Names |
string |
Yes |
The parameter names. You can specify multiple parameter names in a JSON array in the format of ["xxxxxxxxx", "yyyyyyyyy", … "zzzzzzzzz"]. A maximum of 10 parameter names are supported. Separate multiple parameter names with commas (,). |
["secretParameter","secretParameter1"] |
| WithDecryption |
boolean |
No |
Specifies whether to decrypt the parameter values. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A5320F1D-92D9-44BB-A416-5FC525ED6D57 |
| InvalidParameters |
array |
The invalid parameters. |
|
|
string |
The list of invalid parameter names. |
[ "InvalidSecretParameter"] |
|
| Parameters |
array<object> |
The parameter information. |
|
|
array<object> |
|||
| Type |
string |
The parameter type. |
Secret |
| UpdatedDate |
string |
The time when the parameter was updated. The time is in ISO 8601 format and in UTC. |
2020-10-22T03:11:13Z |
| UpdatedBy |
string |
The user who updated the parameter. |
root(130900000) |
| KeyId |
string |
The key ID. |
ssh-bp67acfmxazb4p**** |
| Tags |
object |
The tags. |
{"k1": "v1", "k2": "v2"} |
| Value |
string |
The parameter value. |
secretParameter,secretParameter1 |
| Description |
string |
The description of the parameter. |
secretParameter |
| Constraints |
string |
The constraints of the parameter. |
{\"AllowedValues\": [\"test\"]} |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxsn4m4****** |
| CreatedBy |
string |
The user who created the parameter. |
root(130900000) |
| CreatedDate |
string |
The time when the parameter was created. The time is in ISO 8601 format and in UTC. |
2020-10-22T03:11:13Z |
| ParameterVersion |
integer |
The version number of the parameter. |
1 |
| Name |
string |
The parameter name. |
MySecretParameter |
| Id |
string |
The parameter ID. |
p-7cdc0000000000000000 |
| ShareType |
string |
The sharing type of the parameter. |
Private |
Examples
Success response
JSON format
{
"RequestId": "A5320F1D-92D9-44BB-A416-5FC525ED6D57",
"InvalidParameters": [
"[ \"InvalidSecretParameter\"]"
],
"Parameters": [
{
"Type": "Secret",
"UpdatedDate": "2020-10-22T03:11:13Z",
"UpdatedBy": "root(130900000)",
"KeyId": "ssh-bp67acfmxazb4p****",
"Tags": {
"k1": "v1",
"k2": "v2"
},
"Value": "secretParameter,secretParameter1",
"Description": "secretParameter",
"Constraints": "{\\\"AllowedValues\\\": [\\\"test\\\"]}",
"ResourceGroupId": "rg-acfmxsn4m4******",
"CreatedBy": "root(130900000)",
"CreatedDate": "2020-10-22T03:11:13Z",
"ParameterVersion": 1,
"Name": "MySecretParameter",
"Id": "p-7cdc0000000000000000",
"ShareType": "Private"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.