Queries whether vSwitches in VPCs are associated with a specified multicast domain.
Usage notes
Multicast domains can be associated only with vSwitches that are in VPCs. You can call ListTransitRouterMulticastDomainAssociations to query whether vSwitches in VPCs are associated with a specified multicast domain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListTransitRouterMulticastDomainAssociations |
The operation that you want to perform. Set the value to ListTransitRouterMulticastDomainAssociations. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-4266**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among all requests. The token can contain only ASCII characters. |
TransitRouterMulticastDomainId | String | No | tr-mcast-domain-91wpg6wbhchjeq**** |
The ID of the multicast domain. |
TransitRouterAttachmentId | String | No | tr-attach-p90y3ymbbwuvy5**** |
The ID of the network instance connection. |
VSwitchIds.N | String | No | vsw-p0w9s2ig1jnwgrbzl**** |
The IDs of the vSwitches. You can specify at most 20 IDs. |
ResourceType | String | No | VPC |
The type of resource associated with the multicast domain. Valid value: VPC. |
ResourceId | String | No | vpc-p0w9alkte4w2htrqe**** |
The ID of the resource associated with the multicast domain. |
MaxResults | Long | No | 20 |
The number of entries to return on each page. Default value: 20. |
NextToken | String | No | FFmyTO70tTpLG6I3FmYAXGKPd**** |
The token that determines the start point of the query. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1CD0969B-A605-5D2D-BFF0-699FD182FB7F |
The ID of the request. |
TotalCount | Integer | 1 |
The number of entries returned. |
MaxResults | Integer | 20 |
The number of entries returned on each page. |
NextToken | String | FFmyTO70tTpLG6I3FmYAXGKPd**** |
The token that determines the start point of the query. Valid values:
|
TransitRouterMulticastAssociations | Array of TransitRouterMulticastAssociation |
The information about the resource associated with the multicast domain. |
|
TransitRouterMulticastDomainId | String | tr-mcast-domain-91wpg6wbhchjeq**** |
The ID of the multicast domain. |
TransitRouterAttachmentId | String | tr-attach-p90y3ymbbwuvy5**** |
The ID of the network instance connection. |
VSwitchId | String | vsw-p0wxk12u6okfkr8xy**** |
The IDs of the vSwitches. |
Status | String | Dissociating |
The status of the associated resource. Valid values:
|
ResourceType | String | VPC |
The type of resource associated with the multicast domain. Valid value: VPC. |
ResourceOwnerId | Long | 1210123456123456 |
The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs. |
ResourceId | String | vpc-p0w9b7g9l90yofr0n**** |
The ID of the resource associated with the multicast domain. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListTransitRouterMulticastDomainAssociations
&ClientToken=123e4567-e89b-12d3-a456-4266****
&TransitRouterMulticastDomainId=tr-mcast-domain-91wpg6wbhchjeq****
&TransitRouterAttachmentId=tr-attach-p90y3ymbbwuvy5****
&VSwitchIds=["vsw-p0w9s2ig1jnwgrbzl****"]
&ResourceType=VPC
&ResourceId=vpc-p0w9alkte4w2htrqe****
&MaxResults=20
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListTransitRouterMulticastDomainAssociationsResponse>
<RequestId>1CD0969B-A605-5D2D-BFF0-699FD182FB7F</RequestId>
<TotalCount>1</TotalCount>
<MaxResults>20</MaxResults>
<NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
<TransitRouterMulticastAssociations>
<TransitRouterMulticastDomainId>tr-mcast-domain-91wpg6wbhchjeq****</TransitRouterMulticastDomainId>
<TransitRouterAttachmentId>tr-attach-p90y3ymbbwuvy5****</TransitRouterAttachmentId>
<VSwitchId>vsw-p0wxk12u6okfkr8xy****</VSwitchId>
<Status>Dissociating</Status>
<ResourceType>VPC</ResourceType>
<ResourceOwnerId>1210123456123456</ResourceOwnerId>
<ResourceId>vpc-p0w9b7g9l90yofr0n****</ResourceId>
</TransitRouterMulticastAssociations>
</ListTransitRouterMulticastDomainAssociationsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1CD0969B-A605-5D2D-BFF0-699FD182FB7F",
"TotalCount" : 1,
"MaxResults" : 20,
"NextToken" : "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TransitRouterMulticastAssociations" : [ {
"TransitRouterMulticastDomainId" : "tr-mcast-domain-91wpg6wbhchjeq****",
"TransitRouterAttachmentId" : "tr-attach-p90y3ymbbwuvy5****",
"VSwitchId" : "vsw-p0wxk12u6okfkr8xy****",
"Status" : "Dissociating",
"ResourceType" : "VPC",
"ResourceOwnerId" : 1210123456123456,
"ResourceId" : "vpc-p0w9b7g9l90yofr0n****"
} ]
}
Error codes
For a list of error codes, visit the API Error Center.