Initiates a connection from the router interface of an initiator to the router interface of an accepter.
Operation description
After you call this operation, the router interface enters the Connecting state. When the connection is established, it enters the Active state.
When you call this operation, take note of the following items:
- Only an initiator router interface in the Idle state can initiate a connection.
- You can create only one pair of connected router interfaces between two routers.
- You cannot initiate a connection if your Alibaba Cloud account has a router interface with overdue payments.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:ConnectRouterInterface | update | *RouterInterface acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the router interface is deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
RouterInterfaceId | string | Yes | The ID of the initiator router interface. | ri-2zeo3xzyf38r4urzd**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IncorrectRole.NotInitiatingSide | The specified RouterInterface is not InitiatingSide. | The specified router interface is not an initiator. Select an initiator router interface. |
400 | IncorrectRIStatus | RouterInterface can be operated by this action only when it's status is Idle. | You can perform the operation only when the router interface is in the Idle state. |
400 | IncorrectOppositeInterfaceInfo.NotSet | OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId must be all set. | You must specify OppositeInterfaceId, OppositeRouterId, OppositeRouterType, and OppositeInterfaceOwnerId. |
400 | IncorrectOppositeInterfaceInfo | Cannot connect on the same router | You are not allowed to connect to the same router. |
400 | IncorrectOppositeInterfaceInfo | The opposite RouterInterface information specified by OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId is wrong. Maybe the RouterInterface or Router does not exist, or the parameters mismatched, or that RouterInterface is not a AcceptingSide. | - |
400 | Forbidden.OnlyOneConnection | The Specified routers have a connection already | The router is already connected to a router interface. |
400 | Forbidden.OnlyOneConnection | Cannot connect concurrently between same routers | You cannot initiate a connection on the same router. |
400 | Forbidden.BillsOutstanding | You cannot use this action because you have bills outstanding. | You have uncompleted payments and cannot call this operation. |
400 | InvalidAccount.NotFound | The specified account is not exists. | - |
400 | ErrCode.Invalid | got error | - |
400 | AttrMismatching.AcceptingSideRole | %s | - |
400 | AttrMismatching.AcceptingSideInstanceId | %s | - |
400 | AttrMismatching.AcceptingSideRegionNo | %s | - |
400 | AttrMismatching.AcceptingSideRouterId | %s | - |
400 | AttrMismatching.AcceptingSideRouterType | %s | - |
400 | AttrMismatching.AcceptingSideAliUid | %s | - |
400 | AttrMismatching.AcceptingSideOppositeInterfaceOwnerId | %s | - |
400 | AttrMismatching.AcceptingSideOppositeRegionNo | %s | - |
400 | AttrMismatching.AcceptingSideOppositeInterfaceId | %s | - |
400 | AttrMismatching.AcceptingSideOppositeRouterId | %s | - |
400 | AttrMismatching.AcceptingSideOppositeRouterType | %s | - |
400 | IllegalParam.InstanceOwner | The router instance owener error. | - |
404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | The RegionId parameter is set to an invalid value. Specify a valid value and try again. |
404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our record. | The specified router interface does not exist. |
404 | CROSS_BID.FORBIDDEN | Connect RouterInterface across bid is illegal | The cross-BID connection is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-21 | API Description Update. The API operation is not deprecated.. The Error code has changed | View Change Details |
2023-07-21 | The Error code has changed | View Change Details |