Creates an egress-only rule for an IPv6 address.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes CreateIpv6EgressOnlyRule

The name of this action. Value: CreateIpv6EgressOnlyRule.

InstanceId String Yes ipv6-hp3nxjkfxn5pnhgl5****

The ID of the IPv6 address for which the egress-only rule is to be created.

Ipv6GatewayId String Yes ipv6gw-hp3c2paq0ywauasza****

The ID of the IPv6 Gateway.

RegionId String Yes cn-huhehaote

The ID of the region to which the IPv6 Gateway belongs. To query the region ID, call DescribeRegions.

ClientToken String No 123456

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 ruledescription

The description of the egress-only rule to be created.

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

InstanceType String No IPv6Address

The type of the instance that requires an egress-only rule. Values:

Ipv6Address (Default): IPv6 address.

Name String No rulename

The name of the egress-only rule.

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

Response parameters

Parameter Type Example value Description
Ipv6EgressRuleId String ipv6py-hp3w98rmlbqp01245****

The ID of the egress-only rule.

RequestId String 9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75

The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=CreateIpv6EgressOnlyRule
&RegionId=cn-huhehaote
&InstanceId=ipv6-hp3nxjkfxn5pnhgl5****
&Ipv6GatewayId=ipv6gw-hp3c2paq0ywauasza****
&<CommonParameters>

Response example

XML format

<CreateIpv6EgressOnlyRuleResponse>
	  <RequestId>9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75</RequestId>
	  <Ipv6EgressRuleId>ipv6py-hp3w98rmlbqp01245****</Ipv6EgressRuleId>
</CreateIpv6EgressOnlyRuleResponse>

JSON format

{
	"RequestId":"9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75",
	"Ipv6EgressRuleId":"ipv6py-hp3w98rmlbqp01245****"
}

Error codes

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