InquiryPriceCreateIpv4Block
1. API Description
This API is used to query the price of creating IPv4 CIDR blocks.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
zoneId | Yes | String | Zone ID to which the CIDR blocks belong. |
chargeType | Yes | String | CIDR block pricing model.
|
chargePrepaid | No | Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the | |
netmask | Yes | Integer | Netmasks you want to purchase. Value range: [1,32]. You can find the available netmasks in the response by calling |
amount | No | Integer | Quantity of IPv4 CIDR blocks you want to purchase. Default value: 1. |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
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. |
4. Code Example
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
.
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.
HTTP Status Code | Error Code | Description |
---|---|---|
404 | INVALID_ZONE_NOT_FOUND | Zone not found. |
403 | OPERATION_DENIED_UNAVAILABLE_NETMASK | Unavailable netmask. |
Last updated