DescribeAvailableResources
Last updated
Last updated
This API is used to describe the status of available resources.
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Parameter Name | Type | Description |
---|---|---|
Query available resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
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 |
---|---|---|
instanceChargeType
Yes
String
zoneId
No
String
Zone ID.
instanceTypeId
No
String
Instance model ID.
sellStatus
No
String
Status of sale.
SELL
: available for sale, stock > 10.
SELL_SHORTAGE
: available for sale, stock < 10.
SOLD_OUT
: sold out.
availableResources
Array of AvailableResource
Information on available resources, including zoneId, status, quantity, etc.
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
404
INVALID_ZONE_NOT_FOUND
Zone not found.
400
INVALID_CHARGE_TYPE_NOT_SUPPORT
Pricing model not supported. If necessary, please contact Zenlayer Support.