ModifySubnetStackType
ModifySubnetStackType
1. API Description
This API is used to modify the IP stack type of subnet under a global VPC.
Note
You can only change the IP stack type of subnet from IPv4
to IPv4_IPv6
.
2. Input Parameters
The following request parameter list only provides API request parameters.
subnetId
Yes
String
Subnet ID.
stackType
Yes
String
IP stack type of subnet.
The optional values are as follows: IPv4_IPv6
ipv6Type
Yes
String
Subnet IPv6 type.
The optional values are as follows: Public
, Private
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
ipv6CidrBlock
String
IPv6 CIDR block of subnet.
4. Code Example
Modify the IP stack type of subnet.
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_SUBNET_NOT_FOUND
Subnet does not exist.
400
OPERATION_DENIED_DEFAULT_SUBNET
Operations on default subnet is not supported.
400
OPERATION_DENIED_SUBNET_TYPE_NOT_SUPPORT
Operations on subnets with such IP stack type is not supported.
400
OPERATION_DENIED_VPC_NOT_SUPPORT_IPV6
Private IPv6 is not supported for this global VPC.
400
INVALID_ZONE_NOT_FOUND
Region does not exist.
400
OPERATION_DENIED_SUBNET_TYPE_NOT_SUPPORT_IPV6
Public IPv6 is not supported in this region.
Last updated