Call ListControlPolicies to retrieve a list of control policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:ListControlPolicies |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyType |
string |
No |
The type of control policy. Valid values:
|
System |
| PageNumber |
integer |
No |
The page number. Starting value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid range: 1 to 100. Default value: 10. |
10 |
| Language |
string |
No |
The language of the returned descriptions for control policies. Valid values:
Note
This parameter takes effect only for system control policies. |
zh-CN |
| Tag |
array<object> |
No |
The tags of the policy. |
|
|
object |
No |
A tag. |
||
| Key |
string |
No |
The key of the tag. |
tag_key |
| Value |
string |
No |
The value of the tag. |
tag_value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| 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 |
The control policies. |
|
| ControlPolicy |
array<object> |
The list of control policies. |
|
|
array<object> |
A control policy. |
||
| UpdateDate |
string |
The time the control policy was last updated. |
2020-08-05T06:32:24Z |
| Description |
string |
The description of the control policy. |
支持阿里云所有操作的系统管控策略 |
| EffectScope |
string |
The effective scope of the control policy. Valid values:
|
All |
| AttachmentCount |
string |
The number of times the control policy is attached. |
44 |
| PolicyName |
string |
The name of the control policy. |
FullAliyunAccess |
| PolicyId |
string |
The ID of the control policy. |
cp-FullAliyunAccess |
| CreateDate |
string |
The time the control policy was created. |
2020-08-05T06:32:24Z |
| PolicyType |
string |
The type of the control policy. Valid values:
|
System |
| Tags |
object |
The tags attached to the control policy. |
|
| Tag |
array<object> |
The list of tags. |
|
|
object |
A tag. |
||
| Key |
string |
The tag key. |
tag_key |
| Value |
string |
The tag value. |
tag_value |
| ControlPolicyType |
string |
The type of the control policy. This parameter is available only in the China (Shenzhen) Finance and China (Shanghai) Finance regions. |
RESOURCE_CONTROL_POLICY |
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",
"Tags": {
"Tag": [
{
"Key": "tag_key",
"Value": "tag_value"
}
]
},
"ControlPolicyType": "RESOURCE_CONTROL_POLICY"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.