Creates an IPv6 gateway.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateIpv6Gateway

The operation that you want to perform. Set the value to CreateIpv6Gateway.

RegionId String Yes cn-huhehaote

The ID of the region where you want to create the IPv6 gateway. You can call the DescribeRegions operation to query the most recent region list.

VpcId String Yes vpc-123sedrfswd23****

The ID of the virtual private cloud (VPC) for which you want to create the IPv6 gateway.

Spec String No Small

The edition of the IPv6 gateway. Valid values:

  • Small (default): Free Edition
  • Medium: Enterprise Edition
  • Large: Enhanced Enterprise Edition

The throughput capacity of an IPv6 gateway varies based on the edition. For more information, see Editions of IPv6 gateways.

Name String No ipv6GW

The name of the IPv6 gateway.

The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://.

Description String No ipv6gatewayforVPC1

The description of the IPv6 gateway.

The description must be 2 to 256 characters in length. It cannot start with http:// or https://.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe637760

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The ID of each request is unique.

Response parameters

Parameter Type Example Description
Ipv6GatewayId String ipv6gw-hp3y0l3ln89j8cdvf****

The ID of the IPv6 gateway.

RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateIpv6Gateway
&RegionId=cn-huhehaote
&VpcId=vpc-123sedrfswd23****
&<Common request parameters>

Sample success responses

XML format

<CreateIpv6GatewayResponse>
        <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
        <Ipv6GatewayId>ipv6gw-hp3y0l3ln89j8cdvf****</Ipv6GatewayId>
</CreateIpv6GatewayResponse>

JSON format

{
    "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
    "Ipv6GatewayId": "ipv6gw-hp3y0l3ln89j8cdvf****"
}

Error codes

HttpCode Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The error message returned because the specified region ID does not exist.

For a list of error codes, visit the API Error Center.