All Products
Search
Document Center

CloudOps Orchestration Service:GetParametersByPath

Last Updated:Oct 14, 2024

Queries one or more parameters by path.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
oos:GetParametersByPathget
  • parameter
    acs:oos:{#regionId}:{#accountId}:parameter/{#parameterName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of the region.

cn-hangzhou
PathstringYes

The path of the parameter. For example, if the name of a parameter is /path/path1/Myparameter, the path of the parameter is /path/path1/.

/parameter
RecursivebooleanNo

Specifies whether to recursively query encryption parameters from all levels of directories in the specified path. Valid values: true and false. For example, if you want to query the /secretParameter/mySecretParameter and /secretParameter/secretParameter 1/mySecretParameter parameters, the valid values specify the parameters to be returned.

  • true: returns both of the /secretParameter/mySecretParameter and /secretParameter/secretParameter1/mySecretParameter parameters.
  • false: returns only the /secretParameter/mySecretParameter parameter.
false
NextTokenstringNo

A pagination token. It can be used in the next request to retrieve a new page of results.

MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzA
MaxResultsintegerNo

The number of entries per page.

10

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC
RequestIdstring

The ID of the request.

25156E99-7437-4590-AA58-2ACA17DE405C
TotalCountinteger

The total number of returned entries.

1
MaxResultsinteger

The number of entries per page.

10
Parametersarray<object>

The information about the common parameters.

Parameterobject
Typestring

The type of the common parameter.

StringList
UpdatedDatestring

The time when the common parameter was last updated.

2020-10-21T04:03:12Z
UpdatedBystring

The user who updated the common parameter.

root(130900000)
Valuestring

The value of the common parameter.

"parameter1,parameter2"
Descriptionstring

The description of the common parameter.

parameter
Constraintsstring

The constraints of the common parameter.

{\"MaxLength\": 2}
CreatedBystring

The user who created the common parameter.

root(130900000)
CreatedDatestring

The time when the common parameter was created.

2020-10-21T04:03:12Z
ParameterVersioninteger

The version number of the common parameter.

1
Namestring

The name of the common parameter.

myParameter
Idstring

The ID of the common parameter.

p-7cdc0000000000000000
ShareTypestring

The share type of the common parameter.

Private
Tagsobject

The tags added to the common parameters.

{"k1": "v1", "k2": "v2"}

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-04-18The response structure of the API has changedView Change Details