DescribeGoogleRegions

1. API Description

This API is used to query location information supported for the Google Cloud access point according to Google Cloud pairing key.

Note

Ensure that your Google cloud pairing key is available.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

pairingKey

Yes

String

Google Cloud pairing key.

product

No

String

Supported products at the location Available value:

  • PrivateConnect: Layer 2 Private Connect

  • CloudRouter: Layer 3 Cloud Router

3. Output Parameters

Parameter NameTypeDescription

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

cloudRegions

Array of CloudRegion

Location information of Google Cloud access point.

4. Code Example

Query location information supported for the Google Cloud access point according to Google Cloud pairing key.

POST /api/v2/sdn HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DescribeGoogleRegions
<Common Request Params>

Request:
{
   "pairingKey": "xxxxxxxxx/asia-southeast1/1"
}

Response:
{   
  "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3",
  "response": {
    "requestId":"T05992D0C-7E8B-4047-B0C0-780F2CD549D3",
    "cloudRegions":[
        {
            "cloudRegionId":"asia-southeast1",
            "dataCenter":{
                "dcId":"SIN1",
                "cityName":"Singapore",
                "areaName":"AP",
                "dcName":"Equinix_SG1",
                "latitude":1.295689,
                "longitude":103.789789,
                "dcAddress":"20 Ayer Rajah Crescent, Ayer Rajah Industrial Park, Singapore 139964",
                "countryName":"Singapore"
            },
            "products":[
                "PrivateConnect",
                "CloudRouter"
            ]
        }
    ]
  }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

No error codes related to the API business logic. For other error codes, see Common Error Codes.​

Last updated