Queries details about multicast members and sources in a multicast domain.
Operation description
You can call the ListTransitRouterMulticastGroups operation to query information about multicast members and sources. These are collectively referred to as multicast resources.
If you specify the GroupIpAddress parameter, you can query information about the multicast resources in a specific multicast group.
If you specify the VSwitchIds parameter, you can query information about the multicast resources on specific vSwitches.
If you specify the PeerTransitRouterMulticastDomains parameter, you can query information about cross-region multicast resources.
If you specify the ResourceType parameter, you can query information about multicast resources of a specific resource type.
If you specify the ResourceId parameter, you can query information about the multicast resources on a specific resource.
If you specify only the TransitRouterMulticastDomainId parameter, you can query information about all multicast resources in the multicast domain.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterMulticastGroups |
get |
*TransitRouterMulticastDomain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. Generate a unique value from your client for each request. The `ClientToken` parameter can contain only ASCII characters. |
123e4567-e89b-12d3-a456-426655440000 |
| TransitRouterMulticastDomainId |
string |
No |
The ID of the multicast domain. You must specify `TransitRouterMulticastDomainId` or `TransitRouterAttachmentId`. |
tr-mcast-domain-5mjb5gjb6dgu98**** |
| GroupIpAddress |
string |
No |
The IP address of the multicast group. Each multicast group is identified by a multicast IP address. |
239.XX.XX.2 |
| TransitRouterAttachmentId |
string |
No |
The ID of the network instance connection. You must specify `TransitRouterMulticastDomainId` or `TransitRouterAttachmentId`. |
tr-attach-g3kz2k3u76amsk**** |
| VSwitchIds |
array |
No |
A list of vSwitch IDs. |
|
|
string |
No |
The ID of the vSwitch. You can specify a maximum of 20 vSwitch IDs. |
vsw-p0w9s2ig1jnwgrbzl**** |
|
| PeerTransitRouterMulticastDomains |
array |
No |
A list of IDs of cross-region multicast domains. |
|
|
string |
No |
The ID of a cross-region multicast domain. You can specify a maximum of 20 cross-region multicast domain IDs. |
tr-mcast-domain-91wpg6wbhchjeq**** |
|
| ResourceType |
string |
No |
The type of the multicast resource.
|
VPC |
| ResourceId |
string |
No |
The ID of the resource associated with the multicast resource. |
vpc-p0w9alkte4w2htrqe**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Default value: 20. |
20 |
| NextToken |
string |
No |
The token for the next page of results.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| IsGroupSource |
boolean |
No |
Specifies whether to query multicast sources.
Note
This parameter works with `IsGroupMember`.
|
true |
| IsGroupMember |
boolean |
No |
Specifies whether to query multicast members.
Note
This parameter works with `IsGroupSource`.
|
false |
| NetworkInterfaceIds |
array |
No |
A list of Elastic Network Interface (ENI) IDs. |
|
|
string |
No |
The ID of the ENI. You can specify a maximum of 20 ENI IDs. |
eni-p0weuda3lszwzjly**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
FB3C4A16-0933-5850-9D43-0C3EA37BCBFB |
| TotalCount |
integer |
The total number of entries. |
1 |
| MaxResults |
integer |
The number of entries per page. |
20 |
| NextToken |
string |
The token for the next page of results.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TransitRouterMulticastGroups |
array<object> |
A list of multicast groups. |
|
|
object |
The details of the multicast group. |
||
| GroupIpAddress |
string |
The IP address of the multicast group. |
239.XX.XX.2 |
| TransitRouterAttachmentId |
string |
The ID of the network instance connection. |
tr-attach-g3kz2k3u76amsk**** |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-p0w9s2ig1jnwgrbzl**** |
| NetworkInterfaceId |
string |
The ID of the ENI. The ENI is the multicast resource. |
eni-p0weuda3lszwzjly**** |
| PeerTransitRouterMulticastDomainId |
string |
The ID of the multicast domain that is associated with the cross-region multicast resource. |
tr-mcast-domain-91wpg6wbhchjeq**** |
| Status |
string |
The status of the multicast resource.
|
Registered |
| GroupSource |
boolean |
Indicates whether the multicast resource is a multicast source.
|
false |
| GroupMember |
boolean |
Indicates whether the multicast resource is a multicast member.
|
true |
| MemberType |
string |
The type of the multicast member.
|
Static |
| SourceType |
string |
The type of the multicast source.
|
Static |
| ResourceType |
string |
The type of the multicast resource.
|
VPC |
| ResourceOwnerId |
integer |
The ID of the Alibaba Cloud account that owns the multicast resource. |
253460731706911258 |
| ResourceId |
string |
The ID of the resource associated with the multicast resource. |
vpc-p0w9alkte4w2htrqe**** |
| TransitRouterMulticastDomainId |
string |
The ID of the multicast domain. |
tr-mcast-domain-kx0vk0v7fz8kx4**** |
Examples
Success response
JSON format
{
"RequestId": "FB3C4A16-0933-5850-9D43-0C3EA37BCBFB",
"TotalCount": 1,
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TransitRouterMulticastGroups": [
{
"GroupIpAddress": "239.XX.XX.2",
"TransitRouterAttachmentId": "tr-attach-g3kz2k3u76amsk****",
"VSwitchId": "vsw-p0w9s2ig1jnwgrbzl****",
"NetworkInterfaceId": "eni-p0weuda3lszwzjly****",
"PeerTransitRouterMulticastDomainId": "tr-mcast-domain-91wpg6wbhchjeq****",
"Status": "Registered",
"GroupSource": false,
"GroupMember": true,
"MemberType": "Static",
"SourceType": "Static",
"ResourceType": "VPC",
"ResourceOwnerId": 253460731706911260,
"ResourceId": "vpc-p0w9alkte4w2htrqe****",
"TransitRouterMulticastDomainId": "tr-mcast-domain-kx0vk0v7fz8kx4****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.NextToken | The specified NextToken is illegal. | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | IllegalParam.TransitRouterMulticastDomainId | The specified TransitRouterMulticastDomainId is illegal. | The error message returned because the specified multicast domain ID specified for the transit router (TransitRouterMulticastDomainId) is invalid. |
| 400 | IllegalParam.MaxResults | The specified MaxResults is illegal. | MaxResults illegal. |
| 400 | IllegalParam.TransitRouterAttachmentId | TransitRouterAttachmentId is illegal. | The error message returned because the specified transit router is invalid. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.