文档首页/ DDoS防护 AAD/ API参考/ DDoS高防API/ DDoS高防-防护策略/ 查询流量封禁信息 - ShowFlowBlockV2
更新时间:2026-07-01 GMT+08:00
分享

查询流量封禁信息 - ShowFlowBlockV2

功能介绍

查询流量封禁信息。

调用方法

请参见如何调用API

授权信息

账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。

  • 如果使用角色与策略授权,具体权限要求请参见权限和授权项
  • 如果使用身份策略授权,当前API调用无需身份策略权限。

URI

GET /v2/aad/policies/ddos/flow-block

表1 Query参数

参数

是否必选

参数类型

描述

instance_id

String

instanceId

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

token

Content-Type

String

Content-Type

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

total

Integer

total

ips

Array of Ips objects

ips

表4 Ips

参数

参数类型

描述

ip_id

String

ip id

ip

String

ip

isp

String

线路

data_center

String

数据中心

foreign_switch_status

Integer

海外区域封禁状态 0-关闭 1-开启

udp_switch_status

Integer

UDP协议禁用 0-关闭 1-开启

状态码:400

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_description

String

错误描述

请求示例

查询实例ID为fcf2-xxxx-xxxx-xxxx-fa16的流量封禁信息。

GET https://{endpoint}/v2/aad/policies/ddos/flow-block?instance_id=fcf2-xxxx-xxxx-xxxx-fa16

响应示例

状态码:200

OK

{
  "total" : 2,
  "ips" : [ {
    "ip_id" : "9115fcf2-xxxx-xxxx-xxxx-fa163eaa216e",
    "ip" : "1.x.x.111",
    "isp" : "bgp",
    "data_center" : "hybgp",
    "foreign_switch_status" : 0,
    "udp_switch_status" : 0
  }, {
    "ip_id" : "1dc01300-xxxx-xxxx-xxxx-286ed488d4b1",
    "ip" : "3.x.x.22",
    "isp" : "china_mobile",
    "data_center" : "eastchina",
    "foreign_switch_status" : 0,
    "udp_switch_status" : 0
  } ]
}

状态码

状态码

描述

200

OK

400

Error response

错误码

请参见错误码

相关文档