Queries a standard or common parameter and its 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 name of the parameter. The name can be up to 200 characters in length and can contain letters, digits, hyphens (-), and underscores (_). | MyParameter |
ParameterVersion | integer | No | The version number of the parameter. Valid values: 1 to 100. | 1 |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmxsn4m***** |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | BA326372-2A10-4C3B-BE3E-6439DB7557CC |
| Parameter | object | The information about the parameter. | |
Type | string | The type of the parameter. | String |
UpdatedDate | string | The time when the parameter was updated. | 2020-09-01T08:01:43Z |
UpdatedBy | string | The user who updated the parameter. | root(130900000) |
Tags | object | The tags. | {"k1":"v1","k2":"v2"} |
Value | string | The value of the parameter. | parameter |
Description | string | The description of the parameter. | parameter |
Constraints | string | The constraints of the parameter. | '{''AllowedValues":["parameter"],"AllowedPattern":"parameter","MinLength":0,"MaxLength":20}' |
ResourceGroupId | string | The ID of the resource group. | rg-acfmxsn4m***** |
CreatedBy | string | The user who created the parameter. | root(130900000) |
CreatedDate | string | The time when the parameter was created. | 2020-09-01T08:01:43Z |
ParameterVersion | integer | The version number of the parameter. | 1 |
Name | string | The name of the parameter. | MyParameter |
Id | string | The ID of the parameter. | p-4c4b401cab6747xxxxxx |
ShareType | string | The share type of the parameter. | 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.