InquiryPriceCreateInstance
Last updated
Last updated
This API is used to query the price of creating instance.
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Parameter Name | Type | Description |
---|---|---|
Query the price of a subscription instance with the billing method of flat rate
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 |
---|---|---|
zoneId
Yes
String
Zone ID of the instance.
instanceTypeId
Yes
String
Instance model ID. To view specific values, you can call DescribeInstanceTypes.
instanceChargeType
Yes
String
Instance pricing model. PREPAID: subscription
POSTPAID: pay-as-you-go
internetChargeType
Yes
String
Network pricing model.
See InternetChargeType for details.
InstanceChargePrepaid
No
Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the instanceChargeType
is PREPAID
.
trafficPackageSize
No
Float
Traffic package size (TB).
The parameter is valid only when internetChargeType
is ByTrafficPackage
.
If not passed in, the default value will be the size of the free traffic package.
internetMaxBandwidthOut
No
Integer
Public network bandwidth cap (Mbps).
Default value: 1 Mbps.
The parameter value differs by different instance models. See bandwidth configuration for details.
instancePrice
Price of the instance.
bandwidthPrice
Array of Price
Price of public bandwidth. Kinds of prices may exist. For example, traffic package billing method may contain the package price and overage price.
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.
404
INVALID_INSTANCE_TYPE_NOT_FOUND
Instance model not found.
400
INVALID_INSTANCE_TYPE_ZONE_NO_SELL
Instance model not for sale in the zone.
400
INVALID_INSTANCE_BANDWIDTH_ZONE_NO_SELL
Public network billing method not supported in the zone.
403
INVALID_CHARGE_TYPE_NOT_SUPPORT
Payment method not supported. Please contact Zenlayer Support.