DescribeZoneInstanceConfigInfos

1. API Description

This API is used to query information on instance size in the zone.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter Name
Required
Type
Description

zoneId

No

String

Availability zone ID.

instanceType

No

String

Instance size.

3. Output Parameters

Parameter Name
Type
Description

instanceTypeQuotaSet

Information on instance size in the zone.

requestId

String

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

4. Code Example

Query information on instance size of z2a.cpu.4 in the zone.

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

Request:
{
  "instanceType":"z2a.cpu.4"
}

Response:
{
  "requestId": "T1490DC28-BAD4-447A-9601-549EE18562BC",
  "response": {
    "requestId": "T1490DC28-BAD4-447A-9601-549EE18562BC",
    "instanceTypeQuotaSet": [
      {
        "zoneId": "SH1A",
        "instanceType": "z2a.cpu.4",
        "cpuCount": 4,
        "memory": 8,
        "frequency": null,
        "internetMaxBandwidthOutLimit": null,
        "instanceTypeName": "z2a.cpu.4",
        "internetChargeTypes": [
          "BandwidthCluster",
          "ByTrafficPackage"
        ]
      }
    ]
  }
}

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

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.​

HTTP Status Code
Error Code
Description

404

INVALID_ZONE_NOT_FOUND

Availability zone does not exist.

Last updated