Disassociates a gateway endpoint from a route table.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DissociateRouteTablesFromVpcGatewayEndpoint | The operation that you want to perform. Set the value to DissociateRouteTablesFromVpcGatewayEndpoint. |
EndpointId | String | Yes | vpce-m5e371h5clm3uadih**** | The ID of the gateway endpoint to be disassociated from the route table. |
RegionId | String | Yes | cn-hangzhou | The region ID of the gateway endpoint. You can call the DescribeRegions operation to query the most recent region list. |
RouteTableIds.N | RepeatList | Yes | vtb-m5elgtm3aj586iitr**** | The ID of the route table. Valid values of N are 1 to 20, which specifies that you can disassociate a gateway endpoint from at most 20 route tables at a time. |
ClientToken | String | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 | The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters and cannot exceed 64 characters in length. Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request. |
DryRun | Boolean | No | false | Specifies whether to precheck this request. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DissociateRouteTablesFromVpcGatewayEndpoint
&EndpointId=vpce-m5e371h5clm3uadih****
&RegionId=cn-hangzhou
&RouteTableIds.1=vtb-m5elgtm3aj586iitr****
&<Common request parameters>
Sample success responses
XML
format
<DissociateRouteTablesFromVpcGatewayEndpointResponse>
<RequestId>59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E</RequestId>
</DissociateRouteTablesFromVpcGatewayEndpointResponse>
JSON
format
{
"RequestId": "59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | Forbbiden | User not authorized to operate on the specified resource. | The error message returned because you are unauthorized to perform the operation on the specified resource. Apply for the required permissions and try again. |
400 | InvalidRegionId.NotFound | The regionId provided does not exist in our records. | The error message returned because the specified region ID does not exist. Check whether the region ID is valid. |
For a list of error codes, visit the API Error Center.