All Products
Search
Document Center

Cloud Enterprise Network:ListTransitRouterMulticastDomainAssociations

Last Updated:Jun 10, 2026

Anda dapat memanggil operasi ListTransitRouterMulticastDomainAssociations untuk mengkueri asosiasi antara domain multicast dan vSwitch.

Deskripsi operasi

  • When you call this operation, you must specify either the TransitRouterMulticastDomainId or TransitRouterAttachmentId request parameter. If you specify TransitRouterAttachmentId, the system queries the vSwitches that are associated with the multicast domain in the VPC. If you specify TransitRouterMulticastDomainId, the system queries the vSwitches that are associated with the specified multicast domain.

  • When you call the ListTransitRouterMulticastDomainAssociations operation, you must provide valid parameter values. If you provide an invalid parameter, the system returns a RequestId but does not return the association between the multicast domain and the vSwitch.

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:ListTransitRouterMulticastDomainAssociations

get

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

Hasilkan token dari Klien Anda untuk memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Parameter ClientToken hanya boleh berisi karakter ASCII.

123e4567-e89b-12d3-a456-4266****

TransitRouterMulticastDomainId

string

No

ID domain multicast.

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

TransitRouterAttachmentId

string

No

ID koneksi instans jaringan.

tr-attach-p90y3ymbbwuvy5****

VSwitchIds

array

No

Daftar ID vSwitch.

string

No

The vSwitch ID.

You can specify up to 20 vSwitch IDs.

vsw-p0w9s2ig1jnwgrbzl****

ResourceType

string

No

Tipe Sumber daya yang diasosiasikan dengan domain multicast.

Nilainya adalah VPC.

VPC

ResourceId

string

No

ID Sumber daya yang diasosiasikan dengan domain multicast.

vpc-p0w9alkte4w2htrqe****

MaxResults

integer

No

Jumlah entri yang akan dikembalikan pada setiap halaman. Nilai default: 20.

20

NextToken

string

No

Token yang menentukan titik awal kueri berikutnya. Nilai valid:

  • Jika ini adalah kueri pertama Anda dan tidak ada kueri berikutnya yang akan dikirim, abaikan parameter ini.

  • Jika kueri berikutnya akan dikirim, atur nilainya ke nilai NextToken yang dikembalikan dari panggilan API terakhir.

FFmyTO70tTpLG6I3FmYAXGKPd****

Elemen respons

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

1CD0969B-A605-5D2D-BFF0-699FD182FB7F

TotalCount

integer

The total number of entries returned.

1

MaxResults

integer

The number of entries returned per page.

20

NextToken

string

The token for the next query. Valid values:

  • If NextToken is empty, it indicates that no next query is to be sent.

  • If a value is returned for NextToken, the value is the token that is used for the next query.

FFmyTO70tTpLG6I3FmYAXGKPd****

TransitRouterMulticastAssociations

array<object>

The list of associations.

object

The information about the association.

TransitRouterMulticastDomainId

string

The ID of the multicast domain.

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

TransitRouterAttachmentId

string

The ID of the network instance connection.

tr-attach-p90y3ymbbwuvy5****

VSwitchId

string

The ID of the vSwitch.

vsw-p0wxk12u6okfkr8xy****

Status

string

The association status.

  • Associated: The resource is associated with the multicast domain.

  • Associating: The resource is being associated with the multicast domain.

  • Dissociating: The resource is being dissociated from the multicast domain.

Dissociating

ResourceType

string

The type of resource associated with the multicast domain.

The value is VPC.

VPC

ResourceOwnerId

integer

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

1210123456123456

ResourceId

string

The ID of the resource associated with the multicast domain.

vpc-p0w9b7g9l90yofr0n****

Contoh

Respons sukses

JSONformat

{
  "RequestId": "1CD0969B-A605-5D2D-BFF0-699FD182FB7F",
  "TotalCount": 1,
  "MaxResults": 20,
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "TransitRouterMulticastAssociations": [
    {
      "TransitRouterMulticastDomainId": "tr-mcast-domain-91wpg6wbhchjeq****",
      "TransitRouterAttachmentId": "tr-attach-p90y3ymbbwuvy5****",
      "VSwitchId": "vsw-p0wxk12u6okfkr8xy****",
      "Status": "Dissociating",
      "ResourceType": "VPC",
      "ResourceOwnerId": 1210123456123456,
      "ResourceId": "vpc-p0w9b7g9l90yofr0n****"
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IllegalParam.NextToken The specified NextToken is illegal. The error message returned because the NextToken parameter is set to an invalid value.
400 IllegalParam.TransitRouterMulticastDomainId The specified TransitRouterMulticastDomainId is illegal. The error message returned because the specified multicast domain ID specified for the transit router (TransitRouterMulticastDomainId) is invalid.
400 IllegalParam.MaxResults The specified MaxResults is illegal. MaxResults 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.