执行交换机自定义脚本

概述


执行交换机自定义脚本


URL

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


▍请求参数


字段名
变量名
必填
类型
描述
交换机端口switch_port
string交换机端口名称
交换机ID
id
int
交换机ID
脚本IDscripts_idint自定义脚本ID
自定义变量customarray自定义脚本变量,数组方式传入

返回参数


字段名
变量名
类型
描述
执行信息infostring自定义脚本执行结果
状态
status
string
success 成功  error 失败
信息
msg
string
提示信息