全部产品
Search
文档中心

Cloud Enterprise Network:CreateTransitRouterMulticastDomain

更新时间:Dec 14, 2025

Domain multicast menentukan cakupan jaringan multicast dalam suatu wilayah. Hanya sumber daya di dalam domain multicast yang dapat mengirim dan menerima lalu lintas multicast. Anda dapat memanggil operasi CreateTransitRouterMulticastDomain untuk membuat domain multicast.

Deskripsi operasi

Sebelum memanggil operasi ini, perhatikan hal-hal berikut:

  • Pastikan Anda telah membuat Enterprise Edition transit router di wilayah tempat Anda ingin membuat jaringan multicast dan telah mengaktifkan fitur multicast untuk transit router tersebut. Untuk informasi selengkapnya, lihat CreateTransitRouter.

    Jika Anda membuat Enterprise Edition transit router sebelum meminta sumber daya multicast, Anda tidak dapat mengaktifkan fitur multicast untuk transit router tersebut. Dalam hal ini, Anda harus menghapus Enterprise Edition transit router yang ada dan membuat yang baru. Untuk informasi selengkapnya tentang cara menghapus Enterprise Edition transit router, lihat DeleteTransitRouter.

  • Saat memanggil operasi CreateTransitRouterMulticastDomain, jika Anda menentukan CenId dan RegionId, Anda tidak perlu menentukan TransitRouterId. Sebaliknya, jika Anda menentukan TransitRouterId, Anda tidak perlu menentukan CenId atau RegionId.

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

create

TransitRouter

