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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateTransitRouterMulticastDomain |
create |
TransitRouter
*TransitRouterMulticastDomain
|
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:
|
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 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 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:
Catatan
|
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.