tencent cloud

DescribeRabbitMQExchanges
Last updated: 2025-11-25 10:53:19
DescribeRabbitMQExchanges
Last updated: 2025-11-25 10:53:19

1. API Description

Domain name for API request: tdmq.intl.tencentcloudapi.com.

This API is used to query the list of TDMQ for RabbitMQ exchanges.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeRabbitMQExchanges.
Version Yes String Common Params. The value used for this API: 2020-02-17.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
InstanceId Yes String Instance ID, such as amqp-xxxxxxxx. valid InstanceId can be queried by logging in to the TDMQ RabbitMQ console (https://console.tencentcloud.com/trabbitmq/cluster?rid=1).
VirtualHost Yes String VirtualHost name, such as testvhost. effective VirtualHost names can be queried by logging in to the TDMQ RabbitMQ console (https://console.tencentcloud.com/trabbitmq/cluster?rid=1), clicking Vhost in the left sidebar, and finding the Vhost name in the Vhost list.
Offset No Integer Specifies the pagination offset. default is 0.
Limit No Integer Pagination limit. default is 20.
SearchWord No String Search keyword, supports fuzzy matching.
ExchangeTypeFilters.N No Array of String Filters the exchange type. each element in the array is a selected filter type. only direct, fanout, topic, and header are supported.
ExchangeCreatorFilters.N No Array of String Filter exchange creation source, "system": "system created", "user": "user created".
ExchangeName No String Exchange name, used for exact matching.
SortElement No String Sorting field:
MessageRateInOut - Total production and consumption rate.
MessageRateIn - Production rate.
MessageRateOut - Consumption rate: Specifies the message consumption rate.
SortOrder No String Sorting order. Valid values: ascend and descend.
Specifies the ascending order.
Desc - descending.

3. Output Parameters

Parameter Name Type Description
ExchangeInfoList Array of RabbitMQExchangeListInfo Policy list information.
TotalCount Integer Total number of policy results.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 This API is used to query the list of TDMQ for RabbitMQ exchanges.

This API is used to query the list of TDMQ for RabbitMQ exchanges.

Input Example

POST / HTTP/1.1
Host: tdmq.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRabbitMQExchanges
<Common request parameters>

{
    "InstanceId": "amqp-2ppxx4rq",
    "VirtualHost": "vhost1"
}

Output Example

{
    "Response": {
        "RequestId": "request1",
        "ExchangeInfoList": [
            {
                "ExchangeName": "test1",
                "ExchangeType": "fanout",
                "Remark": "test1",
                "VirtualHost": "vhost1",
                "ExchangeCreator": "user",
                "CreateTimeStamp": "2022-12-04 01:08:43",
                "ModTimeStamp": "2022-12-04 01:08:43"
            },
            {
                "ExchangeName": "test2",
                "ExchangeType": "direct",
                "Remark": "test2",
                "VirtualHost": "vhost1",
                "ExchangeCreator": "user",
                "CreateTimeStamp": "2022-12-04 01:08:43",
                "ModTimeStamp": "2022-12-04 01:08:43"
            }
        ],
        "TotalCount": 2
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Incorrect parameter.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback