Queries the details about an address book for an access control policy.
Operation description
You can call this operation to query the details about an address book for an access control policy.
Limits
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
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:
- The required resource types are displayed in bold characters.
- 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 |
---|---|---|---|---|
yundun-cloudfirewall:DescribeAddressBook | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request. Valid values:
| zh |
CurrentPage | string | No | The page number. Pages start from page 1. Default value: 1. | 1 |
PageSize | string | No | The number of entries per page. Default value: 10. Maximum value: 50. | 10 |
Query | string | No | The query condition that is used to search for the address book. | 192.0.XX.XX |
GroupType | string | No | The type of the address book. Valid values:
Note
If you do not specify a type, the domain address books and ECS tag-based address books are queried.
| ip |
ContainPort | string | No | The port that is included in the address book. This parameter takes effect only when the GroupType parameter is set to port. | 80 |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageNo": "1",
"PageSize": "10",
"RequestId": "B36F150A-1E27-43AA-B72C-D2AC712F09DA",
"TotalCount": "100",
"Acls": [
{
"AddressListCount": 2,
"GroupUuid": "f04ac7ce-628b-4cb7-be61-310222b7****",
"AutoAddTagEcs": 1,
"Description": "my address book",
"GroupName": "demo_address_book",
"ReferenceCount": 3,
"GroupType": "ip",
"TagRelation": "and",
"TagList": [
{
"TagValue": "admin",
"TagKey": "company"
}
],
"AddressList": [
"192.168.XX.XX/32"
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ErrorParametersGroupType | The group type is invalid. | The group type is invalid. |
400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
400 | ErrorParametersPageSizeOrNo | Either pageSize or pageNo is invalid. | Either pageSize or pageNo is invalid. |
400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-29 | API Description Update. The Error code has changed | View Change Details |
2023-11-21 | The Error code has changed | View Change Details |
2022-06-02 | The Error code has changed | View Change Details |