Creates an IPv6 Gateway.

Debug

We recommend that you use OpenAPI Explorer to call APIs, generate SDK code examples, perform debug operations, and search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes CreateIpv6Gateway

The name of this action. Value: CreateIpv6Gateway

RegionId String Yes cn-huhehaote

The region of the IPv6 Gateway to be created.

VpcId String Yes vpc-123456

The ID of the VPC for which you need to enable IPv6 Gateway.

ClientToken String No 123456

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

The value of this parameter is generated by the client. Make sure that this value is unique among different requests and does not exceed 64 ASCII characters.

Description String No ipv6gatewayforVPC1

Optional. A description of the IPv6 Gateway to be created.

The description must be 2 to 256 characters in length and can contain letters, numbers, Chinese characters, periods (.), hyphens (-), and underscores (_). It must start with a letter or Chinese character. It cannot start with http:// or https://.

Name String No ipv6GW

Optional. The name of the IPv6 Gateway to be created.

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

Spec String No Small

Optional. The specification of the IPv6 Gateway to be created. Valid values:

  • Small (default value): a free version.
  • Medium: an enterprise version.
  • Large: an enhanced enterprise version.

Different IPv6 Gateway specifications indicate different forwarding capacities. For more information, see IPv6 Gateway specifications.

Response parameters

Parameter Type Example value Description
Ipv6GatewayId String ipv6gw-hp3y0l3ln89j8fv0m5som

The ID of the IPv6 Gateway.

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

The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=CreateIpv6Gateway
&RegionId=cn-huhehaote
&VpcId=vpc-hp3x04of74a63w0sy3exy
&CommonParameters
			

Response examples

XML format

<CreateIpv6GatewayResponse>
  <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
  <Ipv6GatewayId>vipv6gw-hp3y0l3ln89j8fv0m5som</Ipv6GatewayId>
</CreateIpv6GatewayResponse>
			

JSON format

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

Error codes

HttpCode Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified RegionId does not exist. Please check if the product is available in the specified region.

See common error codes.