InquiryPriceCreateInstance
1. API Description
This API (InquiryPriceCreateInstance) is used to query the price of creating instance.
2. Input Parameters
The following request parameter list only provides API request parameters.
zoneId
Yes
String
Zone ID of the instance.
instanceTypeId
Yes
String
Instance model ID.
To view specific values, you can call DescribeInstanceTypes .
instanceChargePrepaid
No
Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the chargeType 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.
Value range: [0.0, +)
internetMaxBandwidthOut
No
Integer
Public network bandwidth cap (Mbps).
Default value: 1 Mbps.
The parameter value differs by different instance models.
Value range: [0, +)
Default value: 1
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request.
RequestId is required for locating a problem.
bandwidthPrice
Array of PriceItem
Price of public bandwidth.
Kinds of prices may exist. For example, traffic package billing method may contain the package price and overage price.
4. Code Example
Query the price of a subscription instance with the billing method of flat rate
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
Zone not found.
404
INVALID_INSTANCE_TYPE_NOT_FOUND
Instance type not found.
403
INVALID_CHARGE_TYPE_NOT_SUPPORT
The current account does not support the specified pricing model.
400
INVALID_INSTANCE_BANDWIDTH_ZONE_NO_SELL
The specified public network billing model is not supported in the selected zone.
400
INVALID_INSTANCE_TYPE_ZONE_NO_SELL
Traffic package of the specified instance is not currently available for sale.
Last updated