ModifyTransitRouteTableAggregation - 编辑聚合路由

编辑聚合路由。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

cen:ModifyTransitRouteTableAggregation

create

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

TransitRouteTableId

string

企业版转发路由器路由表 ID。

vtb-6ehgc262hr170qgyc****

TransitRouteTableAggregationName

string

聚合路由的名称。

名称可以为空或长度为 1~128 个字符,不能以 http://或 https://开头。

nametest

TransitRouteTableAggregationCidr

string

聚合路由的目标网段。

192.168.10.0/24

TransitRouteTableAggregationScope

string

聚合路由的传播范围。

仅取值:VPC,表示向已与当前企业版转发路由器路由表创建关联转发关系并已开启路由同步功能的所有 VPC 实例传播聚合路由。

VPC

TransitRouteTableAggregationScopeList

array

聚合路由的传播范围列表。

说明

聚合路由传播范围和聚合路由传播范围列表必须至少选择一个属性,建议使用聚合路由传播范围列表;聚合路由传播范围列表中元素不能与聚合路由传播范围的值重复。

string

聚合路由的传播范围列表。 取值:

  • VPC,表示向已与当前企业版转发路由器路由表创建关联转发关系并已开启路由同步功能的所有 VPC 实例传播聚合路由。

  • VBR,表示向已加载到当前企业版转发路由器的 VBR 实例传播聚合路由。

  • Peer,表示向已与当前企业版转发路由器建立了跨地域连接的转发路由器传播聚合路由。

  • VPN,表示向已加载到当前企业版转发路由器的 VPN 实例传播聚合路由。

  • ECR,表示向已加载到当前企业版转发路由器的 ECR 实例传播聚合路由。

VBR

TransitRouteTableAggregationDescription

string

聚合路由的描述信息。

描述可以为空或长度为 0~256 个字符,不能以 http://或 https://开头。

desctest

ClientToken

string

客户端 Token,用于保证请求的幂等性。

从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。

说明

若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。

02fb3da4****

DryRun

boolean

是否对此次创建请求执行预检,包括权限、实例状态校验等。取值:

  • false(默认值):发送正常请求,通过检查后直接修改聚合路由。

  • true:发送检查请求,只进行校验,不会修改聚合路由。检查项包括是否填写了必需参数、请求格式等。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码DryRunOperation

false

返回参数

名称

类型

描述

示例值

object

PlainResponse

RequestId

string

请求 ID。

0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50

示例

正常返回示例

JSON格式

{
  "RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidOperation.RegionNotSupport The Operation is not Support in this region. 当前地域不支持该操作。
400 InstanceNotExist.TransitRouteTable The transitRouter route table is not exist. TransitRouteTable不存在。
400 IncorrectStatus.TransitRouteTable The transitRouter route table is not in a valid state for the operation. 当前TransitRouteTable的状态不支持该操作,请稍后重试。
400 QuotaExceeded.AggregationRoute The aggregation route count is over limit. 聚合路由数量已达到上限。
400 InstanceNotExist.TransitRouter The aggregation route is not exist. transitRouter不存在。
400 OperationUnsupported.TransitRouterType The operation is not supported because of the wrong transitRouter type. 当前TransitRouter类型不支持该操作。
400 IncorrectStatus.TransitRouter The status of transitRouter is invalid. 当前TransitRouter的状态不支持该操作,请稍后重试。
400 OperationUnsupported.ServiceMode The operation is not supported because of the wrong transitRouter service mode. 当前转发路由器模式不支持该操作。
400 InvalidCidrBlock The cidr block is invalid. 参数中指定的cidrBlock不合法。
400 RouteConflict The specified route already exists. 输入的路由已存在。
400 InvalidOperation.InstanceNotSupportIPv6Route The cen dose not support Ipv6 route.
400 IllegalParam.TransitRouteTableAggregationCidr The param TransitRouteTableAggregationCidr is illegal.
400 InvalidParameter Invalid parameter. 参数不合法。
400 Unauthorized The AccessKeyId is unauthorized. 账号无权限操作。
400 OperationUnsupported.ModifyTransitRouteTableAggregation ModifyTransitRouteTableAggregation is unsupported. 当前不支持编辑聚合路由功能。
400 InvalidParameter.TransitRouteTableAggregationScopeList TransitRouteTableAggregationScopeList is invalid. 聚合路由的传播范围列表参数设置不合法。
400 InvalidParameter.TransitRouteTableAggregationScope TransitRouteTableAggregationScope is invalid. 聚合路由的传播范围不合法。
400 IncorrectStatus.AggregationRoute The aggregation route is not in a valid state for the operation. 聚合路由状态非法。
400 InstanceNotExist.AggregationRoute The aggregation route is not exist. 聚合路由不存在。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情