创建业务

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

方法: POST

PATH: /api/lease

POST参数

参数 类型 示例 说明
suid string suid 业务标识
line_number string 线路编号 sdzz
spec_code string 规格编号 gdx
system_code string 系统编号 centos76
ip_number int IP数量 1
bandwidth in 带宽最大值,单位 M 100
admin_user string 系统用户名 root
admin_password string 系统密码 QP)86(T

POST参数示例

{
    "suid": "xRBxZm",
    "line_number": "sdzz",
    "spec_code": "gdx",
    "system_code": "Yazb",
    "bandwidth": 100,
    "ip_num": 1,
    "admin_user": "root",
    "admin_password": "QP)86(T"
}

cURL示例:

curl -X POST \
  'https://localhost:9931/api/trusteeships' \
  -H 'Authorization:Bearer UHUzcGhDY29JTnZSbGpxZm1EOU......' \
  -d '{
    "suid": "xRBxZm",
    "line_number": "sdzz",
    "spec_code": "gdx",
    "system_code": "Yazb",
    "bandwidth": 100,
    "ip_num": 1,
    "admin_user": "root",
    "admin_password": "QP)86(T"
}'

响应参数:

与业务详情接口相同

本文导读