v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1466336354.1 KB

Lists all policies from the root of the <a>Directory</a> to the object specified. If there are no policies present, an empty list is returned. If policies are present, and if some objects don't have the policies attached, it returns the <code>ObjectIdentifier</code> for such objects. If policies are present, it returns <code>ObjectIdentifier</code>, <code>policyId</code>, and <code>policyType</code>. Paths that don't lead to the root from the target object are ignored. For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies">Policies</a>.

post/amazonclouddirectory/2017-01-11/policy/lookup#x-amz-data-partition

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

x-amz-data-partitionstring required

The Amazon Resource Name (ARN) that is associated with the <a>Directory</a>. For more information, see <a>arns</a>.

Request body

NextTokenstring

The token to request the next page of results.

MaxResultsinteger

The maximum number of items to be retrieved in a single call. This is an approximate number.

Response

Success

NextTokenstring

The pagination token.