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.
zoneId
No
String
Availability zone ID.
instanceType
No
String
Instance size.
withStock
No
Boolean
Whether the instance size is in stock.
3. Output Parameters
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": "europe-central-1a",
"instanceType": "z2a.cpu.4",
"cpuCount": 4,
"memory": 8,
"withStock": true,
"internetMaxBandwidthOutLimit": 10000,
"instanceTypeName": "z2a.cpu.4",
"internetChargeTypes": [
"BandwidthCluster",
"ByTrafficPackage"
]
}, {
"zoneId": "europe-east-1a",
"instanceType": "z2a.cpu.4",
"cpuCount": 4,
"memory": 8,
"withStock": false,
"internetMaxBandwidthOutLimit": 10000,
"instanceTypeName": "z2a.cpu.4",
"internetChargeTypes": [
"BandwidthCluster"
]
}
]
}
}
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.
404
INVALID_ZONE_NOT_FOUND
Availability zone does not exist.
404
INVALID_INSTANCE_TYPE_NOT_FOUND
Instance size does not exist.
400
INVALID_ZONE_NOT_ON_SALE
Instance size is not for sale in the availability zone.
400
INVALID_INSTANCE_TYPE_ZONE_NO_SELL
Instance size is not for sale.
Last updated