You need to enable JavaScript to run this app.
导航

CreateIpv6EgressOnlyRule

最近更新时间2024.01.11 10:32:42

首次发布时间2023.01.10 10:28:03

调用 CreateIpv6EgressOnlyRule 接口,为指定的IPv6公网带宽创建仅主动出规则。

调用说明

单个IPv6网关最多可创建仅主动出规则的数量为200条。

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringCreateIpv6EgressOnlyRule要执行的操作,取值为CreateIpv6EgressOnlyRule。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。

Ipv6GatewayId

String

ipv6gw-hp3rwmtmfhgis****

IPv6网关ID。
您可以调用 DescribeIpv6Gateways 接口,查询IPv6网关的ID。

InstanceIdStringeip-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个字符。
  • 未指定该参数值时,不进行幂等校验。

返回数据

参数名称
类型
示例值
描述
RequestIdString202106241530330102251****请求ID。
Ipv6EgressOnlyRuleIdStringipv6py-fhjshfsfweryew****仅主动出规则的ID。

请求示例

GET /?Action=CreateIpv6EgressOnlyRule&Version=2020-04-01&Ipv6GatewayId=ipv6gw-hp3rwmtmfhgis****&InstanceId=eip-hp3nxjkfxn5pnhgl5****&Name=rule-1 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-guangzhou
Service: vpc

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202106241530330102251****",
        "Action": "CreateIpv6EgressOnlyRule",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-guangzhou"
    }, 
    "Result": {
        "RequestId": "202106241530330102251****",
        "Ipv6EgressOnlyRuleId": "ipv6py-fhjshfsfweryew****"
    }
}

错误码

公共错误码,请参见 公共错误码 。

HttpCode
错误码
错误信息
描述
400IdempotentParameterMismatchArguments on this idempotent request are inconsistent with arguments used in previous request(s).此幂等请求的参数与前一个请求中使用的参数不一致。
400InvalidDescription.MalformedThe specified description is malformed.指定的描述格式不合法。请修复描述格式后重试。
400InvalidDescription.MalformedThe specified description is malformed. Ensure the maximum length of description is 255.指定的描述格式不合法。描述长度不能超过255个字符。
400InvalidEip.InUseThe specified EIP is being operated by another request.指定的EIP正被另一个请求操作,请稍后再试。
400InvalidEip.InvalidStatusThe specified elastic ip is not in the correct status for the request.指定的弹性公网IP所处的状态无法响应该请求。
400InvalidIpv6.InUseThe specified IPv6 address bandwidth is being operated by another request.指定的IPv6公网带宽正被另一个请求操作,请稍后再试。
400InvalidIpv6EgressOnlyRule.BandwidthNotExistThe specified IPv6 address does not have an IPv6 internet bandwidth, please allocate and try again.指定的IPv6地址没有开通公网带宽,请开通后重试。
400InvalidIpv6EgressOnlyRule.NotSupportInstance associated with IPv6 address bandwidth does not support egress only rules.IPv6公网带宽关联的实例不支持仅主动出规则。
400InvalidIpv6Eip.NotExistInGatewayThe specified IPv6 EIP does not belong to the specified IPv6 gateway.指定的IPv6 EIP不属于指定的IPv6网关。
400InvalidName.MalformedThe specified name is malformed. Ensure the maximum length of name is 128.指定的名称格式不合法。名称长度不能超过128个字符。
400InvalidName.MalformedThe specified name is malformed.指定的名称格式不合法。请修复名称格式后重试。
400InvalidParameter.ClientTokenMalformedThe specified parameter ClientToken is malformed.指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。
400OperationUnsupported.OnlyOneIpv6EgressOnlyRuleCreate more than one egress only rule for one IPv6 address is unsupported.一个IPv6地址只能创建一条仅主动出规则。
400QuotaExceeded.IPv6GatewayIPv6 egress only rule number of IPv6Gateway exceeded quota.已达到每个IPv6网关下仅主动出规则的数量上限。
404InvalidIpv6Gateway.NotFoundThe specified Ipv6Gateway does not exist.指定的IPv6网关不存在。
412IdempotentProcessingThe request uses the same client token as a previous one that is still in process.幂等请求处理中。