All Products
Search
Document Center

Resource Management:ListControlPolicies

Last Updated:Jun 25, 2024

Queries access control policies.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyTypestringNo

The type of the access control policies. Valid values:

  • System: system access control policy
  • Custom: custom access control policy
System
PageNumberintegerNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page.

Valid values: 1 to 100. Default value: 10.

10
LanguagestringNo

The language in which you want to return the descriptions of the access control policies. Valid values:

  • zh-CN (default value): Chinese
  • en: English
  • ja: Japanese
Note This parameter is available only for system access control policies.
zh-CN

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

TotalCountinteger

The number of access control policies.

1
RequestIdstring

The ID of the request.

9424A34C-3471-45AD-B6AB-924BBDFE42F9
PageSizeinteger

The number of entries returned per page.

10
PageNumberinteger

The page number of the returned page.

1
ControlPoliciesobject []

The information of the access control policies.

UpdateDatestring

The time when the access control policy was updated.

2020-08-05T06:32:24Z
Descriptionstring

The description of the access control policy.

System access control policy available for all operations on the cloud
EffectScopestring

The effective scope of the access control policy. Valid values:

  • All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
  • RAM: The access control policy is in effect only for RAM users and RAM roles.
All
AttachmentCountstring

The number of times that the access control policy is referenced.

44
PolicyNamestring

The name of the access control policy.

FullAliyunAccess
PolicyIdstring

The ID of the access control policy.

cp-FullAliyunAccess
CreateDatestring

The time when the access control policy was created.

2020-08-05T06:32:24Z
PolicyTypestring

The type of the access control policy. Valid values:

  • System: system access control policy
  • Custom: custom access control policy
System

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "9424A34C-3471-45AD-B6AB-924BBDFE42F9",
  "PageSize": 10,
  "PageNumber": 1,
  "ControlPolicies": {
    "ControlPolicy": [
      {
        "UpdateDate": "2020-08-05T06:32:24Z",
        "Description": "System access control policy available for all operations on the cloud\n",
        "EffectScope": "All",
        "AttachmentCount": "44",
        "PolicyName": "FullAliyunAccess",
        "PolicyId": "cp-FullAliyunAccess",
        "CreateDate": "2020-08-05T06:32:24Z",
        "PolicyType": "System"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history