概述

修改PDU设备

URL

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

▍请求参数

字段名
变量名
必填
类型
描述
PDU设备名称
name

string
PDU设备名称
PDU设备标签
pdutag

string
PDU设备标签
端口数量
portnum

int
PDU设备下端口的数量
分配IP
ipaddress

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

int
所属机柜ID,调用/index.php?m=api&a=getCabinet,获取由id(机柜ID)和name(机柜名称)组成的二维数组
机柜物理位置
position_u

string
机柜物理位置
设备具体位置
position_style

string
设备具体位置
位置大小
u

int
PDU设备占用位置大小
型号
version

string
PDU设备型号
密码
pwd

string
密码
用户名
uname

string
用户名
脚本执行文件
pdu_sh_file

string
脚本执行文件,调用/index.php?m=api&a=getPduShFile,获取脚本执行文件数组
备注
remarks

string
备注信息
PDU设备id
id

int
修改的PDU设备ID

返回参数

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