為企業版轉寄路由器路由表綁定首碼列表。
介面說明
為企業版轉寄路由器路由表綁定首碼列表前,請確保滿足以下條件:
您已瞭解首碼列表的使用限制、路由相容性說明等資訊,請參見首碼列表。
您已經建立了首碼列表。具體操作,請參見 CreateVpcPrefixList 。
如果企業版轉寄路由器路由表需要綁定跨帳號的首碼列表,請確保待綁定的首碼列表已被共用給企業版轉寄路由器路由表所屬的阿里雲帳號(主帳號)。關於如何共用首碼列表資源,請參見資源共用概述和API 參考(資源共用)。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:CreateTransitRouterPrefixListAssociation |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
|
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. | 帳號無許可權操作。 |
| 404 | InvalidRouteTableId.NotFound | The specified RouteTableId is not found. | RouteTableId不存在。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。