云防火墙 CFW-查询黑白名单列表:响应参数

时间:2024-09-19 16:11:17

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

data

data object

查询黑白名单返回值数据

表5 data

参数

参数类型

描述

offset

Integer

偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0

limit

Integer

每页显示个数,范围为1-1024

total

Integer

查询黑白名单总条数

records

Array of records objects

黑白名单列表

表6 records

参数

参数类型

描述

list_id

String

黑白名单列表id

direction

Integer

黑白地址方向0:源地址1:目的地址

address_type

Integer

ip地址类型0:ipv4,1:ipv6

address

String

ip地址

protocol

Integer

协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空

port

String

端口

description

String

描述

状态码: 400

表7 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

support.huaweicloud.com/api-cfw/ListBlackWhiteLists.html