更新时间:2025-10-16 GMT+08:00
分享

查询转发规则

功能介绍

查询转发规则

调用方法

请参见如何调用API

URI

GET /v2/aad/forward-rules

表1 Query参数

参数

是否必选

参数类型

描述

instance_id

String

实例id

ip

String

高防ip

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

token

Content-Type

String

Content-Type

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

total

Integer

total

protocol_rule

Array of ListRulesByIpProtocolRule objects

rule

表4 ListRulesByIpProtocolRule

参数

参数类型

描述

rule_id

String

规则ID

forward_protocol

String

转发协议

forward_port

Integer

转发端口

source_protocol

String

源协议

source_port

Integer

源端口

lvs_rule

String

转发模式

source_ip

String

源站ip

status

Integer

状态

type

Integer

0–网站 ,1–非网站

switchs

Integer

0-开,2-关

状态码:400

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_description

String

错误描述

请求示例

响应示例

状态码

状态码

描述

200

OK

400

Error response

错误码

请参见错误码

相关文档