DescribeZoneInstanceConfigInfos

1. API Description

This API is used to query available models in the zone.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

instanceChargeType

Yes

String

Pricing model.

PREPAID: monthly subscription.

POSTPAID: pay-as-you-go.

zoneId

No

String

Zone ID.

instanceType

No

String

Instance model.

3. Output Parameters

Parameter NameTypeDescription

instanceTypeQuotaSet

Model list 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

Obtain available resources.

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

Request:
{
  "instanceChargeType":"PREPAID"
}

Response:
{
    "requestId":"T2AC6C0A0-4871-4106-BE90-651552D6185C",
    "response":{
        "requestId":"T2AC6C0A0-4871-4106-BE90-651552D6185C",
        "instanceTypeQuotaSet":[
            {
                "zoneId":"FRA-A",
                "instanceType":"c.4c8g",
                "cpuCount":4,
                "memory":8,
                "internetMaxBandwidthOutLimit":1500,
                "instanceTypeName":"Compute Optimized 4C8G",
            }
            ...
        ]
    }
}

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 CodeError CodeDescription

404

INVALID_ZONE_NOT_FOUND

Zone not found.

Last updated