分组添加

简要描述:

  • 分组添加

请求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" 
 }

results matching ""

    No results matching ""