1.获取账号相关的唯一API KEY
windows:https://x.x.x.x/api/?type=keygen&user=username&password=password
linux:curl -k -X GET https:///x.x.x.x/api/?type=keygen&user=username&password=password
2.新建IP地址:以heimingdan_9.9.9.9为例
https://x.x.x.x/api/?key=apikey&type=config&action=set&xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address/entry[@name='heimingdan_9.9.9.9']&element=<ip-netmask>9.9.9.9/32</ip-netmask>
3.将IP地址添加到IP地址组:以将heimingdan_9.9.9.9添加到heimingdan_extranet为例
https://x.x.x.x/api/?key=apikey&type=config&action=set&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group