Withdraws a VPC published routing entry.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:WithdrawVpcPublishedRouteEntries |
update |
*RouteTable
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| RegionId |
string |
No |
The list of route entries to withdraw. You can specify up to 50 route entries. |
cn-hangzhou |
| RouteEntries |
array<object> |
No |
The type of the route publish target. |
|
|
object |
No |
The list of route entries to be withdrawn. |
||
| RouteTableId |
string |
Yes |
The ID of the route table. |
vtb-bp145q7glnuzd**** |
| DestinationCidrBlock |
string |
Yes |
The destination CIDR block |
10.0.0.0/24 |
| TargetType |
string |
Yes |
The publish route entry target instance ID. |
ECR |
| TargetInstanceId |
string |
Yes |
Specifies whether to perform a dry run. Valid values:
|
ecr-dhw2xsds5**** |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Examples
Success response
JSON format
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.Vpc | The status of %s [%s] is incorrect. | The instance is in an invalid state. |
| 400 | ResourceNotFound.RouteEntry | The specified resource routeEntry is not found. | The specified route entry does not exist |
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | Route entry is in non-steady state |
| 400 | IncorrectStatus.RouteEntryPublishStatus | Route entry publish status is incorrect. | The route publish status of the route entry is incorrect. |
| 400 | Forbidden.OperateCustomRouteTable | The operation is forbidden because publish route entry in custom route table. | The operation is prohibited because it is not allowed to publish route entries in the custom route table. |
| 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. | The operation was rejected because the type of the route publication target is not currently supported. |
| 400 | IncorrectStatus.RouteTable | The route table is in an invalid state. | The specified routing table is in the wrong state |
| 400 | OperationUnsupported.PublishSystemRouteEntry | Publishing system route entry is unsupported. | Publishing system routes is not supported. |
| 400 | OperationUnsupported.UnsupportedNextHop | Unsupported nexthop type for route entry publish operation. | The next hop type of the route entry does not support publishing. |
| 400 | OperationUnsupported.PublishPrefixListRouteEntry | Publishing prefix list route entry is unsupported. | Publishing route prefix list routes is not supported. |
| 400 | MissingParam.RouteEntries | The parameter RouteEntries is missing. | Missing parameter RouteEntries |
| 400 | InvalidRouteTableId.NotFound | Specified route table does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.