Retrieves the list of all policies in an organization of a specified type.
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.ListPolicies
Query parameters
MaxResultsstring
Pagination limit
NextTokenstring
Pagination token
Headers
X-Amz-Target'AWSOrganizationsV20161128.ListPolicies' required
Request body
Response
Success
Example response
{
"Policies": [
{
"Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
"AwsManaged": false,
"Description": "Enables account admins to delegate permissions for any S3 actions to users and roles in their accounts.",
"Id": "p-examplepolicyid111",
"Name": "AllowAllS3Actions",
"Type": "SERVICE_CONTROL_POLICY"
},
{
"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"
},
{
"Arn": "arn:aws:organizations::aws:policy/service_control_policy/p-FullAWSAccess",
"AwsManaged": true,
"Description": "Allows access to every operation",
"Id": "p-FullAWSAccess",
"Name": "FullAWSAccess",
"Type": "SERVICE_CONTROL_POLICY"
}
]
}