Lists the policies attached to a RAM role.


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

Request parameters

Parameter Type Required? Example value Description
Action String Yes ListPoliciesForRole

The name of this action.

Value: ListPoliciesForRole

RoleName String Yes AdminRole The RAM role name.

Response parameters

Parameter Type Example value Description
Policies N/A N/A The list of policies attached to the RAM role.
AttachDate String 2015-01-23T12:33:18Z The date and time when a policy was attached to the RAM role.
DefaultVersion String v1 The default policy version.
Description String OSS administrator The policy description.
String OSS-Administrator The policy name.
PolicyType String Custom The policy type.
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 access</Description>

JSON format

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


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