Queries regions.

Request information

Request line

GET /regions HTTP/1.1

Request line parameters

None.

Operation-specific request headers

None.

Request body

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
   "data": {
      "regions": [
         {
            "localName": String,
            "regionId": String,
            "domains": [
               {
                  "domain": String,
                  "network": "public"
               },
               {
                  "domain": String,
                  "network": "internal"
               },
               {
                  "domain": String,
                  "network": "vpc"
               }
            ]
         }
      ]
   },
   "requestId": String
}

Response body parameters

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

Examples

Sample requests

GET /regions HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
   "data": {
      "regions": [
         {
            "localName": "China (Hangzhou)",
            "regionId": "cn-hangzhou",
            "domains": [
               {
                  "domain": "registry.cn-hangzhou.aliyuncs.com",
                  "network": "public"
               },
               {
                  "domain": "registry-internal.cn-hangzhou.aliyuncs.com",
                  "network": "internal"
               },
               {
                  "domain": "registry-vpc.cn-hangzhou.aliyuncs.com",
                  "network": "vpc"
               }
            ]
         }
      ]
   },
   "requestId": "04EF3ECB-AA02-4190-8A10-5D7BC3DB309C"
}