發佈 VPC 路由至外部元件。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:PublishVpcRouteEntries |
update |
*RouteTable
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
執行個體所在的地域 ID。您可以透過呼叫 DescribeRegions 介面取得地域 ID。 |
cn-hangzhou |
| RegionId |
string |
否 |
需要發佈的路由項目資訊清單,最多支援傳入 50 條路由。 |
cn-hangzhou |
| RouteEntries |
array<object> |
否 |
路由發佈目標的類型。 |
|
|
object |
否 |
需要發布的路由條目資訊列表。 |
||
| RouteTableId |
string |
是 |
路由條目的路由表 ID。 |
vtb-2ze3jgygk9bmsj23s**** |
| DestinationCidrBlock |
string |
是 |
路由條目的目標網段。 |
121.41.165.123/32 |
| TargetType |
string |
是 |
路由發佈目標執行個體 ID。 |
ECR |
| TargetInstanceId |
string |
是 |
是否僅預檢此次請求。取值:
|
ecr-dhw2xsds5**** |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
false |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
980960B0-2969-40BF-8542-EBB34FD358AB |
樣本
正常返回樣本
JSON格式
{
"RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IncorrectStatus.Vpc | The status of %s [%s] is incorrect. | 指定的 VPC 未處於穩態。 |
| 400 | ResourceNotFound.RouteEntry | The specified resource routeEntry is not found. | 指定的路由條目不存在。 |
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | 路由項目處於非穩態。 |
| 400 | Forbidden.OperateCustomRouteTable | The operation is forbidden because publish route entry in custom route table. | 操作被禁止,因為不允許發佈自訂路由表中的路由條目。 |
| 400 | IncorrectStatus.RouteEntryPublishStatus | Route entry publish status is incorrect. | 路由項目的路由發佈狀態不正確。 |
| 400 | ResourceNotAssociated.TargetInstance | The target instance is not associated with vpc. | |
| 400 | OperationDenied.UnsupportedTargetType | The operation is not allowed because the target type is not supported. | 操作被拒絕,因為路由發佈目標的類型目前不支援。 |
| 400 | IncorrectStatus.RouteTable | The route table is in an invalid state. | 指定的路由表狀態不對。 |
| 400 | OperationUnsupported.PublishSystemRouteEntry | Publishing system route entry is unsupported. | 不支援發佈系統路由操作。 |
| 400 | OperationUnsupported.UnsupportedNextHop | Unsupported nexthop type for route entry publish operation. | 路由項目的下一跳類型不支援發佈。 |
| 400 | OperationUnsupported.PublishPrefixListRouteEntry | Publishing prefix list route entry is unsupported. | 不支援發佈路由前綴清單路由操作。 |
| 400 | InvalidRouteTableId.NotFound | Specified route table does not exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。