調用DeleteRouteTable介面刪除自訂路由表。
介面說明
- DeleteRouteTable 介面屬於非同步介面,即系統會返回一個請求 ID,但該自訂路由表尚未刪除成功,系統背景刪除任務仍在進行。您可以調用 DescribeRouteTableList 查詢自訂路由表的刪除狀態:
當自訂路由表處於 Deleting 狀態時,表示自訂路由表正在刪除中。
當查詢不到指定的自訂路由表時,表示自訂路由表刪除成功。
DeleteRouteTable 介面不支援在同一個 VPC 中並發刪除自訂路由表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
自訂路由表所屬的 VPC 的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| RouteTableId |
string |
是 |
自訂路由表 ID。 |
vtb-bp145q7glnuzdvzu2**** |
| RegionId |
string |
是 |
自訂路由表所屬的 VPC 的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
DC668356-BCB4-42FD-9BC3-FA2B2E04B634 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "DC668356-BCB4-42FD-9BC3-FA2B2E04B634"
}
異常返回樣本
JSON格式
{
"RequestId": "62172DD5-6BAC-45DF-8D44-xxxxxxxx"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationDenied.GatewayAssociated | You cannot delete the specified route table because it still associates with gateway. | 無法刪除指定的路由表,因為路由表綁定了網關 |
| 400 | MissingParam.RouteTableId | The param of RouteTableId is missing. | |
| 400 | IncorrectRouteTableType | Route table can be deleted by this action only when it's type is custom. | |
| 400 | IncorrectVSwitchStatus | The current virtual switch status does not support this operation. | 該vSwitch處於pending狀態,無法刪除。 |
| 400 | IncorrectRouteTableStatus.RouteEntryExist | You cannot delete the specified route table because it still has custom route entry. | 無法刪除指定的路由表,因為表中仍然存在使用者自訂路由條目。 |
| 400 | IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | CBN目前狀態不正確 |
| 400 | InvalidRegionId.NotFound | Specified value of RegionId is not supported. | |
| 400 | InvalidParameter.Action | This vpc feature is not supported in this region | |
| 400 | IncorrectRouteTableStatus | The current status of the route table does not support this operation. | 當前路由表的狀態不支援刪除操作 |
| 400 | DependencyViolation.RouteEntry | Vpc route table has route entry. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。