bmtcloud
  1. A/B/M/Z业务
bmtcloud
  • 🦊说明
  • 通用
    • 删除设备
      GET
    • 带宽监控
      GET
    • 收益列表
      GET
    • 修改备注
      POST
  • A/B/M/Z业务
    • 绑定设备
      POST
    • 设备列表
      GET
    • 申请压测
      POST
    • 查询压测结果
      GET
    • 同步网卡信息
      POST
    • 获取网卡列表
      GET
    • 获取拨号信息
      GET
    • 获取业务列表
      GET
    • 编辑拨号信息
      POST
    • 开始拨号
      POST
    • 指定管理网卡
      POST
  • G业务
    • G业务对接流程说明
    • 设备列表
      GET
    • 带宽监控
      GET
    • 绑定设备
      POST
    • 收益列表
      GET
    • 查询压测结果
      GET
  • C业务(废弃)
    • 压测接口
      POST
    • 绑定设备
      POST
    • 设备列表
      GET
  • D业务(废弃)
    • 设备列表
    • 绑定设备
  • 废弃
    • 质量监控
    • SLA
  1. A/B/M/Z业务

设备列表

GET
/api/device/v1/list

请求参数

Query 参数
page
string 
页码
必需
示例值:
{% mock 'integer' , 1 , 100 %}
device_status
string 
设备状态
可选
示例值:
{% mock 'pick' , ['serving','auditing','deploying','unusable'] %}
online_status
string 
在线状态
可选
示例值:
{% mock 'pick' , ['online','offline'] %}
isp
string 
运营商
可选
示例值:
{% mock 'pick' , ['电信','移动','联通'] %}
province
string 
省
可选
示例值:
{% mock 'province' %}
city
string 
市
可选
示例值:
{% mock 'city' %}
biz_type
string 
必需
A:1,B:3,M:9,Z:2
示例值:
4
device_id
string 
可选
设备ID,填写会查询指定设备。不指定会查询所有的设备,多个设备ID使用半角逗号连接
示例值:
{% mock 'string', '', 32, 64 %}
Header 参数
ak
string 
必需
默认值:
{{ak}}
timestamp
integer 
必需
默认值:
{% mock 'timestamp' , 's' %}
sign
string 
必需
默认值:
{% mock 'string' , 'lower' , 32 , 32 %}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://www.bmtcloud.com.cn/api/device/v1/list?page={% mock '\''integer'\'' , 1 , 100 %}&device_status={% mock '\''pick'\'' , ['\''serving'\'','\''auditing'\'','\''deploying'\'','\''unusable'\''] %}&online_status={% mock '\''pick'\'' , ['\''online'\'','\''offline'\''] %}&isp={% mock '\''pick'\'' , ['\''电信'\'','\''移动'\'','\''联通'\''] %}&province={% mock '\''province'\'' %}&city={% mock '\''city'\'' %}&biz_type=4&device_id={% mock '\''string'\'', '\'''\'', 32, 64 %}' \
--header 'ak;' \
--header 'timestamp;' \
--header 'sign;'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
current_time
integer 
必需
event_id
string 
必需
data
object 
必需
total
integer 
总的页数
必需
real_total
integer 
总的设备数量
必需
page_size
integer 
每页数量
必需
data
array [object {40}] 
必需
示例
{
    "code": 0,
    "message": "success",
    "current_time": 1716368049,
    "event_id": "20240522165409447585233706034272",
    "data": {
        "data": [
            {
                "access_type": "host",
                "access_type_text": "主机",
                "bandwidth_type": "multiLine",
                "bandwidth_type_text": "汇聚",
                "biz_tag": "",
                "biz_type": 2,
                "biz_type_name": "Z业务",
                "city": "洛阳",
                "ctime": "2024-05-11 10:09:41",
                "device_billing_extend": {
                    "price": 300000,
                    "strategy": 1
                },
                "device_hardware_extend": {
                    "cpu_arch": "",
                    "cpu_cores": "",
                    "cpu_frequency": "3000000000",
                    "cpu_num": 64,
                    "cpu_type": "Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz",
                    "cpus": [
                        {
                            "cacheSize": 0,
                            "coreId": "0",
                            "core_number": 0,
                            "cores": 1,
                            "cpu": 0,
                            "family": "6",
                            "flags": [],
                            "ghz": 0,
                            "mhz": 3000,
                            "microcode": "",
                            "model": "79",
                            "modelName": "Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz",
                            "name": "",
                            "physicalId": "",
                            "stepping": 0,
                            "vendorId": "GenuineIntel"
                        },
                        {
                            "cacheSize": 0,
                            "coreId": "15",
                            "core_number": 0,
                            "cores": 1,
                            "cpu": 62,
                            "family": "6",
                            "flags": [],
                            "ghz": 0,
                            "mhz": 3000,
                            "microcode": "",
                            "model": "79",
                            "modelName": "Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz",
                            "name": "",
                            "physicalId": "",
                            "stepping": 0,
                            "vendorId": "GenuineIntel"
                        },
                        {
                            "cacheSize": 0,
                            "coreId": "15",
                            "core_number": 0,
                            "cores": 1,
                            "cpu": 63,
                            "family": "6",
                            "flags": [],
                            "ghz": 0,
                            "mhz": 3000,
                            "microcode": "",
                            "model": "79",
                            "modelName": "Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz",
                            "name": "",
                            "physicalId": "",
                            "stepping": 0,
                            "vendorId": "GenuineIntel"
                        }
                    ],
                    "deploy_time": "",
                    "detail_disks": [],
                    "device_disk_info": [
                        {
                            "id": "/dev/dm-0",
                            "iops": 0,
                            "media": "",
                            "size": "47244640256"
                        },
                        {
                            "id": "/dev/sda1",
                            "iops": 0,
                            "media": "",
                            "size": "0"
                        },
                        {
                            "id": "/dev/dm-1",
                            "iops": 0,
                            "media": "",
                            "size": "9663676416"
                        }
                    ],
                    "device_type": "centos",
                    "disk_size": "",
                    "disks": [],
                    "hostname": "e7c1f1201e01ead878894e457bab30f6",
                    "image_version": "10001",
                    "memories": [],
                    "memory_size": "135074250752",
                    "memory_type": "",
                    "model": "x86_64",
                    "os": "",
                    "osVersion": "7.9.2009",
                    "raidType": "",
                    "real_tasks": [],
                    "sn": "4c4c4544-0053-5110-8057-c6c04f4e4432",
                    "stability_test_result": "",
                    "storage_type": ""
                },
                "device_id": "werwee01ead878894e457babd30f6",
                "device_net_card_extend": {
                    "icmpv6Out": 0,
                    "net_cards": [
                        {
                            "dialingInfo": [
                                {
                                    "account": "93796558549",
                                    "connected": false,
                                    "enableV6": 1,
                                    "failedReason": "",
                                    "gateway": "",
                                    "ip": "",
                                    "mac": "",
                                    "mask": "",
                                    "name": "ppp0",
                                    "number": 0,
                                    "password": "471800",
                                    "port": 0,
                                    "pppoeAC": "",
                                    "pppoeService": "",
                                    "successed": false,
                                    "v4Proto": "",
                                    "v6Connected": false,
                                    "v6Gateway": "",
                                    "v6IP": "",
                                    "v6MaskLen": 0,
                                    "v6Proto": "",
                                    "v6Successed": false,
                                    "vlanId": "p2p1"
                                },
                                {
                                    "account": "93796553675",
                                    "connected": false,
                                    "enableV6": 1,
                                    "failedReason": "",
                                    "gateway": "",
                                    "ip": "",
                                    "mac": "",
                                    "mask": "",
                                    "name": "ppp1",
                                    "number": 1,
                                    "password": "471800",
                                    "port": 0,
                                    "pppoeAC": "",
                                    "pppoeService": "",
                                    "successed": false,
                                    "v4Proto": "",
                                    "v6Connected": false,
                                    "v6Gateway": "",
                                    "v6IP": "",
                                    "v6MaskLen": 0,
                                    "v6Proto": "",
                                    "v6Successed": false,
                                    "vlanId": "p2p1"
                                },
                                {
                                    "account": "93796553671",
                                    "connected": false,
                                    "enableV6": 1,
                                    "failedReason": "",
                                    "gateway": "",
                                    "ip": "",
                                    "mac": "",
                                    "mask": "",
                                    "name": "ppp2",
                                    "number": 2,
                                    "password": "471800",
                                    "port": 0,
                                    "pppoeAC": "",
                                    "pppoeService": "",
                                    "successed": false,
                                    "v4Proto": "",
                                    "v6Connected": false,
                                    "v6Gateway": "",
                                    "v6IP": "",
                                    "v6MaskLen": 0,
                                    "v6Proto": "",
                                    "v6Successed": false,
                                    "vlanId": "p2p1"
                                }
                            ],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "p2p1",
                            "speed": 10000
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em3",
                            "speed": -1
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em4",
                            "speed": -1
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em1",
                            "speed": 1000
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em2",
                            "speed": -1
                        }
                    ],
                    "net_cards_conf": [
                        {
                            "dialingInfo": [
                                {
                                    "account": "93796558549",
                                    "connected": false,
                                    "enableV6": 0,
                                    "failedReason": "",
                                    "gateway": "",
                                    "ip": "",
                                    "mac": "",
                                    "mask": "",
                                    "name": "p2p1",
                                    "number": 0,
                                    "password": "471800",
                                    "port": 0,
                                    "pppoeAC": "",
                                    "pppoeService": "",
                                    "successed": false,
                                    "v4Proto": "",
                                    "v6Connected": false,
                                    "v6Gateway": "",
                                    "v6IP": "",
                                    "v6MaskLen": 0,
                                    "v6Proto": "",
                                    "v6Successed": false,
                                    "vlanId": "0"
                                },
                                {
                                    "account": "93796553675",
                                    "connected": false,
                                    "enableV6": 0,
                                    "failedReason": "",
                                    "gateway": "",
                                    "ip": "",
                                    "mac": "",
                                    "mask": "",
                                    "name": "p2p1",
                                    "number": 1,
                                    "password": "471800",
                                    "port": 0,
                                    "pppoeAC": "",
                                    "pppoeService": "",
                                    "successed": false,
                                    "v4Proto": "",
                                    "v6Connected": false,
                                    "v6Gateway": "",
                                    "v6IP": "",
                                    "v6MaskLen": 0,
                                    "v6Proto": "",
                                    "v6Successed": false,
                                    "vlanId": "0"
                                },
                                {
                                    "account": "93796553671",
                                    "connected": false,
                                    "enableV6": 0,
                                    "failedReason": "",
                                    "gateway": "",
                                    "ip": "",
                                    "mac": "",
                                    "mask": "",
                                    "name": "p2p1",
                                    "number": 2,
                                    "password": "471800",
                                    "port": 0,
                                    "pppoeAC": "",
                                    "pppoeService": "",
                                    "successed": false,
                                    "v4Proto": "",
                                    "v6Connected": false,
                                    "v6Gateway": "",
                                    "v6IP": "",
                                    "v6MaskLen": 0,
                                    "v6Proto": "",
                                    "v6Successed": false,
                                    "vlanId": "0"
                                }
                            ],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "p2p1",
                            "speed": 10000
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em3",
                            "speed": -1
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em4",
                            "speed": -1
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em1",
                            "speed": 1000
                        },
                        {
                            "dialingInfo": [],
                            "ip": "",
                            "isManager": false,
                            "isValid": true,
                            "name": "em2",
                            "speed": -1
                        }
                    ],
                    "networks": [],
                    "private_ip": "",
                    "public_ip": "",
                    "tcp_nat_type": "",
                    "udp_nat_type": "",
                    "upload": 0,
                    "upnp": false
                },
                "device_status": "waitingForTest",
                "device_status_text": "待测试",
                "device_test_result_extend": {
                    "diskResults": [],
                    "networkResults": [],
                    "network_source": ""
                },
                "dialing_type": "PPPOE",
                "dialing_type_text": "服务器拨号",
                "district": "",
                "dns": "",
                "frpc_port": 0,
                "id": 401123,
                "ip": "",
                "ip_protocol": "IPV4",
                "isp": "移动",
                "last_sync_time": "2024-05-18 17:57:40",
                "line_number": 3,
                "machine_room_type": "",
                "nat_type": "inner",
                "nat_type_text": "内网",
                "online_status": "offline",
                "online_status_text": "离线",
                "ops_name": "",
                "plantask": "",
                "province": "河南",
                "proxy_name": "",
                "remark": "移动",
                "source": 0,
                "uid": 6849,
                "up_bandwidth": 943718400,
                "yesterday_settle": 0
            }
        ],
        "page_size": 20,
        "real_total": 1,
        "total": 1
    }
}
🟢200公共响应
上一页
绑定设备
下一页
申请压测
Built with