InquiryPriceCreateInstance
1. API Description
This API is used to query the price of creating an elastic compute instance.
2. Input Parameters
The following request parameter list only provides API request parameters.
zoneId
Yes
String
Zone ID to which the instance belongs.
instanceType
Yes
String
Instance type. Specific values can be obtained by calling the interface DescribeZoneInstanceConfigInfos.
eipV4Type
Yes
String
The network type of the public IPv4. Ensure that the stack type of the selected subnet supports IPv4.
See eipV4Type for available values.
LocalLine
and ThreeLine
are not currently supported.
trafficPackageSize
No
Float
Data transfer package size (TB).
The unit is TB. The parameter is only required when internetChargeType
is ByTrafficPackage
.
bandwidth
No
Integer
Outbound public network bandwidth cap (Mbps).
Unit: Mbps.
The value differs with different instance types. See bandwidth configuration for details.
instanceCount
No
Integer
Quantity.
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.
4. Code Example
Query the price of a pay-as-you-go instance with the public network 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 does not exist.
404
INVALID_INSTANCE_TYPE_NOT_FOUND
Instance type not found.
400
INVALID_INSTANCE_TYPE_ZONE_NO_SELL
Specified instance specifications not sold in specified availability zone.
400
INVALID_INSTANCE_BANDWIDTH_ZONE_NO_SELL
Specified public network billing model is not supported in the selected availability zone.
400
INVALID_PARAMETER_TRAFFIC_PACKAGE
Invalid data transfer package size.
400
INVALID_PARAMETER_TRAFFIC_PACKAGE_EXCEED
Data package size exceeds the maximum limit.
Last updated