全部产品
Search
文档中心

Cloud Enterprise Network:AssociateTransitRouterMulticastDomain

更新时间:Dec 14, 2025

Mengaitkan vSwitch dari virtual private cloud (VPC) ke domain multicast.

Deskripsi operasi

  • Satu vSwitch hanya dapat dikaitkan dengan satu domain multicast. Pastikan vSwitch tersebut belum dikaitkan dengan domain multicast lain. Untuk informasi selengkapnya tentang cara memutuskan kaitan vSwitch dari domain multicast, lihat DisassociateTransitRouterMulticastDomain.

  • AssociateTransitRouterMulticastDomain merupakan operasi asinkron. Setelah permintaan dikirim, sistem akan mengembalikan request ID dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi ListTransitRouterMulticastDomainAssociations untuk memeriksa apakah vSwitch telah dikaitkan dengan domain multicast yang ditentukan.
    • Jika statusnya Associating, artinya vSwitch sedang dalam proses dikaitkan dengan domain multicast yang ditentukan. Anda dapat melakukan kueri terhadap vSwitch tersebut, tetapi tidak dapat melakukan operasi lain pada vSwitch tersebut.

    • Jika statusnya Associated, artinya vSwitch telah berhasil dikaitkan dengan domain multicast yang ditentukan.

  • VPC dari vSwitch tersebut harus dikaitkan dengan Router transit edisi perusahaan. Untuk informasi selengkapnya tentang cara mengaitkan VPC dengan Router transit edisi perusahaan, lihat CreateTransitRouterVpcAttachment.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cen:AssociateTransitRouterMulticastDomain

update

*TransitRouterMulticastDomain

acs:cen:*:{#accountId}:centransitroutermulticast/{#centransitroutermulticastId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ClientToken

string

No

Token client yang digunakan untuk memastikan idempotensi permintaan.

Anda dapat menghasilkan nilainya dari sisi client, tetapi pastikan nilainya unik di antara semua permintaan. Token client hanya boleh berisi karakter ASCII.

123e4567-e89b-12d3-a456-426655440000

TransitRouterMulticastDomainId

string

Yes

ID domain multicast.

tr-mcast-domain-91wpg6wbhchjeq****

TransitRouterAttachmentId

string

Yes

ID koneksi VPC.

tr-attach-g3kz2k3u76amsk****

VSwitchIds

array

Yes

ID-ID vSwitch.

string

Yes

ID vSwitch.

Anda dapat menentukan maksimal lima vSwitch dalam setiap panggilan. Satu domain multicast dapat dikaitkan dengan maksimal 10 vSwitch.

vsw-p0wxk12u6okfkr8xy****

DryRun

boolean

No

Menentukan apakah akan melakukan dry run tanpa mengirim permintaan sebenarnya. Nilai yang valid:

  • true: hanya menjalankan dry run. Sistem akan memeriksa permintaan terhadap potensi masalah, termasuk nilai parameter yang hilang, sintaksis permintaan yang salah, dan batas layanan. Jika permintaan gagal dalam dry run, kode kesalahan akan dikembalikan. Jika permintaan lolos dry run, kode kesalahan DryRunOperation akan dikembalikan.

  • false (default): menjalankan dry run dan mengirim permintaan.

false

Elemen respons

Element

Type

Description

Example

object

Tanggapan.

RequestId

string

ID permintaan.

F88AC12C-943B-50E9-A344-4F8820BB07A7

Contoh

Respons sukses

JSONformat

{
  "RequestId": "F88AC12C-943B-50E9-A344-4F8820BB07A7"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidMulticastDomain.NotFound The specified MulticastDomain is not found. The error message returned because the specified multicast domain does not exist.
400 IncorrectStatus.MulticastDomain The status of MulticastDomain is incorrect. The error message returned because the status of the specified multicast domain does not support this operation. Try again later.
400 InvalidAttachmentId.NotFound The specified AttachmentId is not found.
400 IllegalParam.AttachmentId The specified AttachmentId is illegal. The error message returned because the specified attachment ID is invalid.
400 IncorrectStatus.Attachment The status of Attachment is incorrect. The error message returned because the status of the attachment does not support this operation. Try again later.
400 MissingParam.VSwitchIds The parameter VSwitchIds is mandatory. The error message returned because the VSwitchIds parameter is not set.
400 InstanceNotExist The instance is not exist. The error message returned because the specified instance does not exist.
400 OperationUnsupported.CloudBoxVpc The specified CloudBoxVpc does not support the operation. The error message returned because the CloudBox VPC does not support this operation.
400 AssociationExist.VSwitchIds The association already exists. The error message returned because the specified resource is already associated with the vSwitch.
400 QuotaFull.VswitchPerMulticastDomain The number of vswitch associated with multicast domain has exceed the maximum value that can be created. The error message returned because the number of vSwitches associated with the multicast domain has reached the upper limit.
400 DryRunOperation Request validation has been passed with DryRun flag set. The error message returned because the dry run request passed the precheck.
400 OperationUnsupported.VpcRegion The specified Region is not support for this operation. The error message returned because this operation is not supported in the specified region.
400 OperationUnsupported.AdvancedFeature The specified vpc does not support the operation.
400 QuotaFull.MulticastDomainPerVpc The number of multicast domain that vpc associated has exceed the maximum value that can be associated. The number of multicast domain that vpc associated has exceed the maximum value that can be associated.
400 IllegalParam.VSwitchIds The parameter VSwitchIds is illegal. The parameter VSwitchIds is illegal.
400 InvalidParameter Invalid parameter. The error message returned because the parameter is set to an invalid value.
400 Unauthorized The AccessKeyId is unauthorized. The error message returned because you do not have the permissions to perform this operation.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.