Retrieves a list of access policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:ListPolicies |
get |
*Policy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of entries to return on each page. |
20 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. If this parameter is empty, no more results exist. |
BBBAAfu+XtuBE55iRLHEYYuojI4= |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
51945B04-6AA6-410D-93BA-236E0248B104 |
| NextToken |
string |
The token that is used to retrieve the next page of results. |
AAAAAZ9FmxgN6wKfeK/GOKRnnjU= |
| Policies |
array<object> |
The list of access policies. |
|
|
object |
The information about the access policy. |
||
| Description |
string |
The description of the access policy. |
Only read permission policy |
| PolicyName |
string |
The name of the access policy. |
AliyunComputeNestPolicyForReadOnly |
| PolicyType |
string |
The type of the access policy.
|
System |
| PolicyDocument |
string |
The content of the policy. |
{"Action":["*:Describe*","*:List*","*:Get*","*:BatchGet*","*:Query*","*:BatchQuery*","actiontrail:LookupEvents"],"Resource":["*"],"Effect":"Allow"} |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
Examples
Success response
JSON format
{
"RequestId": "51945B04-6AA6-410D-93BA-236E0248B104",
"NextToken": "AAAAAZ9FmxgN6wKfeK/GOKRnnjU=",
"Policies": [
{
"Description": "Only read permission policy",
"PolicyName": "AliyunComputeNestPolicyForReadOnly",
"PolicyType": "System",
"PolicyDocument": "{\"Action\":[\"*:Describe*\",\"*:List*\",\"*:Get*\",\"*:BatchGet*\",\"*:Query*\",\"*:BatchQuery*\",\"actiontrail:LookupEvents\"],\"Resource\":[\"*\"],\"Effect\":\"Allow\"}"
}
],
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.