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