DCIM API 文档 / 交换机 / 交换机端口对端设备
▍概述
交换机端口对端设备
▍URL
/index.php?m=api&a=getSwitchConnectDevice
▍请求参数
字段名 | 变量名 | 必填 | 类型 | 描述 |
---|---|---|---|---|
switch | switch_port_num | 是 | string | 交换机端口名称 |
交换机ID | switch | 是 | int | 交换机ID |
▍返回参数
字段名 | 变量名 | 类型 | 描述 |
---|---|---|---|
对端设备ID | id | int | 对端设备ID(服务器,交换机,机柜租用) |
类型 | type | string | server(服务器),switch(交换机),cabinet_rent(机柜租用) |
物理标签 | wltag | string | 服务器物理标签 |
交换机名称 | sname | string | 交换机名称 |
交换机端口 | switch_port_num | string | 交换机端口名称 |
机柜租用邮箱 | string | 机柜租用邮箱 | |
状态 | status | string | success 成功 error 失败 |
信息 | msg | string | 提示信息 |