- 请求方式:POST
- 请求路径:/v1/allow/query
请求JSON参数
type | int | 查询方式 | 是 | 0代表task_id查询需要加上ids参数,1代表url查询需要加上urls参数,2代表submit_id查询需要加上submit_ids参数 |
urls | list | 屏蔽URL | 否 | 非必填,格式为list,单次最多10条 |
submit_ids | list | 查询的submit_id列表 | 否 | 非必填,格式为list,单次最多10条 |
ids | list | 查询的task_id列表 | 否 | 非必填,格式为list,单次最多10条 |
page_size | int | 分页大小 | 否 | 非必填,分页时,每页显示的条目,默认20,最大100 |
page | int | 页数 | 否 | 非必填,分页时,代表页数,默认1 (数字类型) |
响应Json参数
code | int | 状态码 | |
message | string | 描述信息 | |
total | int | 总条数 | |
page | int | 页数 | |
page_size | int | 本页条数 | |
result | list | 返回结果数组 | |
result:task_id | string | 任务ID | |
result:account_id | string | 客户唯一标识 | |
result:submit_id | string | 提交id | |
result:type | int | 任务类型 | int,0封禁 1解封 |
result:url | string | 域名 | str,要屏蔽的url(可以是正则)或域名 |
result:status | int | 状态 | int,1:等待中 2:操作中 3:操作成功 4:失败 5:重试中 6:封禁失效 7:解封失效 |
result:message | string | 任务信息 | str,成功为空。失败显示失败信息 |
result:created_at | string | 创建时间 | |
result:product | int | 产品类型 | 0:通用加速产品, 1:直播加速产品 |
示例
请求文档
{
"urls": [
"http://www.test.com/d/*"
],
"ids": [
"xxxxxxxxxxxxxxxx"
],
"page": 2,
"page_size": 1
}
响应文档
{ "result": [ { "product": 0, "account_id": "xxxxx", "created_at": "2020-07-15T17:15:08", "task_id": "xxxxxxxxxxx", "submit_id": "xxxxxxxxxx", "type": 1, "message": "", "url": "http://www.test.com/d/*", "status": 1 } ], "total": 1, "code": 100000, "page": 2, "message": "success", "page_size": 1 }