All Products
Search
Document Center

Cloud Enterprise Network:AssociateTransitRouterMulticastDomain

Last Updated:Jun 10, 2026

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

Deskripsi operasi

  • Sebuah vSwitch hanya dapat dikaitkan dengan satu domain multicast. Pastikan bahwa vSwitch tidak dikaitkan dengan domain multicast lain. Untuk informasi lebih lanjut tentang cara memutuskan kaitan vSwitch dari domain multicast, lihat DisassociateTransitRouterMulticastDomain.

  • AssociateTransitRouterMulticastDomain adalah operasi asinkron. Setelah permintaan dikirim, sistem mengembalikan ID permintaan dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi ListTransitRouterMulticastDomainAssociations untuk menanyakan apakah vSwitch dikaitkan dengan domain multicast yang ditentukan.

    • Jika statusnya Associating, ini menunjukkan bahwa vSwitch sedang dikaitkan dengan domain multicast yang ditentukan. Anda dapat melakukan kueri pada vSwitch tetapi tidak dapat melakukan operasi lain pada vSwitch.

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

  • VPC dari vSwitch harus dikaitkan dengan transit router Enterprise Edition. Untuk informasi lebih lanjut tentang cara mengaitkan VPC dengan transit router Enterprise Edition, 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 klien yang digunakan untuk memastikan idempotensi permintaan.

Anda dapat menggunakan klien untuk menghasilkan nilai, tetapi Anda harus memastikan bahwa nilainya unik di antara semua permintaan. Token klien 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 vSwitch.

string

Yes

ID vSwitch.

Anda dapat menentukan paling banyak lima vSwitch dalam setiap panggilan. Sebuah domain multicast dapat dikaitkan dengan paling banyak 10 vSwitch.

vsw-p0wxk12u6okfkr8xy****

DryRun

boolean

No

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

  • true: hanya melakukan dry run. Sistem memeriksa permintaan untuk potensi masalah, termasuk nilai parameter yang hilang, sintaks permintaan yang salah, dan batas layanan. Jika permintaan gagal dalam dry run, kode kesalahan akan dikembalikan. Jika permintaan lulus dry run, kode kesalahan DryRunOperation akan dikembalikan.

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

false

Elemen respons

Element

Type

Description

Example

object

Respons.

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.