All Products
Search
Document Center

Virtual Private Cloud:ConnectRouterInterface

Last Updated:Jun 12, 2026

Memanggil operasi ConnectRouterInterface untuk memulai koneksi dari antarmuka router inisiator ke akseptor.

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-hal berikut:

  • Hanya antarmuka router inisiator yang berada dalam status Idle yang dapat memulai koneksi ke akseptor.

  • Hanya satu pasang antarmuka router yang dapat saling terhubung di antara dua router mana pun.

  • Jika akun Anda memiliki antarmuka router dengan pembayaran tertunda, Anda tidak dapat memulai koneksi.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

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 inisiator.

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.
400 IncorrectOppositeInterfaceInfo.NotSet OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId must be all set.
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.
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.