<接口地址>: /siteapi/tasks/monitors
<请求方式>:POST
<请求类型>:JSON
<响应类型>:JSON
<请求参数>:
参数名称 | 是否必须 | 类型 | 默认值 | 描述 |
isp_id | 否 | URL参数,int | 获取指定运营商下的监测点 | |
location_code | 否 | URL参数,String | 获取指定区域的监测点 | |
monitor_ids | 否 | URL参数,array | 获取指定id的监测点 | |
network_protocol | 否 | URL参数,String | 4-IPv4,6-IPv6 |
<请求示例(可选)>:
Curl -H "token:1059f8cccc8d39ca5fd4e1d6fcfa376c" https://v6-api.jiankongbao.com/siteapi/tasks/monitors -d '{"isp_id": "2","location_code": "100210100","monitor_ids": [1,2]}'
*注:该方法可不POST任何数据,此时查询所有监测点。
<响应数据>:
参数名称 | 数据类型 | 描述 |
data | Json array | 数据列表 |
monitor_id | string | 监测点ID |
monitor_name | string | 监测点名称 |
location_code | string | 所属地理位置编码 |
location_name | string | 所属地理位置名称 |
isp_id | string | 运营商ID |
isp_name | string | 运营商名称 |
isp_en_name | string | 运营商英文名 |
monitor_ip | object | |
IPv4 | string | 监测点IPV4地址 |
IPv6 | string | 监测点IPV6地址 |
<响应示例>:
{ "data": [ { "monitor_id": "1", "monitor_name": "陕西西安电信", "location_code": "100610100", "location_name": "西安市", "isp_id": "1", "isp_name": "电信", "isp_en_name": "Telecom", "monitor_ip": { "IPv4": "219.144.66.205", "IPv6": "" } }, { "monitor_id": "2", "monitor_name": "辽宁大连联通", "location_code": "100210200", "location_name": "大连市", "isp_id": "2", "isp_name": "联通", "isp_en_name": "Unicom", "monitor_ip": { "IPv4": "218.60.117.9,218.60.108.88", "IPv6": "" } }, { "monitor_id": "12", "monitor_name": "广东深圳电信", "location_code": "100440300", "location_name": "深圳市", "isp_id": "1", "isp_name": "电信", "isp_en_name": "Telecom", "monitor_ip": { "IPv4": "121.11.115.6", "IPv6": "" } }, { "monitor_id": "102", "monitor_name": "辽宁沈阳联通", "location_code": "100210100", "location_name": "沈阳市", "isp_id": "2", "isp_name": "联通", "isp_en_name": "China Unicom", "monitor_ip": { "IPv4": "218.60.28.140", "IPv6": "2408:872f:0500::51" } } ] }