Creates an IPv6 gateway.

Description

  • CreateIpv6Gateway is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background. You can call the DescribeIpv6GatewayAttribute operation to query the state of an IPv6 gateway.
    • If the IPv6 gateway is in the Creating state, the IPv6 gateway is being created.
    • If the IPv6 gateway is in the Created state, the IPv6 gateway is created.
  • You cannot call the CreateIpv6Gateway operation to create multiple IPv6 gateways in a virtual private cloud (VPC) at the same time.

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
RegionId String Yes cn-huhehaote

The ID of the region where the IPv6 gateway is deployed. You can call the DescribeRegions operation to obtain the region ID.

VpcId String Yes vpc-123sedrfswd23****

The ID of the VPC for which you want to create the IPv6 gateway.

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 and 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 the value is unique among different requests. ClientToken can contain only ASCII characters.

Note If you do not set this parameter, the system sets ClientToken to the value of RequestId. The value of RequestId for each API request may be different.
ResourceGroupId String No rg-acfmxazb4ph6aiy****

The ID of the resource group.

Action String Yes CreateIpv6Gateway

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

Response parameters

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

The ID of the IPv6 gateway.

ResourceGroupId String rg-acfmxazb4ph6aiy****

The ID of the resource group.

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

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?RegionId=cn-huhehaote
&VpcId=vpc-123sedrfswd23****
&Name=ipv6GW
&Description=ipv6gatewayforVPC1
&ClientToken=0c593ea1-3bea-11e9-b96b-88e9fe637760
&ResourceGroupId=rg-acfmxazb4ph6aiy****
&Action=CreateIpv6Gateway
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateIpv6GatewayResponse>
    <Ipv6GatewayId>ipv6gw-hp3y0l3ln89j8cdvf****</Ipv6GatewayId>
    <ResourceGroupId>rg-acfmxazb4ph6aiy****</ResourceGroupId>
    <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC</RequestId>
</CreateIpv6GatewayResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Ipv6GatewayId" : "ipv6gw-hp3y0l3ln89j8cdvf****",
  "ResourceGroupId" : "rg-acfmxazb4ph6aiy****",
  "RequestId" : "0ED8D006-F706-4D23-88ED-E11ED28DCAC"
}

Error codes

HTTP status code Error code Error message Description
400 OperationFailed.UnpaidBillsExist The account has unpaid bills. Please pay your overdue bill first. The error message returned because the account has unpaid orders.
400 OperationFailed.InformationIncomplete Your information is incomplete. The error message returned because one or more required parameters are not set.
400 OperationFailed.NoPaymentMethod No payment method is specified for your account. The error message returned because no valid payment method is specified for the account.
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The error message returned because the specified region ID does not exist.
404 InvalidVpcId.NotFound Specified VPC does not exist. The error message returned because the specified VPC does not exist.

For a list of error codes, see Service error codes.