Call the ListTransitRouterMulticastDomains operation to query information about multicast domains, such as their statuses, IDs, and descriptions.
Operation description
You must specify both RegionId and CenId. If you specify only RegionId, no information about multicast domains is returned. You can also specify TransitRouterId or TransitRouterMulticastDomainId individually.
Ensure that you specify valid parameter values. If you specify an invalid parameter, the system returns a RequestId but does not return the details of the multicast domain.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterMulticastDomains |
list |
*TransitRouterMulticastDomain
*TransitRouterMulticastDomain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Generate a token that is unique among different requests. The token can contain only ASCII characters. |
123e4567-e89b-12d3-a456-426655440000 |
| CenId |
string |
No |
The ID of the CEN instance. |
cen-a7syd349kne38g**** |
| TransitRouterId |
string |
No |
The ID of the transit router. |
tr-p0wr9p28r92d598y6**** |
| TransitRouterMulticastDomainId |
string |
No |
The ID of the multicast domain. |
tr-mcast-domain-3r3bvbypxqheej**** |
| RegionId |
string |
No |
The ID of the region where the transit router is deployed. You can call the DescribeChildInstanceRegions operation to obtain the region ID. |
cn-hangzhou |
| MaxResults |
integer |
No |
The number of entries per page. Default value: 20. |
20 |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| Tag |
array<object> |
No |
The tags. You can specify up to 20 tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with You can specify up to 20 tag keys. |
TagKey |
| Value |
string |
No |
The tag value. The tag value can be an empty string or a string of up to 128 characters. It cannot start with Each tag key must have a corresponding tag value. You can specify up to 20 tag values. |
TagValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
8A0F93D1-FD6C-56FC-B6D2-668FC92D12D2 |
| TotalCount |
integer |
The total number of entries. |
1 |
| MaxResults |
integer |
The number of entries per page. |
20 |
| NextToken |
string |
The token for the next query.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TransitRouterMulticastDomains |
array<object> |
The list of multicast domains. |
|
|
array<object> |
The details of the multicast domain. |
||
| TransitRouterMulticastDomainId |
string |
The ID of the multicast domain. |
tr-mcast-domain-3r3bvbypxqheej**** |
| TransitRouterMulticastDomainName |
string |
The name of the multicast domain. |
nametest |
| TransitRouterMulticastDomainDescription |
string |
The description of the multicast domain. |
desctest |
| Status |
string |
The status of the multicast domain. The value is Active, which indicates that the multicast domain is available. |
Active |
| Tags |
array<object> |
The list of tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
TagKey |
| Value |
string |
The tag value. |
TagValue |
| TransitRouterId |
string |
The ID of the transit router. |
tr-bp1c23ijrl6d6c226h*** |
| RegionId |
string |
The ID of the region where the transit router is deployed. You can call the DescribeChildInstanceRegions operation to obtain the region ID. |
cn-hangzhou |
| CenId |
string |
The ID of the CEN instance. |
cen-h19xdb0qy2b3ir**** |
| Options |
object |
The options of the multicast domain. |
|
| Igmpv2Support |
string |
Indicates whether IGMPv2 is enabled for the multicast domain. |
enable |
Examples
Success response
JSON format
{
"RequestId": "8A0F93D1-FD6C-56FC-B6D2-668FC92D12D2",
"TotalCount": 1,
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TransitRouterMulticastDomains": [
{
"TransitRouterMulticastDomainId": "tr-mcast-domain-3r3bvbypxqheej****",
"TransitRouterMulticastDomainName": "nametest",
"TransitRouterMulticastDomainDescription": "desctest",
"Status": "Active",
"Tags": [
{
"Key": "TagKey",
"Value": "TagValue"
}
],
"TransitRouterId": "tr-bp1c23ijrl6d6c226h***",
"RegionId": "cn-hangzhou",
"CenId": "cen-h19xdb0qy2b3ir****",
"Options": {
"Igmpv2Support": "enable"
}
}
]
}
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.TrInstance | The specified TrInstance is illegal. | The error message returned because the specified transit router is invalid. |
| 400 | IllegalParam.CenId | The specified CenId is illegal. | The error message returned because the specified CEN instance ID is invalid. |
| 400 | IllegalParam.MaxResults | The specified MaxResults is illegal. | MaxResults 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.