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