Queries access configurations.
Operation description
This topic provides an example on how to query the access configurations within the directory d-00fc2p61****
. The returned result shows that the directory contains the VPC-Admin
and ECS-Admin
access configurations.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cloudsso:ListAccessConfigurations | list | *AccessConfiguration acs:cloudsso:{#regionId}:{#accountId}:directory/{#DirectoryId}/access-configuration/* |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DirectoryId | string | Yes | The ID of the directory. | d-00fc2p61**** |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of When you call this operation for the first time, if the total number of entries to return is larger than the value of the | K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4**** |
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 10. | 10 |
Filter | string | No | The filter condition. The value is not case-sensitive. You must specify the value in the <Attribute> <Operator> <Value> format. You can set <Attribute> only to AccessConfigurationName and <Operator> only to eq or sw. The value eq indicates Equals. The value sw indicates Starts With. For example, if you set Filter to AccessConfigurationName sw test, the operation queries all access configurations whose names start with test. If you set Filter to AccessConfigurationName eq TestAccessConfiguration, the operation queries the access configuration whose name is TestAccessConfiguration. | AccessConfigurationName sw test |
StatusNotifications | string | No | The status notification. The status notification can be used to filter access configurations. Set the value to ReprovisionRequired, which indicates that the operation queries all access configurations that need to be re-provisioned. | ReprovisionRequired |
Response parameters
Examples
Sample success responses
JSON
format
{
"AccessConfigurations": [
{
"AccessConfigurationName": "ECS-Admin",
"SessionDuration": 900,
"Description": "This is an access configuration.",
"RelayState": "https://cloudsso.console.aliyun.com",
"CreateTime": "2021-11-02T08:44:23Z",
"UpdateTime": "2021-11-02T08:44:23Z",
"StatusNotifications": [
"ReprovisionRequired"
],
"AccessConfigurationId": "ac-00jhtfl8thteu6uj****",
"Tags": [
{
"Key": "",
"Value": ""
}
]
}
],
"NextToken": "K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4****",
"RequestId": "2BC0CBAC-45E1-5BD3-BF6E-F69D1D5391C2",
"MaxResults": 10,
"TotalCounts": 2,
"IsTruncated": false
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|