endpoint.py 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # # Licensed to the Apache Software Foundation (ASF) under one
  2. # # or more contributor license agreements. See the NOTICE file
  3. # # distributed with this work for additional information
  4. # # regarding copyright ownership. The ASF licenses this file
  5. # # to you under the Apache License, Version 2.0 (the
  6. # # "License"); you may not use this file except in compliance
  7. # # with the License. You may obtain a copy of the License at
  8. # #
  9. # #
  10. # # http://www.apache.org/licenses/LICENSE-2.0
  11. # #
  12. # #
  13. # # Unless required by applicable law or agreed to in writing,
  14. # # software distributed under the License is distributed on an
  15. # # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. # # KIND, either express or implied. See the License for the
  17. # # specific language governing permissions and limitations
  18. # # under the License.
  19. class EndpointData():
  20. def __init__(self):
  21. self.endpoint_map = {
  22. "cn-shanghai-internal-test-1": "ecs-cn-hangzhou.aliyuncs.com",
  23. "cn-beijing-gov-1": "ecs.aliyuncs.com",
  24. "cn-shenzhen-su18-b01": "ecs-cn-hangzhou.aliyuncs.com",
  25. "cn-beijing": "ecs-cn-hangzhou.aliyuncs.com",
  26. "cn-shanghai-inner": "ecs.aliyuncs.com",
  27. "cn-shenzhen-st4-d01": "ecs-cn-hangzhou.aliyuncs.com",
  28. "cn-haidian-cm12-c01": "ecs-cn-hangzhou.aliyuncs.com",
  29. "cn-hangzhou-internal-prod-1": "ecs-cn-hangzhou.aliyuncs.com",
  30. "cn-north-2-gov-1": "ecs.aliyuncs.com",
  31. "cn-yushanfang": "ecs.aliyuncs.com",
  32. "cn-qingdao": "ecs-cn-hangzhou.aliyuncs.com",
  33. "cn-hongkong-finance-pop": "ecs.aliyuncs.com",
  34. "cn-shanghai": "ecs-cn-hangzhou.aliyuncs.com",
  35. "cn-shanghai-finance-1": "ecs-cn-hangzhou.aliyuncs.com",
  36. "cn-hongkong": "ecs-cn-hangzhou.aliyuncs.com",
  37. "cn-beijing-finance-pop": "ecs.aliyuncs.com",
  38. "cn-wuhan": "ecs.aliyuncs.com",
  39. "us-west-1": "ecs-cn-hangzhou.aliyuncs.com",
  40. "cn-shenzhen": "ecs-cn-hangzhou.aliyuncs.com",
  41. "cn-zhengzhou-nebula-1": "ecs.cn-qingdao-nebula.aliyuncs.com",
  42. "rus-west-1-pop": "ecs.ap-northeast-1.aliyuncs.com",
  43. "cn-shanghai-et15-b01": "ecs-cn-hangzhou.aliyuncs.com",
  44. "cn-hangzhou-bj-b01": "ecs-cn-hangzhou.aliyuncs.com",
  45. "cn-hangzhou-internal-test-1": "ecs-cn-hangzhou.aliyuncs.com",
  46. "eu-west-1-oxs": "ecs.cn-shenzhen-cloudstone.aliyuncs.com",
  47. "cn-zhangbei-na61-b01": "ecs-cn-hangzhou.aliyuncs.com",
  48. "cn-beijing-finance-1": "ecs.aliyuncs.com",
  49. "cn-hangzhou-internal-test-3": "ecs-cn-hangzhou.aliyuncs.com",
  50. "cn-shenzhen-finance-1": "ecs-cn-hangzhou.aliyuncs.com",
  51. "cn-hangzhou-internal-test-2": "ecs-cn-hangzhou.aliyuncs.com",
  52. "cn-hangzhou-test-306": "ecs-cn-hangzhou.aliyuncs.com",
  53. "cn-shanghai-et2-b01": "ecs-cn-hangzhou.aliyuncs.com",
  54. "cn-hangzhou-finance": "ecs.aliyuncs.com",
  55. "ap-southeast-1": "ecs-cn-hangzhou.aliyuncs.com",
  56. "cn-beijing-nu16-b01": "ecs-cn-hangzhou.aliyuncs.com",
  57. "cn-edge-1": "ecs.cn-qingdao-nebula.aliyuncs.com",
  58. "us-east-1": "ecs-cn-hangzhou.aliyuncs.com",
  59. "cn-fujian": "ecs-cn-hangzhou.aliyuncs.com",
  60. "ap-northeast-2-pop": "ecs.ap-northeast-1.aliyuncs.com",
  61. "cn-shenzhen-inner": "ecs.aliyuncs.com",
  62. "cn-zhangjiakou-na62-a01": "ecs.cn-zhangjiakou.aliyuncs.com",
  63. "cn-hangzhou": "ecs-cn-hangzhou.aliyuncs.com",
  64. }
  65. self.endpoint_regional = "regional"
  66. def getEndpointMap(self):
  67. return self.endpoint_map
  68. def getEndpointRegional(self):
  69. return self.endpoint_regional
  70. endpoint_data = EndpointData()