Queries whether a multicast domain is associated with a vSwitch.
Operation description
- You must set at least TransitRouterMulticastDomainId and TransitRouterAttachmentId. If you set TransitRouterAttachmentId, the information about the vSwitches in a virtual private cloud (VPC) that are associated with a multicast domain is returned. If you set TransitRouterMulticastDomainId, the information about the vSwitches that are associated with a multicast domain is returned.
- Before you call ListTransitRouterMulticastDomainAssociations, make sure that all the request parameters are valid. If a request parameter is invalid, the system returns a request ID but does not return the vSwitches that are associated with the multicast domain.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cen:ListTransitRouterMulticastDomainAssociations | get |
|
| 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 value, but you must make sure that it is unique among all requests. The token can only contain ASCII characters. | 123e4567-e89b-12d3-a456-4266**** |
TransitRouterMulticastDomainId | string | No | The ID of the multicast domain. | tr-mcast-domain-91wpg6wbhchjeq**** |
TransitRouterAttachmentId | string | No | The ID of the network instance connection. | tr-attach-p90y3ymbbwuvy5**** |
VSwitchIds | array | No | The IDs of vSwitches. | |
string | No | The ID of the vSwitch. You can specify at most 20 vSwitch IDs. | vsw-p0w9s2ig1jnwgrbzl**** | |
ResourceType | string | No | The type of resource associated with the multicast domain. Valid value: VPC. | VPC |
ResourceId | string | No | The ID of the resource associated with the multicast domain. | vpc-p0w9alkte4w2htrqe**** |
MaxResults | long | No | The number of entries to return on each page. Default value: 20. | 20 |
NextToken | string | No | The token that determines the start point of the query. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"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
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 | 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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-04 | The Error code has changed | View Change Details |