Lists policies.


Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes ListPolicies

The name of this action.

Value: ListPolicies

Marker String No EXAMPLE The marker. If part of a response is intercepted, you can use this parameter to obtain the intercepted content.
MaxItems Integer No 100

The number of permitted response items. If a response is intercepted when it reaches the maximum value of this parameter, the value of IsTruncated is true.

Value range: 1 to 1,000

Default value: 100

PolicyType String No System

The policy type. If this parameter is not set, all polices are listed.

Valid values: System | Custom

Response parameters

Parameter Type Example value Description
IsTruncated Boolean true Indicates whether a response is intercepted.
Marker String EXAMPLE This parameter is available only when the value of IsTruncated is true. In which case, you can call this action and use the specific marker to obtain the intercepted content.
Policies N/A N/A The policy list.
AttachmentCount Integer 3 The number of times that a policy is referenced.
CreateDate String 2015-01-23T12:33:18Z The date and time when a policy was created.
DefaultVersion String v1 The default version.
Description String OSS administrator The policy description.
PolicyName String OSS-Administrator The policy name.
PolicyType String System The policy type.
UpdateDate String 2015-01-23T12:33:18Z The date and time when a policy was modified.
RequestId String 7B8A4E7D-6CFF-471D-84DF-195A7A241ECB The request ID.


Request example
&<Common parameters>

Response example

XML format

      <Description>OSS administrator</Description>
      <Description>Read-only permission</Description>

JSON format

                "Description":"OSS administrator",
                "Description":"Read-only permission",


For a list of error codes, visit the API Error Center.