Memanggil operasi ConnectRouterInterface untuk memulai koneksi dari antarmuka router VPC peminta ke penerima.
Deskripsi operasi
Setelah Anda memanggil operasi ini, antarmuka router memasuki status Connecting dan beralih ke status Active setelah koneksi terbentuk.
Saat Anda memanggil operasi ini untuk membuat VPC, perhatikan hal-hal berikut:
Hanya antarmuka router VPC peminta dalam status Idle yang dapat memulai koneksi ke VPC 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 |
Wilayah tempat antarmuka router berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| RouterInterfaceId |
string |
Yes |
ID antarmuka router VPC 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 antarmuka router ketika berada dalam status Inactive. |
| 400 | IncorrectOppositeInterfaceInfo.NotSet | OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId must be all set. | Parameter OppositeInterfaceId, OppositeRouterId, OppositeRouterType, dan OppositeInterfaceOwnerId harus semuanya ditentukan. |
| 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. | Parameter tidak valid. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | Parameter tidak valid. |
| 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.