Deletes a cross-region connection for an Enterprise Edition transit router.
Prerequisites
Before you delete a cross-region connection, make sure that the following requirements are met:
- No associated forwarding correlation is established between the cross-region connection and the route tables of the Enterprise Edition transit router. For more information about how to delete an associated forwarding correlation, see DissociateTransitRouterAttachmentFromRouteTable.
- No route learning correlation is established between the cross-region connection and the route tables of the Enterprise Edition transit router. For more information about how to delete a route learning correlation, see DisableTransitRouterRouteTablePropagation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | DeleteTransitRouterPeerAttachment |
The operation that you want to perform. Set the value to DeleteTransitRouterPeerAttachment. |
TransitRouterAttachmentId | String | Yes | tr-attach-gyjhtx9sjsxhm6**** |
The ID of the cross-region connection. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-001**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate a token, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
DryRun | Boolean | No | false |
Specifies whether to only precheck the request. Check items include permissions and the status of the specified instances. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A01FEDD7-7D69-4EB3-996D-CF79F6F885CA |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteTransitRouterPeerAttachment
&TransitRouterAttachmentId=tr-attach-gyjhtx9sjsxhm6****
&<Common request parameters>
Sample success responses
XML
format
<DeleteTransitRouterPeerAttachmentResponse>
<RequestId>A01FEDD7-7D69-4EB3-996D-CF79F6F885CA</RequestId>
</DeleteTransitRouterPeerAttachmentResponse>
JSON
format
{
"RequestId": "A01FEDD7-7D69-4EB3-996D-CF79F6F885CA"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | OperationFailed.RouteEntryExist | Operation failed because the TransitRouterAttachment exists in RouteTable. | The error message returned because you cannot perform the operation when the specified cross-region connection is specified as the next hop of one or more routes in the route table. |
400 | OperationFailed.RouteTableAssociationExist | Operation failed because TransitRouterRouteTable exists | The error message returned because you cannot perform the operation when an associated forwarding correlation is configured. |
For a list of error codes, visit the API Error Center.