Lists the policies that are directly attached to the specified target root, organizational unit (OU), or account. You must specify the policy type that you want included in the returned list.
Always check the NextToken response parameter for a null value when calling a List* operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
post/#X-Amz-Target=AWSOrganizationsV20161128.ListPoliciesForTarget
Query parameters
MaxResultsstring
Pagination limit
NextTokenstring
Pagination token
Headers
X-Amz-Target'AWSOrganizationsV20161128.ListPoliciesForTarget' required
Request body
Response
Success
Example response
{
"Policies": [
{
"Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid222",
"AwsManaged": false,
"Description": "Enables account admins to delegate permissions for any EC2 actions to users and roles in their accounts.",
"Id": "p-examplepolicyid222",
"Name": "AllowAllEC2Actions",
"Type": "SERVICE_CONTROL_POLICY"
}
]
}