查询
开发中
开发环境
http://39.100.59.112:8000
开发环境
http://39.100.59.112:8000
GET
http://39.100.59.112:8000
分为黑名单(类型1)与白名单(类型0)两个开关,通过type区分。
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
domain_uuid
string
域名的uuid
示例值:
dbdaf46a-f5ce-11ec-b939-0242ac120002
type
integer
必需
示例值:
0
Header 参数
Accept
string
必需
默认值:
application/json
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://39.100.59.112:8000/firewall/IPBlock?domain_uuid=dbdaf46a-f5ce-11ec-b939-0242ac120002&type=0' \
--header 'Accept;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
domain_uuid
string
域名uuid
type
integer
黑/白名单
ip_list
array[string]
ip列表
示例
{
"code": 0,
"message": "string",
"data": {
"domain_uuid": "string",
"type": 0,
"ip_list": [
"string"
]
}
}