Retrieves a common parameter or public parameter, including the parameter value.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GetParameter |
get |
*parameter
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| Name |
string |
Yes |
The parameter name. The name can contain letters, digits, hyphens, and underscores, and cannot exceed 200 characters in length. |
MyParameter |
| ParameterVersion |
integer |
No |
The parameter version number. Valid values: 1 to 100. |
1 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxsn4m***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BA326372-2A10-4C3B-BE3E-6439DB7557CC |
| Parameter |
object |
The parameter information. |
|
| Type |
string |
The parameter type. |
String |
| UpdatedDate |
string |
The time when the parameter was last updated, in ISO 8601 format, UTC. |
2020-09-01T08:01:43Z |
| UpdatedBy |
string |
The user who last updated the parameter. |
root(130900000) |
| Tags |
object |
The tags. |
{"k1":"v1","k2":"v2"} |
| Value |
string |
The parameter value. |
parameter |
| Description |
string |
The parameter description. |
parameter |
| Constraints |
string |
The parameter constraints. |
'{''AllowedValues":["parameter"],"AllowedPattern":"parameter","MinLength":0,"MaxLength":20}' |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxsn4m***** |
| CreatedBy |
string |
The user who created the parameter. |
root(130900000) |
| CreatedDate |
string |
The time when the parameter was created, in ISO 8601 format, UTC. |
2020-09-01T08:01:43Z |
| ParameterVersion |
integer |
The parameter version number. |
1 |
| Name |
string |
The parameter name. |
MyParameter |
| Id |
string |
The parameter ID. |
p-4c4b401cab6747xxxxxx |
| ShareType |
string |
The parameter sharing type. |
Private |
Examples
Success response
JSON format
{
"RequestId": "BA326372-2A10-4C3B-BE3E-6439DB7557CC",
"Parameter": {
"Type": "String",
"UpdatedDate": "2020-09-01T08:01:43Z",
"UpdatedBy": "root(130900000)",
"Tags": {
"k1": "v1",
"k2": "v2"
},
"Value": "parameter",
"Description": "parameter",
"Constraints": "'{''AllowedValues\":[\"parameter\"],\"AllowedPattern\":\"parameter\",\"MinLength\":0,\"MaxLength\":20}'",
"ResourceGroupId": "rg-acfmxsn4m*****",
"CreatedBy": "root(130900000)",
"CreatedDate": "2020-09-01T08:01:43Z",
"ParameterVersion": 1,
"Name": "MyParameter",
"Id": "p-4c4b401cab6747xxxxxx",
"ShareType": "Private"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.