Queries information about multicast domains, such as the status, multicast domain ID, and description of multicast domains.
Operation description
RegionId must be used together with CenId and cannot be used alone. Otherwise, multicast domain information is not displayed. However, TransitRouterId and TransitRouterMulticastDomainId can be used independently.
Ensure that the parameter values you specify are correct when you call this operation. If you specify invalid parameter values, the system still returns a RequestId but does not display detailed multicast domain information.
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. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. |
123e4567-e89b-12d3-a456-426655440000 |
| CenId |
string |
No |
The Cloud Enterprise Network (CEN) instance ID. |
cen-a7syd349kne38g**** |
| TransitRouterId |
string |
No |
The transit router instance ID. |
tr-p0wr9p28r92d598y6**** |
| TransitRouterMulticastDomainId |
string |
No |
The ID of the multicast domain. |
tr-mcast-domain-3r3bvbypxqheej**** |
| RegionId |
string |
No |
The region ID of the transit router. You can call the DescribeChildInstanceRegions operation to query region IDs. |
cn-hangzhou |
| MaxResults |
integer |
No |
The number of entries per page for a paged query. Default value: 20. |
20 |
| NextToken |
string |
No |
The token that determines the start point of the query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| Tag |
array<object> |
No |
The tag information. You can specify up to 20 tags at a time. |
|
|
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 at a time. |
TagKey |
| Value |
string |
No |
The tag value. The tag value can be an empty string and can be up to 128 characters in length. It cannot start with Each tag key corresponds to one tag value. You can specify up to 20 tag values at a time. |
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 returned. |
1 |
| MaxResults |
integer |
The number of entries per page. |
20 |
| NextToken |
string |
The token that determines the start point of the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TransitRouterMulticastDomains |
array<object> |
The list of multicast domains. |
|
|
array<object> |
The information about 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. Valid values:
|
Active |
| Tags |
array<object> |
The list of tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
TagKey |
| Value |
string |
The tag value. |
TagValue |
| TransitRouterId |
string |
The transit router instance ID. |
tr-bp1c23ijrl6d6c226h*** |
| RegionId |
string |
The region ID of the transit router. You can call the DescribeChildInstanceRegions operation to query region IDs. |
cn-hangzhou |
| CenId |
string |
The Cloud Enterprise Network (CEN) instance ID. |
cen-h19xdb0qy2b3ir**** |
| Options |
object |
The feature options of the multicast domain. |
|
| Igmpv2Support |
string |
Indicates whether IGMPv2 is enabled for the multicast domain. |
enable |
| StrictSourceControl |
string |
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",
"StrictSourceControl": "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.