InquiryPriceCreateIpv4Block
Last updated
Last updated
This API is used to query the price of creating IPv4 CIDR blocks.
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Parameter Name | Type | Description |
---|---|---|
Query the price of a postpaid IPv4 CIDR block with the netmask of 28
**** in CHI-A
. The quantity you want to purchase is 1
.
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 to which the CIDR blocks belong.
chargeType
Yes
String
CIDR block pricing model.
PREPAID: subscription
POSTPAID: pay-as-you-go
chargePrepaid
No
Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the chargeType
is PREPAID
.
netmask
Yes
Integer
Netmasks you want to purchase.
Value range: [1,32].
You can find the available netmasks in the response by calling DescribeAvailableIpv4Resource
.
amount
No
Integer
Quantity of IPv4 CIDR blocks you want to purchase.
Default value: 1.
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
price
Price of IPv4 CIDR blocks.
404
INVALID_ZONE_NOT_FOUND
Zone not found.
403
OPERATION_DENIED_UNAVAILABLE_NETMASK
Unavailable netmask.