InquiryPriceCreateInstance
1. API Description
This API (InquiryPriceCreateInstance) 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 .
instanceCount
Yes
Integer
Quantity.
Default value: 1.
Value range: [1, 100]
Default value: 1
eipV4Type [Deprecated]
No
The network type of the public IPv4. Ensure that the stack type of the selected subnet supports IPv4.
ThreeLine are not currently supported.
Deprecated. Please use networkLineType instead.
networkLineType
No
The network type of the public IPv4. Ensure that the stack type of the selected subnet supports IPv4.
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 .
Value range: [0.0, +)
bandwidth
No
Integer
Outbound public network bandwidth cap (Mbps).
Unit: Mbps.
The value differs with different instance types.
Value range: [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.
400
INVALID_DISK_CATEGORY_TYPE
Disk type error.
404
INVALID_INSTANCE_TYPE_NOT_FOUND
Instance type not found.
404
INVALID_ZONE_NOT_FOUND
Region does not exist.
400
OPERATION_DENIED_EIP_UNSUPPORT_NETWORK_TYPE
Elastic IP network billing model is not supported.
Last updated