Retrieves parameters by path.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GetParametersByPath |
get |
*parameter
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| Path |
string |
Yes |
The parameter path. The path must be fewer than 200 characters. For example, for the parameter /parameter/myparameter, the path is /parameter. |
/parameter |
| Recursive |
boolean |
No |
Specifies whether to recursively search the path. For example, given the parameters /parameter/myparameter and /parameter/prameter1/myparameter, valid values:
|
false |
| NextToken |
string |
No |
The pagination token. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzA |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 10. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token. |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC |
| RequestId |
string |
The request ID. |
25156E99-7437-4590-AA58-2ACA17DE405C |
| TotalCount |
integer |
The total number of parameters returned. |
1 |
| MaxResults |
integer |
The number of entries per page. |
10 |
| Parameters |
array<object> |
The parameter information. |
|
|
array<object> |
|||
| Type |
string |
The parameter type. |
StringList |
| UpdatedDate |
string |
The time when the parameter was last updated, in ISO 8601 format (UTC). |
2020-10-21T04:03:12Z |
| UpdatedBy |
string |
The user who last updated the parameter. |
root(130900000) |
| Value |
string |
The value of the parameter. |
"parameter1,parameter2" |
| Description |
string |
The description of the parameter. |
parameter |
| Constraints |
string |
The constraints of the parameter. |
{\"MaxLength\": 2} |
| 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-10-21T04:03:12Z |
| 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 sharing type of the parameter. |
Private |
| Tags |
object |
The tags. |
{"k1": "v1", "k2": "v2"} |
Examples
Success response
JSON format
{
"NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC",
"RequestId": "25156E99-7437-4590-AA58-2ACA17DE405C",
"TotalCount": 1,
"MaxResults": 10,
"Parameters": [
{
"Type": "StringList",
"UpdatedDate": "2020-10-21T04:03:12Z",
"UpdatedBy": "root(130900000)",
"Value": "\"parameter1,parameter2\"",
"Description": "parameter",
"Constraints": "{\\\"MaxLength\\\": 2}",
"CreatedBy": "root(130900000)",
"CreatedDate": "2020-10-21T04:03:12Z",
"ParameterVersion": 1,
"Name": "myParameter",
"Id": "p-7cdc0000000000000000",
"ShareType": "Private",
"Tags": {
"k1": "v1",
"k2": "v2"
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.