acs:cen:*:{#accountId}:centransitrouter/{#centransitrouterId}

*TransitRouterMulticastDomain

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

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ClientToken

string

No

Token client yang digunakan untuk memastikan idempotensi permintaan.

Hasilkan token pada client Anda untuk memastikan token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII.

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

CenId

string

No

ID instans Cloud Enterprise Network (CEN).

cen-a7syd349kne38g****

TransitRouterId

string

No

ID transit router.

tr-p0wr9p28r92d598y6****

RegionId

string

No

ID wilayah tempat transit router ditempatkan.

Panggil operasi DescribeChildInstanceRegions untuk mendapatkan ID wilayah.

cn-hangzhou

TransitRouterMulticastDomainName

string

No

Nama domain multicast.

Nama dapat kosong atau terdiri dari 1 hingga 128 karakter, dan tidak boleh diawali dengan `http://` atau `https://`.

nametest

TransitRouterMulticastDomainDescription

string

No

Deskripsi domain multicast.

Deskripsi dapat kosong atau terdiri dari 1 hingga 256 karakter, dan tidak boleh diawali dengan `http://` atau `https://`.

desctest

DryRun

boolean

No

Menentukan apakah akan melakukan dry run. Nilai yang valid:

  • true: melakukan dry run. Sistem memeriksa parameter yang diperlukan, format permintaan, dan batas layanan. Jika permintaan gagal dalam dry run, pesan kesalahan akan dikembalikan. Jika permintaan lolos dry run, kode kesalahan DryRunOperation akan dikembalikan.

  • false (default): mengirim permintaan normal. Setelah permintaan lolos pemeriksaan, domain multicast akan dibuat.

false

Tag

array<object>

No

Tag.

Anda dapat menentukan hingga 20 tag dalam setiap panggilan.

object

No

Key

string

No

Kunci tag.

Kunci tag tidak boleh berupa string kosong. Panjang kunci tag maksimal 64 karakter dan tidak boleh diawali dengan aliyun atau acs:. Kunci tag juga tidak boleh mengandung http:// atau https:// .

Anda dapat menentukan hingga 20 kunci tag.

TagKey

Value

string

No

Nilai tag.

Nilai tag dapat berupa string kosong atau string dengan panjang maksimal 128 karakter. Nilai tag tidak boleh diawali dengan aliyun atau acs: dan tidak boleh mengandung http:// atau https:// .

Setiap kunci tag harus memiliki nilai tag yang unik. Anda dapat menentukan hingga 20 nilai tag.

TagValue

Options

object

No

Opsi domain multicast.

Igmpv2Support

string

No

Menentukan apakah akan mengaktifkan fitur Internet Group Management Protocol (IGMP) untuk domain multicast. Setelah IGMP diaktifkan, host dapat secara dinamis bergabung atau keluar dari grup multicast menggunakan IGMP. Nilai yang valid:

  • enable: mengaktifkan fitur IGMP.

  • disable (default): menonaktifkan fitur IGMP.

Catatan
  • Fitur IGMP sedang dalam pratinjau publik. Untuk menggunakan fitur ini, hubungi manajer akun Anda untuk meminta izin.

  • Setelah fitur IGMP diaktifkan, Anda tidak dapat menonaktifkannya.

enable

Elemen respons

Element

Type

Description

Example

object

Parameter respons.

TransitRouterMulticastDomainId

string

ID domain multicast.

tr-mcast-domain-40cwj0rgzgdtam****

RequestId

string

ID permintaan.

94E19C6F-206F-5223-9A63-64B85851BC04

Contoh

Respons sukses

JSONformat

{
  "TransitRouterMulticastDomainId": "tr-mcast-domain-40cwj0rgzgdtam****",
  "RequestId": "94E19C6F-206F-5223-9A63-64B85851BC04"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidTransitRouterId.NotFound The specified TransitRouterId is not found. The error message returned because the specified transit router ID (TransitRouterId) does not exist.
400 IllegalParam.TransitRouterId The specified TransitRouterId is illegal. The error message returned because the specified transit router ID is invalid.
400 IllegalParam.CenId The specified CenId is illegal. The error message returned because the specified CEN instance ID is invalid.
400 IllegalParam.RegionId The specified RegionId is illegal. The error message returned because the specified region is invalid.
400 InvalidCenId.NotFound The specified CenId is not found. The error message returned because the specified CEN instance ID does not exist.
400 InvalidOperation.TransitRouterNotExist Operation is invalid because the transit router not exist. The error message returned because the specified transit router does not exist.
400 InvalidOperation.CENInstanceStatus The CEN instance is not in a valid state for the operation.
400 IncorrectStatus.TransitRouterInstance The status of TransitRouter is incorrect. The error message returned because the transit router is in an invalid state.
400 OperationUnsupported.TransitRouterType The specified TransitRouterType does not support the operation. The error message returned because this operation is not supported by the specified type of transit router.
400 OperationUnsupported.ServiceMode The specified ServiceMode does not support the operation. The error message returned because the transit router mode does not support this operation.
400 OperationUnsupported.TransitRouterSupportMulticast The specified TransitRouterSupportMulticast does not support the operation.
400 OperationUnsupported.RegionId The specified RegionId does not support the operation. The error message returned because this operation is not supported in the specified region.
400 IncorrectStatus.Cen The status of Cen is incorrect. The error message returned because the status of the specified CEN instance does not support this operation. Try again later.
400 IncorrectStatus.TransitRouter The status of TransitRouter is incorrect. The error message returned because the status of the transit router does not support this operation. Try again later.
400 DryRunOperation Request validation has been passed with DryRun flag set. The error message returned because the dry run request passed the precheck.
400 QuotaExceeded.MulticastDomain The MulticastDomain quota is exceeded. The error message returned because the number of multicast domains has reached the upper limit. You cannot add more multicast domains.
400 IllegalParam.Igmpv2Support The specified Igmpv2Support is illegal. Valid values are [enable, disable]. The parameter Igmpv2Support is invalid. Value range: enable, disable.
400 OperationUnsupported.Igmpv2Support The current UID does not allow the creation of a igmpv2 multicast domain. Please submit a ticket. The current UID does not allow the creation of a multicast domain of the igmpv2 type. Please submit a ticket.
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.