交换机IP分配

概述


交换机IP分配


URL

/index.php?m=api&a=switchIpAllot


▍请求参数


字段名
变量名
必填
类型
描述
IP
ip

array分配的IP地址的ID,调用(/index.php?m=api&a=getIps,传递type,id,device参数获取IP段,type允许的值:(public,client,ipmi,intranet,other),id则为交换机id,device即为switch,返回一个由id(IP段ID)和ipsection(IP段)组成的二维数组,传递ipsid,id,device参数(ipsid:IP段ID)到/index.php?m=api&a=getIp,返回一个由id(IP的ID)和ipaddress(IP地址)组成的二维数组)
交换机ID
id

int
交换机ID

返回参数


字段名
变量名
类型
描述
状态
status
string
success 成功  error 失败
信息
msg
string
提示信息