DCIM API 文档 / IP 地址 / 设置从IP
▍概述
设置从IP
▍URL
/index.php?m=api&a=setDefaultip
▍请求参数
字段名 | 变量名 | 必填 | 类型 | 描述 |
---|---|---|---|---|
类型 | type | 否 | string | switch交换机, server服务器,默认服务器 |
设备ID | id | 是 | int | 交换机id或服务器id,对应上面类型 |
ip | ip | 是 | array | 要设置的从IP地址 |
▍返回参数
字段名 | 变量名 | 类型 | 描述 |
---|---|---|---|
状态 | status | string | success 成功 error 失败 |
信息 | msg | string | 提示信息 |