CreateIpv6Block
Last updated
Last updated
This API is used to create one or more IPv6 CIDR blocks.
Query stock: call DescribeAvailableIpv6Resources
to check available resources.
Note
An IPv6 CIDR block contains 500 available IPs.
This API is an async API. A CIDR block ID list is returned after the creation request is sent. However, it does not mean the creation has been completed. The status of the CIDR block will be CREATING
during the creation. You can use DescribeCidrBlocks to query the status of the CIDR block. If the status changes from Creating
to Available
, it means that the CIDR block has been created successfully; CREATE_FAILED
means the CIDR block has been created failed. Any operations on the instances are not allowed while creating.
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Parameter Name | Type | Description |
---|---|---|
Create an IPv6 CIDR block example
**** in IST-B
, belonging to Default Resource Group
.
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.
name
No
String
CIDR block name to be displayed.
This parameter can contain up to 64 characters.
amount
No
Integer
Quantity of IPv6 CIDR blocks you want to purchase.
Default value: 1.
resourceGroupId
No
String
Resource group ID where the CIDR blocks reside.
If an available VLAN exists in the specified zone, this parameter will be ignored. The created CIDR blocks will be added to the resource group of the VLAN.
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
cidrBlockIds
Array of String
List of CIDR block IDs.
404
INVALID_ZONE_NOT_FOUND
Zone not found.
403
RESOURCE_INSUFFICIENT_PRODUCT_SOLD_OUT
Resources sold out.