Memulai koneksi dari antarmuka router peminta ke antarmuka router penerima.
Deskripsi operasi
Setelah Anda memanggil operasi ini, antarmuka router memasuki status Connecting. Setelah koneksi terbentuk, antarmuka router memasuki status Active.
Saat Anda memanggil operasi ini untuk membuat VPC, perhatikan hal berikut:
Hanya antarmuka router peminta dalam status Idle yang dapat memulai koneksi ke antarmuka router penerima.
Maksimal satu pasang antarmuka router yang saling terhubung dapat ada di antara dua router mana pun.
Jika akun Anda memiliki antarmuka router dengan pembayaran tertunda, Anda tidak dapat memulai koneksi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ConnectRouterInterface |
update |
*RouterInterface
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah antarmuka router. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| RouterInterfaceId |
string |
Yes |
ID antarmuka router peminta. |
ri-2zeo3xzyf38r4urzd**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectRole.NotInitiatingSide | The specified RouterInterface is not InitiatingSide. | |
| 400 | IncorrectRIStatus | RouterInterface can be operated by this action only when it's status is Idle. | Operasi ini hanya dapat dilakukan pada entri rute ketika statusnya Active. |
| 400 | IncorrectOppositeInterfaceInfo.NotSet | OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId must be all set. | Anda harus menentukan keempat parameter: OppositeInterfaceId, OppositeRouterId, OppositeRouterType, dan OppositeRouterOwnerId. |
| 400 | IncorrectOppositeInterfaceInfo | Cannot connect on the same router | |
| 400 | Forbidden.OnlyOneConnection | The Specified routers have a connection already | |
| 400 | Forbidden.BillsOutstanding | You cannot use this action because you have bills outstanding. | |
| 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. | |
| 400 | InvalidRegionId.NotFound | The specified RegionId does not exist. | RegionId yang ditentukan tidak ada. Periksa apakah layanan ini tersedia di wilayah yang ditentukan. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our record. | |
| 404 | CROSS_BID.FORBIDDEN | Connect RouterInterface across bid is illegal |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.