すべてのプロダクト
Search
ドキュメントセンター

Cloud Enterprise Network:AssociateTransitRouterMulticastDomain

最終更新日:Jun 10, 2026

仮想プライベートクラウド (VPC) の vSwitch をマルチキャストドメインに関連付けます。

操作説明

  • A vSwitch can be associated with only one multicast domain. Make sure that the vSwitch is not associated with other multicast domains. For more information about how to disassociate a vSwitch from a multicast domain, see DisassociateTransitRouterMulticastDomain.

  • AssociateTransitRouterMulticastDomain is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the ListTransitRouterMulticastDomainAssociations operation to query whether a vSwitch is associated with the specified multicast domain.

    • If the status is Associating, it indicates that the vSwitch is being associated with the specified multicast domain. You can query the vSwitch but cannot perform other operations on the vSwitch.

    • If the status is Associated, the vSwitch is associated with the specified multicast domain.

  • The VPC of the vSwitch must be associated with an Enterprise Edition transit router. For more information about how to associate a VPC with an Enterprise Edition transit router, see CreateTransitRouterVpcAttachment.

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

cen:AssociateTransitRouterMulticastDomain

update

*TransitRouterMulticastDomain

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

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

ClientToken

string

任意

リクエストのべき等性を保証するために使用されるクライアントトークン。

クライアントを使用して値を生成できますが、すべてのリクエスト間で一意であることを確認する必要があります。クライアントトークンには ASCII 文字のみを含めることができます。

123e4567-e89b-12d3-a456-426655440000

TransitRouterMulticastDomainId

string

必須

マルチキャストドメインの ID。

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

TransitRouterAttachmentId

string

必須

VPC 接続の ID。

tr-attach-g3kz2k3u76amsk****

VSwitchIds

array

必須

vSwitch の ID。

string

必須

The vSwitch IDs.

You can specify at most five vSwitches in each call. A multicast domain can be associated with at most 10 vSwitches.

vsw-p0wxk12u6okfkr8xy****

DryRun

boolean

任意

実際のリクエストを送信せずにドライランを実行するかどうかを指定します。有効な値:

  • true: ドライランのみを実行します。システムは、パラメーター値の欠落、不正なリクエスト構文、サービス制限など、リクエストに潜在的な問題がないかをチェックします。リクエストがドライランに失敗した場合、エラーコードが返されます。リクエストがドライランに合格した場合、DryRunOperation エラーコードが返されます。

  • false (デフォルト): ドライランを実行し、リクエストを送信します。

false

レスポンスフィールド

フィールド

説明

object

The response.

RequestId

string

The ID of the request.

F88AC12C-943B-50E9-A344-4F8820BB07A7

成功レスポンス

JSONJSON

{
  "RequestId": "F88AC12C-943B-50E9-A344-4F8820BB07A7"
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

400 InvalidMulticastDomain.NotFound The specified MulticastDomain is not found.
400 IncorrectStatus.MulticastDomain The status of MulticastDomain is incorrect.
400 InvalidAttachmentId.NotFound The specified AttachmentId is not found.
400 IllegalParam.AttachmentId The specified AttachmentId is illegal.
400 IncorrectStatus.Attachment The status of Attachment is incorrect.
400 MissingParam.VSwitchIds The parameter VSwitchIds is mandatory.
400 InstanceNotExist The instance is not exist.
400 OperationUnsupported.CloudBoxVpc The specified CloudBoxVpc does not support the operation.
400 AssociationExist.VSwitchIds The association already exists.
400 QuotaFull.VswitchPerMulticastDomain The number of vswitch associated with multicast domain has exceed the maximum value that can be created.
400 DryRunOperation Request validation has been passed with DryRun flag set.
400 OperationUnsupported.VpcRegion The specified Region is not support for this operation.
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.
400 IllegalParam.VSwitchIds The parameter VSwitchIds is illegal.
400 InvalidParameter Invalid parameter.
400 Unauthorized The AccessKeyId is unauthorized.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。