分组添加
简要描述:
- 分组添加
请求URL:
http://127.0.0.1:3000/rex/groupconfig?token=1531751262jfauoamjlxdguanpyyultntjkvqjpdaa
请求方式:
- POST
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
confFile | 否 | string | 配置文件config.yml路径,不传时默认fastnotes.json中rexConfig配置 |
group | 是 | string | IP分组名称 |
action | 是 | string | add |
codeVal | 是 | string | IP地址,多个以,分隔 |
请求示例
group=grouptest&action=add&codeVal=192.168.1.111
返回示例
{
"code" : "0",
"conf" : "/data/RexdeployV3/config/ip_lists.ini",
"data" : {
"addIpCount" : "1",
"addgroupCount" : "1",
"after" : {
"group" : {
"0" : "192.168.0.207",
"1" : "192.168.0.76",
},
"group1" : {
"0" : "192.168.0.1",
"1" : "192.168.0.76",
},
"group3" : {
"0" : "192.168.1.101",
},
"grouptest" : {
"0" : "192.168.1.111",
}
},
"before" : {
"group" : {
"0" : "192.168.0.207",
"1" : "192.168.0.76",
},
"group1" : {
"0" : "192.168.0.1",
"1" : "192.168.0.76",
},
"group3" : {
"0" : "192.168.1.101",
}
},
"code" : "0",
"deleteIpCount" : "0",
"deletegroupCount" : "0",
"params" : {
"action" : "add",
"delete" : {
"0" : "192.168.1.111",
},
"deletecode" : "grouptest",
"file" : "/data/RexdeployV3/config/ip_lists.ini"
}
},
"msg" : "成功",
"param" : {
"action" : "add",
"code" : {
},
"codeVal" : "192.168.1.111",
"confFile" : "",
"group" : "grouptest"
},
"start_time" : "2018/07/16 14:59:40",
"take" : "0"
}