You need to enable JavaScript to run this app.
文档中心
IPv6网关

IPv6网关

复制全文
下载 pdf
仅主动出规则
CreateIpv6EgressOnlyRule - 创建仅主动出规则
复制全文
下载 pdf
CreateIpv6EgressOnlyRule - 创建仅主动出规则
调用 CreateIpv6EgressOnlyRule 接口,为指定的IPv6公网带宽创建仅主动出规则。​
使用说明​
单个IPv6网关最多可创建仅主动出规则的数量为200条。​
请求参数​
Action String 必选 示例值:CreateIpv6EgressOnlyRule​
要执行的操作,取值:CreateIpv6EgressOnlyRule。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
Ipv6GatewayId String 必选 示例值:ipv6gw-hp3rwmtmfhgis****​
IPv6网关ID。​
您可以调用 DescribeIpv6Gateways 接口,查询IPv6网关的ID。​
​
InstanceId String 必选 示例值:eip-hp3nxjkfxn5pnhgl5****​
待添加仅主动出规则的IPv6公网带宽的ID。​
​
Name String 可选 示例值:rulename​
仅主动出规则名称。​
  • 长度限制为1 ~ 128个字符。​
  • 需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。​
  • 不填默认是主动出规则ID。​
​
Description String 可选 示例值:This rule is for ipv6.​
描述信息。​
  • 长度限制为0~ 255个字符。​
  • 不填默认为空字符串。​
  • 需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
​
ClientToken String 可选 示例值:0c593ea1-3bea-11e9-b96b-88e9fe63****​
客户端Token,用于保证请求的幂等性。​
  • 该参数值由客户端自动生成,确保不同请求的取值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。​
  • 取值仅支持ASCII字符,最大不超过64个字符。​
  • 未指定该参数值时,不进行幂等校验。​
​
​
​
返回参数​
RequestId String 示例值:202106241530330102251****​
请求ID。​
​
Ipv6EgressOnlyRuleId String 示例值:ipv6py-fhjshfsfweryew****​
仅主动出规则的ID。​
​
​
​
请求示例​
​
GET /?Action=CreateIpv6EgressOnlyRule&Version=2020-04-01&Ipv6GatewayId=ipv6gw-hp3rwmtmfhgis****&InstanceId=eip-hp3nxjkfxn5pnhgl5****&Name=rule-1 HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
Region: cn-beijing​
Service: vpc​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202106241530330102251****",​
"Action": "CreateIpv6EgressOnlyRule",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "202106241530330102251****",​
"Ipv6EgressOnlyRuleId": "ipv6py-fhjshfsfweryew****"​
}​
}​
​
错误码​
公共错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
IdempotentParameterMismatch​
Arguments on this idempotent request are inconsistent with arguments used in previous request(s).​
此幂等请求的参数与前一个请求中使用的参数不一致。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidEip.InUse​
The specified EIP is being operated by another request.​
指定的EIP正被另一个请求操作,请稍后再试。​
400​
InvalidIpv6.InUse​
The specified IPv6 address bandwidth is being operated by another request.​
指定的IPv6公网带宽正被另一个请求操作,请稍后再试。​
400​
InvalidIpv6EgressOnlyRule.BandwidthNotExist​
The specified IPv6 address does not have an IPv6 internet bandwidth, please allocate and try again.​
指定的IPv6地址没有开通公网带宽,请开通后重试。​
400​
InvalidIpv6EgressOnlyRule.NotSupport​
Instance associated with IPv6 address bandwidth does not support egress only rules.​
IPv6公网带宽关联的实例不支持仅主动出规则。​
400​
InvalidIpv6Eip.NotExistInGateway​
The specified IPv6 EIP does not belong to the specified IPv6 gateway.​
指定的IPv6 EIP不属于指定的IPv6网关。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidParameter.ClientTokenMalformed​
The specified parameter ClientToken is malformed.​
指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。​
400​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
OperationUnsupported.OnlyOneIpv6EgressOnlyRule​
Create more than one egress only rule for one IPv6 address is unsupported.​
一个IPv6地址只能创建一条仅主动出规则。​
400​
QuotaExceeded.IPv6Gateway​
You've reached the limit on the number of IPv6 egress only rule per IPv6 gateway that you can create.​
已达到每个IPv6网关下仅主动出规则的数量上限。​
404​
InvalidEip.NotFound​
The specified EIP does not exist.​
指定的EIP不存在。​
404​
InvalidIpv6Gateway.NotFound​
The specified Ipv6Gateway does not exist.​
指定的IPv6网关不存在。​
409​
InvalidOperation.Conflict​
The specified resource operation conflicts.​
指定的资源操作冲突。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.01.23 15:55:57
这个页面对您有帮助吗?
有用
有用
无用
无用