创建业务

发布时间:2021-12-28 14:17

方法: POST

PATH: /api/trusteeships

POST参数

参数 类型 示例 说明
suid string suid 业务标识
sn string 设备SN DPd5Wr0
line_number string 线路编号 sdzz
spec_code string 规格编号 gdx
brand string 设备品牌 DELL
model string 设备型号 C6220
system_code string 系统编号 centos76
height int 设备高度 2
ip_number int IP数量 1
bandwidth in 带宽最大值,单位 M 100

POST参数示例

{
    "suid": "ZSbGpxZm1",
    "sn": "DPd5Wr0",
    "line_number": "sdzz",
    "spec_code": "gdx",
    "brand": "DELL",
    "model": "C6220",
    "system_code": "centos76",
    "height": 2,
    "ip_number": 1,
    "bandwidth": 100
}

cURL示例:

curl -X POST \
  'https://localhost:9931/api/trusteeships' \
  -H 'Authorization:Bearer UHUzcGhDY29JTnZSbGpxZm1EOU......' \
  -d '{
    "suid": "ZSbGpxZm1",
    "sn": "DPd5Wr0",
    "line_number": "sdzz",
    "spec_code": "gdx",
    "brand": "DELL",
    "model": "C6220",
    "system_code": "centos76",
    "height": 2,
    "ip_number": 1,
    "bandwidth": 100
}'

响应参数:

与业务详情接口相同

本文导读