{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-get-parameters-by-path-request-schema.json",
  "title": "GetParametersByPathRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-parameter-api-openapi.yml#/components/schemas/GetParametersByPathRequest",
  "type": "object",
  "properties": {
    "Path": {
      "type": "string",
      "description": "The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: /Finance/Prod/IAD/WinServ2016/license33"
    },
    "Recursive": {
      "type": "boolean",
      "description": "Retrieve all parameters within a hierarchy."
    },
    "ParameterFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ParameterStringFilter"
      },
      "description": "Filters to limit the request results. The following Key values are supported for GetParametersByPath: Type, KeyId, and Label. The following Key values aren't supported for GetParametersByPath: tag, DataType, Name, Path, and Tier."
    },
    "WithDecryption": {
      "type": "boolean",
      "description": "Retrieve all parameters in a hierarchy with their value decrypted."
    },
    "MaxResults": {
      "type": "integer",
      "description": "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."
    },
    "NextToken": {
      "type": "string",
      "description": "A token to start the list. Use this token to get the next set of results."
    }
  },
  "required": [
    "Path"
  ],
  "$defs": {
    "ParameterStringFilter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name of the filter. The ParameterStringFilter object is used by the DescribeParameters and GetParametersByPath API operations. However, not all of the pattern values listed for Key can be used with both operations. For DescribeParameters, all of the listed patterns are valid except Label. For GetParametersByPath, the following patterns listed for Key aren't valid: tag, DataType, Name, Path, and Tier. For examples of Amazon Web Services CLI commands demonstrating valid parameter filter constructions, see Searching for Systems Manager parameters in the Amazon Web Services Systems Manager Use"
        },
        "Option": {
          "type": "string",
          "description": "For all filters used with DescribeParameters, valid options include Equals and BeginsWith. The Name filter additionally supports the Contains option. (Exception: For filters using the key Path, valid options include Recursive and OneLevel.) For filters used with GetParametersByPath, valid options include Equals and BeginsWith. (Exception: For filters using Label as the Key name, the only valid option is Equals.)"
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value you want to search for."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}