為企業版轉發路由器路由表綁定前綴清單。
介面說明
為企業版轉發路由器路由表綁定前綴清單前,請確保滿足以下條件:
您已了解前綴清單的使用限制、路由相容性說明等資訊,請參見前綴清單。
您已經建立了前綴清單。具體操作,請參見 CreateVpcPrefixList 。
如果企業版轉發路由器路由表需要綁定跨帳號的前綴清單,請確保待綁定的前綴清單已被共用給企業版轉發路由器路由表所屬的阿里雲帳號(主帳號)。關於如何共用前綴清單資源,請參見資源共用概述和API 參考(資源共用)。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:CreateTransitRouterPrefixListAssociation |
create |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的冪等性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 識別碼。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-4266**** |
| RegionId |
string |
是 |
轉發路由器執行個體所屬的地域 ID。 您可以透過呼叫 DescribeChildInstanceRegions 介面取得地域 ID。 |
cn-hangzhou |
| TransitRouterId |
string |
是 |
轉發路由器執行個體 ID。 |
tr-6ehx7q2jze8ch5ji0**** |
| NextHopType |
string |
否 |
下一跳類型。取值:
|
VPC |
| PrefixListId |
string |
是 |
前綴清單 ID。 |
pl-6ehtn5kqxgeyy08fi**** |
| TransitRouterTableId |
string |
是 |
轉發路由器路由表 ID。 |
vtb-6ehgc262hr170qgyc**** |
| NextHop |
string |
是 |
下一跳連線 ID。 如果要使前綴清單下的網段均為黑洞路由,本參數需輸入 BlackHole。 |
tr-attach-flbq507rg2ckrj**** |
| OwnerUid |
integer |
否 |
前綴清單所屬的阿里雲帳號(主帳號)ID。 |
1210123456123456 |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
說明
本參數當前不生效。 |
false |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermission.AliyunServiceRolePolicyForCEN | You are not authorized to create the service linked role. Role Name: AliyunServiceRolePolicyForCEN. Service Name: cen.aliyuncs.com. Make sure that the user has been granted the ram:CreateServiceLinkedRole permission. | 您沒有權限建立服務連結角色,角色名稱:AliyunServiceRolePolicyForCEN,服務名稱:cen.aliyuncs.com。請確保已授予目前使用者 ram:CreateServiceLinkedRole 權限。 |
| 400 | ResourceNotSupport.CCN | CCN not support prefix list. | CCN 不支援 prefix list。 |
| 400 | ResourceNotFound.PrefixlistCidrs | Can not find any cidr of specified prefix list. | prefix list 不存在 cidr。 |
| 400 | ResourceNotFound.Nexthop | The specified nexthop instance is not exsit. | 參數中指定的 nexthop 不存在。 |
| 400 | ResourceExisted.PrefixlistAssociation | The prefix list has been already associated with this route table. | prefix list 已與路由表綁定。 |
| 400 | ResourceNotFound.PrefixlistAssociation | The prefix list is not associated with this route table. | |
| 400 | ResourceConflict.Route | Some of the prefixes of the prefix list are conflicted with exsited routes. | |
| 400 | MultipleFound.PrefixlistAssociation | multiple same prefix association record found. | 系統異常,系統中存在多筆相同的記錄。 |
| 400 | QuotaReached.Route | The quota of the route table is not enough for the request prefix list. | |
| 400 | InvalidStatus.PrefixlistAssociation | The prefix list association is not in a valid state for the operation. | 目前 PrefixlistAssociation 狀態不支援此操作,請稍後重試。 |
| 400 | NotSupport.TrType | The basic tr type is not support for this operation. | 基礎版轉發路由器不支援此操作。 |
| 400 | InvalidValue.PrefixlistCidr | Invalid cidr exist in the specified prefixlist. | prefixlist 中存在不合法的 CIDR。 |
| 400 | ResourceNotSupport.Nexthop | The specified nexthop instance type is not support for the operation. | 參數中指定的 nexthop 不支援該操作。 |
| 400 | ResourceMismatch.Nexthop | The specified nexthop and nexthop type mismatched. | 參數中指定的 nexthop 或 nexthopType 有誤。 |
| 400 | ResourceNotFound.PrefixList | The specified prefixlist does not found. | 參數中指定的 prefixlist 不存在。 |
| 400 | OperationDenied.SystemPrefixList | SystemPrefixList can not be operated. | SystemPrefixList 不允許操作。 |
| 400 | OperationFailed.OperateShareResource | Operate share prefixlist failed. | 共用 prefixlist 失敗。 |
| 400 | InvalidStatus.Prefixlist | Prefixlist is not in a operate status. | 目前 Prefixlist 狀態不支援此操作。 |
| 400 | RegionNotSupport.Prefixlist | Prefixlist association are not supported in this region. | 目前地域不支援此功能。 |
| 400 | OperationFailed.TransitRouterNotExist | Operation failed because transit router not exist. | 轉發路由器不存在。 |
| 400 | IncorrectStatus.RouteTable | RouteTable status is invalid. | 當前操作涉及的路由表狀態不是穩態,無法操作。 |
| 400 | IllegalParam.TransitRouterTableId | The specified Route Table ID is invalid. | 路由表 ID 不合法。 |
| 400 | OperationDenied.ECSPrefixList | Associate ECS PrefixList is not supported. | 不支援關聯 ECS 前綴清單。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無權限操作。 |
| 400 | InvalidParameter.TransitRouterTableId | The specified parameter TransitRouterTableId is invalid. | 輸入的參數 TransitRouterTableId 不合法。 |
| 400 | InvalidParameter.NextHop | The specified parameter NextHop is invalid. | 輸入的參數 NextHop 不合法。 |
| 400 | InvalidParameter.TransitRouterId | The specified parameter TransitRouterId is invalid. | 輸入的參數 TransitRouterId 不合法。 |
| 404 | InvalidRouteTableId.NotFound | The specified RouteTableId is not found. | RouteTableId 不存在。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。