123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import requests
- url = "http://60.205.208.168:5000/reseteip"
- instances = {"172.16.181.135":"cn-hangzhou",
- "172.16.181.67":"cn-hangzhou",
- "172.16.181.52":"cn-hangzhou",
- "172.16.181.68":"cn-hangzhou",
- "172.16.181.49":"cn-hangzhou",
- "172.16.181.50":"cn-hangzhou",
- "172.16.181.110":"cn-hangzhou",
- "172.16.181.38":"cn-hangzhou",
- "172.16.181.113":"cn-hangzhou",
- "172.16.181.40":"cn-hangzhou",
- "172.16.181.42":"cn-hangzhou",
- "172.16.181.44":"cn-hangzhou",
- "172.16.181.115":"cn-hangzhou",
- "172.16.181.111":"cn-hangzhou",
- "172.16.181.45":"cn-hangzhou",
- "172.16.181.43":"cn-hangzhou",
- "172.16.181.39":"cn-hangzhou",
- "172.16.181.41":"cn-hangzhou",
- "172.31.159.115":"cn-qingdao",
- "172.31.159.140":"cn-qingdao",
- "172.31.159.112":"cn-qingdao",
- "172.31.159.132":"cn-qingdao",
- "172.31.159.116":"cn-qingdao",
- "172.31.159.101":"cn-qingdao",
- "172.31.159.176":"cn-qingdao",
- "172.31.159.228":"cn-qingdao",
- "172.31.159.109":"cn-qingdao",
- "172.31.159.130":"cn-qingdao",
- "172.31.159.118":"cn-qingdao",
- "172.31.159.149":"cn-qingdao",
- "172.31.159.100":"cn-qingdao",
- "172.31.159.117":"cn-qingdao",
- "172.31.159.128":"cn-qingdao",
- "172.31.159.167":"cn-qingdao",
- "172.31.159.142":"cn-qingdao",
- "172.31.159.114":"cn-qingdao",
- "172.31.159.183":"cn-qingdao",
- "172.31.159.104":"cn-qingdao",
- "172.31.159.169":"cn-qingdao",
- "172.31.159.171":"cn-qingdao",
- "172.31.159.94":"cn-qingdao",
- "172.31.159.170":"cn-qingdao",
- "172.31.159.110":"cn-qingdao",
- "172.31.159.126":"cn-qingdao",
- "172.31.159.79":"cn-qingdao",
- "172.31.159.119":"cn-qingdao",
- "172.31.159.97":"cn-qingdao",
- "172.31.159.90":"cn-qingdao",
- "172.31.159.113":"cn-qingdao",
- "172.31.159.144":"cn-qingdao",
- "172.31.159.133":"cn-qingdao",
- "172.31.159.148":"cn-qingdao",
- "172.31.159.72":"cn-qingdao",
- "172.31.159.65":"cn-qingdao",
- "172.31.159.129":"cn-qingdao",
- "172.31.159.83":"cn-qingdao",
- "172.31.159.84":"cn-qingdao",
- "172.31.159.106":"cn-qingdao",
- "172.31.159.103":"cn-qingdao",
- "172.31.159.123":"cn-qingdao",
- "172.31.159.71":"cn-qingdao",
- "172.31.159.105":"cn-qingdao",
- "172.31.159.107":"cn-qingdao",
- "172.31.159.82":"cn-qingdao",
- "172.31.144.56":"cn-qingdao",
- "172.31.159.111":"cn-qingdao",
- "172.31.159.85":"cn-qingdao",
- "172.31.159.63":"cn-qingdao"
- }
- for ip,region in instances.items():
- data = {"privateip": ip, "region": region}
- r = requests.post(url, data)
- print(r.text)
|