All Products
Search
Document Center

:CreateIpv6Gateway

最終更新日:Aug 21, 2023

Creates an IPv6 gateway.

Usage notes

  • CreateIpv6Gateway is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the DescribeIpv6GatewayAttribute operation to query the status of the task.
    • 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 within a specific time period.

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 region ID of 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 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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
ResourceGroupId String No rg-acfmxazb4ph6aiy****

The ID of the resource group.

Tag.N.Key String No FinanceDept

The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.

The tag key can be at most 128 characters in length. It cannot start with aliyun or acs:, and cannot contain http:// or https://.

Tag.N.Value String No FinanceJoshua

The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.

The tag value can be up to 128 characters in length, and cannot contain http:// or https://. The tag value cannot start with aliyun or acs:.

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 request ID.

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****
&Tag=[{"Key":"FinanceDept","Value":"FinanceJoshua"}]
&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

HttpCode Error code Error message Description
400 OperationFailed.UnpaidBillsExist The account has unpaid bills. Please pay your overdue bill first. The account has unpaid orders.
400 OperationFailed.InformationIncomplete Your information is incomplete. One or more required parameters are not specified.
400 OperationFailed.NoPaymentMethod No payment method is specified for your account. No valid payment method is specified for the account.
400 IllegalParam.ResourceGroupId Invalid ResourceGroupld value. The specified resource group is invalid or does not exist.
400 MissingParam.vpcId The parameter vpcId is mandatory. vpcId is required.
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID is not found.
404 InvalidVpcId.NotFound Specified VPC does not exist. The VPC does not exist.

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