Skip to content

/AWS1/CL_DIR=>LOOKUPPOLICY00()

About LookupPolicy

Lists all policies from the root of the Directory 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 ObjectIdentifier for such objects. If policies are present, it returns ObjectIdentifier, policyId, and policyType. Paths that don't lead to the root from the target object are ignored. For more information, see Policies.

Method Signature

IMPORTING

Required arguments:

IV_DIRECTORYARN TYPE /AWS1/DIRARN /AWS1/DIRARN

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

IO_OBJECTREFERENCE TYPE REF TO /AWS1/CL_DIROBJECTREFERENCE /AWS1/CL_DIROBJECTREFERENCE

Reference that identifies the object whose policies will be looked up.

Optional arguments:

IV_NEXTTOKEN TYPE /AWS1/DIRNEXTTOKEN /AWS1/DIRNEXTTOKEN

The token to request the next page of results.

IV_MAXRESULTS TYPE /AWS1/DIRNUMBERRESULTS /AWS1/DIRNUMBERRESULTS

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_DIRLOOKUPPOLICYRSP /AWS1/CL_DIRLOOKUPPOLICYRSP