全部產品
Search
文件中心

Cloud Enterprise Network:ModifyTransitRouteTableAggregation

更新時間:Sep 02, 2026

編輯彙總路由。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

cen:ModifyTransitRouteTableAggregation

create

*All Resource

*

無 無

請求參數

名稱

類型

必填

描述

樣本值

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. 目前 TR 的狀態不支援此操作,請稍後重試。
400 OperationUnsupported.ServiceMode The operation is not supported because of the wrong transitRouter service mode. 目前轉發路由器模式不支援此操作。
400 InvalidCidrBlock The cidr block is invalid. 參數 TransitRouteTableAggregationCidr 無效。
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. 聚合路由不存在。
400 InvalidParameter.TransitRouteTableId The specified parameter TransitRouteTableId is invalid. 輸入的參數 TransitRouteTableId 不合法。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。