Queries the permission policies in an access configuration.
Operation description
This topic provides an example on how to query the permission policies in the access configuration ac-00jhtfl8thteu6uj****. The returned result shows that the access configuration contains one system policy and one inline policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:ListPermissionPoliciesInAccessConfiguration |
list |
*AccessConfiguration
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| AccessConfigurationId |
string |
Yes |
The ID of the access configuration. |
ac-00jhtfl8thteu6uj**** |
| PermissionPolicyType |
string |
No |
The type of the policy. The type can be used to filter policies. Valid values:
If you do not specify this parameter, all types of policies are queried. |
System |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| PermissionPolicies |
array<object> |
The policies. |
|
|
object |
The policy. |
||
| PermissionPolicyName |
string |
The name of the policy. |
AliyunECSFullAccess |
| PermissionPolicyType |
string |
The type of the policy. |
System |
| PermissionPolicyDocument |
string |
The content of the inline policy. Note
This parameter is returned only when the value of the |
{\"Statement\": [{\"Action\": \"*\",\"Effect\": \"Allow\",\"Resource\": \"*\"}],\"Version\": \"1\"} |
| AddTime |
string |
The time when the policy was added to the access configuration. The time is displayed in UTC. The time follows the ISO 8601 standard in the |
2021-11-03T06:37:25Z |
| RequestId |
string |
The request ID. |
3A5E771F-1F5A-5555-A64E-579748AAFD98 |
| TotalCounts |
integer |
The total number of policies. |
2 |
Examples
Success response
JSON format
{
"PermissionPolicies": [
{
"PermissionPolicyName": "AliyunECSFullAccess",
"PermissionPolicyType": "System",
"PermissionPolicyDocument": "{\\\"Statement\\\": [{\\\"Action\\\": \\\"*\\\",\\\"Effect\\\": \\\"Allow\\\",\\\"Resource\\\": \\\"*\\\"}],\\\"Version\\\": \\\"1\\\"}",
"AddTime": "2021-11-03T06:37:25Z"
}
],
"RequestId": "3A5E771F-1F5A-5555-A64E-579748AAFD98",
"TotalCounts": 2
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.