All Products
Search
Document Center

GetRegionList

Last Updated: Jan 22, 2020

Description

You can call this operation to query regions.

Request information

Request line

  1. GET /regions HTTP/1.1

Request parameters

Custom request headers

None.

Request body

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Custom response headers

None.

Response body

  1. {
  2. "data": {
  3. "regions": [
  4. {
  5. "localName": String,
  6. "regionId": String,
  7. "domains": [
  8. {
  9. "domain": String,
  10. "network": "public"
  11. },
  12. {
  13. "domain": String,
  14. "network": "internal"
  15. },
  16. {
  17. "domain": String,
  18. "network": "vpc"
  19. }
  20. ]
  21. }
  22. ]
  23. },
  24. "requestId": String
  25. }

Response body description

Parameter Type Description
localName String The name of the region.
regionId String The ID of the region.
domain String The domain name of the region.
network String The network type of the region.
requestId String The unique ID of the request.

Examples

Sample requests

  1. GET /regions HTTP/1.1
  2. <Common request headers>

Sample responses

  1. HTTP/1.1 200 OK
  2. <Common response headers>
  3. {
  4. "data": {
  5. "regions": [
  6. {
  7. "localName": "China (Hangzhou)",
  8. "regionId": "cn-hangzhou",
  9. "domains": [
  10. {
  11. "domain": "registry.cn-hangzhou.aliyuncs.com",
  12. "network": "public"
  13. },
  14. {
  15. "domain": "registry-internal.cn-hangzhou.aliyuncs.com",
  16. "network": "internal"
  17. },
  18. {
  19. "domain": "registry-vpc.cn-hangzhou.aliyuncs.com",
  20. "network": "vpc"
  21. }
  22. ]
  23. }
  24. ]
  25. },
  26. "requestId": "04EF3ECB-AA02-4190-8A10-5D7BC3DB309C"
  27. }