interfacecaller.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import requests
  2. url = "http://60.205.208.168:5000/reseteip"
  3. instances = {"172.16.181.135":"cn-hangzhou",
  4. "172.16.181.67":"cn-hangzhou",
  5. "172.16.181.52":"cn-hangzhou",
  6. "172.16.181.68":"cn-hangzhou",
  7. "172.16.181.49":"cn-hangzhou",
  8. "172.16.181.50":"cn-hangzhou",
  9. "172.16.181.110":"cn-hangzhou",
  10. "172.16.181.38":"cn-hangzhou",
  11. "172.16.181.113":"cn-hangzhou",
  12. "172.16.181.40":"cn-hangzhou",
  13. "172.16.181.42":"cn-hangzhou",
  14. "172.16.181.44":"cn-hangzhou",
  15. "172.16.181.115":"cn-hangzhou",
  16. "172.16.181.111":"cn-hangzhou",
  17. "172.16.181.45":"cn-hangzhou",
  18. "172.16.181.43":"cn-hangzhou",
  19. "172.16.181.39":"cn-hangzhou",
  20. "172.16.181.41":"cn-hangzhou",
  21. "172.31.159.115":"cn-qingdao",
  22. "172.31.159.140":"cn-qingdao",
  23. "172.31.159.112":"cn-qingdao",
  24. "172.31.159.132":"cn-qingdao",
  25. "172.31.159.116":"cn-qingdao",
  26. "172.31.159.101":"cn-qingdao",
  27. "172.31.159.176":"cn-qingdao",
  28. "172.31.159.228":"cn-qingdao",
  29. "172.31.159.109":"cn-qingdao",
  30. "172.31.159.130":"cn-qingdao",
  31. "172.31.159.118":"cn-qingdao",
  32. "172.31.159.149":"cn-qingdao",
  33. "172.31.159.100":"cn-qingdao",
  34. "172.31.159.117":"cn-qingdao",
  35. "172.31.159.128":"cn-qingdao",
  36. "172.31.159.167":"cn-qingdao",
  37. "172.31.159.142":"cn-qingdao",
  38. "172.31.159.114":"cn-qingdao",
  39. "172.31.159.183":"cn-qingdao",
  40. "172.31.159.104":"cn-qingdao",
  41. "172.31.159.169":"cn-qingdao",
  42. "172.31.159.171":"cn-qingdao",
  43. "172.31.159.94":"cn-qingdao",
  44. "172.31.159.170":"cn-qingdao",
  45. "172.31.159.110":"cn-qingdao",
  46. "172.31.159.126":"cn-qingdao",
  47. "172.31.159.79":"cn-qingdao",
  48. "172.31.159.119":"cn-qingdao",
  49. "172.31.159.97":"cn-qingdao",
  50. "172.31.159.90":"cn-qingdao",
  51. "172.31.159.113":"cn-qingdao",
  52. "172.31.159.144":"cn-qingdao",
  53. "172.31.159.133":"cn-qingdao",
  54. "172.31.159.148":"cn-qingdao",
  55. "172.31.159.72":"cn-qingdao",
  56. "172.31.159.65":"cn-qingdao",
  57. "172.31.159.129":"cn-qingdao",
  58. "172.31.159.83":"cn-qingdao",
  59. "172.31.159.84":"cn-qingdao",
  60. "172.31.159.106":"cn-qingdao",
  61. "172.31.159.103":"cn-qingdao",
  62. "172.31.159.123":"cn-qingdao",
  63. "172.31.159.71":"cn-qingdao",
  64. "172.31.159.105":"cn-qingdao",
  65. "172.31.159.107":"cn-qingdao",
  66. "172.31.159.82":"cn-qingdao",
  67. "172.31.144.56":"cn-qingdao",
  68. "172.31.159.111":"cn-qingdao",
  69. "172.31.159.85":"cn-qingdao",
  70. "172.31.159.63":"cn-qingdao"
  71. }
  72. for ip,region in instances.items():
  73. data = {"privateip": ip, "region": region}
  74. r = requests.post(url, data)
  75. print(r.text)