You need to enable JavaScript to run this app.
导航

DescribeAddressBook - 查询访问控制地址簿

最近更新时间2024.03.28 17:09:33

首次发布时间2024.03.28 17:09:33

查询访问控制地址簿

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

DescribeAddressBook

要执行的操作,取值:DescribeAddressBook

Version
String

2021-09-06

API的版本,取值:2021-09-06

Query
String

测试

查询条件,支持地址簿名称、描述、地址列表模糊查询

GroupType
String

ip

地址簿类型:

  • ip - IP地址簿
  • port - 端口地址簿
  • domain: 域名地址簿
PageSize
Integer

10

分页大小

PageNumber
Integer

1

当前页码

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
TotalCount
Integer

1

返回数据总数量
当查询数据为空时,且使用python SDK调用时此项为None

PageSize
Integer

1

返回数据的分页大小

PageNumber
Integer

1

返回数据的当前页码

Count
Integer

1

返回数据的实际数量
当查询数据为空时,且使用python SDK调用时此项为None

Data
Array of AddressBookStructure

参见结构示例值

返回的地址簿数据

请求示例

POST /DescribeAddressBook HTTP/1.1

{
  "GroupType": "ip",
  "PageSize": 1,
  "PageNumber": 5
}

返回示例

{
    "ResponseMetadata":{
        "RequestID":"2023*****",
        "Service":"",
        "Region":"",
        "Action":"DescribeAddressBook",
        "Version":"2021-09-06"
    },
    "Result":{
        "TotalCount":1,
        "PageSize":10,
        "PageNumber":1,
        "Count":1,
        "Data":[
            {
                "GroupUuid":"caed310f-*****",
                "GroupName":"book-10",
                "GroupType":"ip",
                "AddressList":[
                    "192.168.1.1",
                    "192.168.1.2",
                    "192.168.1.3",
                    "192.168.1.4",
                    "192.168.1.5",
                    "192.168.1.6",
                    "192.168.1.7",
                    "192.168.1.8",
                    "192.168.1.9",
                    "192.168.1.10"
                ],
                "Description":"",
                "RefCnt":0
            }
        ]
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
InvalidParameter
Invalid Parameter

无效的参数

400
QueryDbFailed
Query configuration failed

查询数据库失败

400
BadRequest
The http request is bad due to some reason: %s.

由于某些原因,http请求不正确

400
MissingParameter
The required parameter %s is missing.

缺少所需的参数

500
InternalError
Internal service error. %s

内部服务错误