Queries the details of one or more parameters.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
oos:GetParameters | get | *parameter
|
| None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | No | The region ID. | cn-hangzhou |
Names | string | Yes | The names of the parameters. The value must be a JSON array that contains one or more parameter names. You can specify up to 10 parameter names. Format: `["name1", "name2", ...]`. | ["parameter1","parameter2"] |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 2597E94B-5346-42D1-BB58-D3333EDD0975 |
| InvalidParameters | array | A list of invalid parameters. | |
string | An invalid parameter. | InvalidParameter | |
| Parameters | array<object> | The information about the parameters. | |
object | |||
Type | string | The type of the parameter. | StringList |
UpdatedDate | string | The time when the parameter was last updated. | 2020-10-22T03:30:45Z |
UpdatedBy | string | The user who last updated the parameter. | root(130900000) |
Tags | object | The tags of the parameter. | {"k1": "v1", "k2": "v2"} |
Value | string | The value of the parameter. | parameter,parameter1 |
Description | string | The description of the parameter. | parameter |
Constraints | string | The constraints of the parameter. | {\"MaxLength\": 2} |
ResourceGroupId | string | The ID of the resource group. | rg-acfmxsn4m4****** |
CreatedBy | string | The user who created the parameter. | root(130900000) |
CreatedDate | string | The time when the parameter was created. | 2020-10-22T03:30:45Z |
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-7cdc0000000000000000 |
ShareType | string | The share type of the parameter. | Private |
Examples
Success response
JSON format
{
"RequestId": "2597E94B-5346-42D1-BB58-D3333EDD0975",
"InvalidParameters": [
"InvalidParameter"
],
"Parameters": [
{
"Type": "StringList",
"UpdatedDate": "2020-10-22T03:30:45Z",
"UpdatedBy": "root(130900000)",
"Tags": {
"k1": "v1",
"k2": "v2"
},
"Value": "parameter,parameter1",
"Description": "parameter",
"Constraints": "{\\\"MaxLength\\\": 2}",
"ResourceGroupId": "rg-acfmxsn4m4******",
"CreatedBy": "root(130900000)",
"CreatedDate": "2020-10-22T03:30:45Z",
"ParameterVersion": 1,
"Name": "MyParameter",
"Id": "p-7cdc0000000000000000",
"ShareType": "Private"
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.