Menu
AWS Systems Manager
API Reference (API Version 2014-11-06)

GetParametersByPath

Retrieve parameters in a specific hierarchy. For more information, see Working with Systems Manager Parameters.

Request results are returned on a best-effort basis. If you specify MaxResults in the request, the response includes information up to the limit specified. The number of items returned, however, can be between zero and the value of MaxResults. If the service reaches an internal limit while processing the results, it stops the operation and returns the matching values up to that point and a NextToken. You can specify the NextToken in a subsequent call to get the next set of results.

Request Syntax

{
   "MaxResults": number,
   "NextToken": "string",
   "ParameterFilters": [ 
      { 
         "Key": "string",
         "Option": "string",
         "Values": [ "string" ]
      }
   ],
   "Path": "string",
   "Recursive": boolean,
   "WithDecryption": boolean
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

MaxResults

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 10.

Required: No

NextToken

A token to start the list. Use this token to get the next set of results.

Type: String

Required: No

ParameterFilters

Filters to limit the request results.

Type: Array of ParameterStringFilter objects

Required: No

Path

The hierarchy for the parameter. Hierarchies start with a forward slash (/) and end with the parameter name. A hierarchy can have a maximum of five levels. For example: /Finance/Prod/IAD/WinServ2016/license15

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Required: Yes

Recursive

Retrieve all parameters within a hierarchy.

Type: Boolean

Required: No

WithDecryption

Retrieve all parameters in a hierarchy with their value decrypted.

Type: Boolean

Required: No

Response Syntax

{
   "NextToken": "string",
   "Parameters": [ 
      { 
         "Name": "string",
         "Type": "string",
         "Value": "string",
         "Version": number
      }
   ]
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

NextToken

The token for the next set of items to return. Use this token to get the next set of results.

Type: String

Parameters

A list of parameters found in the specified hierarchy.

Type: Array of Parameter objects

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerError

An error occurred on the server side.

HTTP Status Code: 400

InvalidFilterKey

The specified key is not valid.

HTTP Status Code: 400

InvalidFilterOption

The specified filter option is not valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.

HTTP Status Code: 400

InvalidFilterValue

The filter value is not valid. Verify the value and try again.

HTTP Status Code: 400

InvalidKeyId

The query key ID is not valid.

HTTP Status Code: 400

InvalidNextToken

The specified token is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: