Queries the list of control policies.
Operation description
This topic provides an example on how to call the API operation to query the system access control policies within a resource directory. The response shows that the resource directory has only one system access control policy. The policy is named FullAliyunAccess.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:ListControlPolicies |
get |
*ControlPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyType |
string |
No |
The type of the control policy. Valid values:
|
System |
| PageNumber |
integer |
No |
The page number. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
| Language |
string |
No |
The language in which you want the description of the control policy to be returned. Valid values:
Note
This parameter is valid only for system control policies. |
zh-CN |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TotalCount |
integer |
The total number of control policies. |
1 |
| RequestId |
string |
The request ID. |
9424A34C-3471-45AD-B6AB-924BBDFE42F9 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| ControlPolicies |
object |
||
| ControlPolicy |
array<object> |
The list of control policies. |
|
|
object |
The list of control policies. |
||
| UpdateDate |
string |
The time when the control policy was last updated, in RFC 3339 UTC time format with Z indicating UTC. |
2020-08-05T06:32:24Z |
| Description |
string |
The description of the control policy. |
A system control policy that supports all Alibaba Cloud operations |
| EffectScope |
string |
The effective scope of the control policy. Valid values:
|
All |
| AttachmentCount |
string |
The number of times the control policy is referenced. |
44 |
| PolicyName |
string |
The name of the control policy. |
FullAliyunAccess |
| PolicyId |
string |
The ID of the control policy. |
cp-FullAliyunAccess |
| CreateDate |
string |
The time when the control policy was created, in RFC 3339 UTC time format with Z indicating UTC. |
2020-08-05T06:32:24Z |
| PolicyType |
string |
The type of the control policy. Valid values:
|
System |
Examples
Success response
JSON format
{
"TotalCount": 1,
"RequestId": "9424A34C-3471-45AD-B6AB-924BBDFE42F9",
"PageSize": 10,
"PageNumber": 1,
"ControlPolicies": {
"ControlPolicy": [
{
"UpdateDate": "2020-08-05T06:32:24Z",
"Description": "支持阿里云所有操作的系统管控策略",
"EffectScope": "All",
"AttachmentCount": "44",
"PolicyName": "FullAliyunAccess",
"PolicyId": "cp-FullAliyunAccess",
"CreateDate": "2020-08-05T06:32:24Z",
"PolicyType": "System"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.