接口请求域名: trabbit.intl.tencentcloudapi.com 。
获取路由关系列表
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeRabbitMQServerlessBindings。 |
| Version | 是 | String | 公共参数,本接口取值:2023-04-18。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
| InstanceId | 是 | String | 实例Id |
| VirtualHost | 是 | String | Vhost参数 |
| Offset | 否 | Integer | 分页offset |
| Limit | 否 | Integer | 分页limit |
| SearchWord | 否 | String | 搜索关键词,根据源exchange名称/目标资源名称进行模糊搜索 |
| SourceExchange | 否 | String | 根据源Exchange精准搜索过滤 |
| QueueName | 否 | String | 根据目标QueueName精准搜索过滤,和DestinationExchange过滤不可同时设置 |
| DestinationExchange | 否 | String | 根据目标Exchange精准搜索过滤,和QueueName过滤不可同时设置 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| BindingInfoList | Array of RabbitMQBindingListInfo | 路由关系列表 |
| TotalCount | Integer | 数量 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
POST / HTTP/1.1
Host: trabbit.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRabbitMQServerlessBindings
<公共请求参数>
{
"InstanceId": "amqp-slfxemauoa",
"VirtualHost": "test_vhost3213",
"Offset": 0,
"Limit": 20,
"SourceExchange": "test_exchange"
}
{
"Response": {
"RequestId": "99ff7b6b-bc6e-48e7-8ef6-cffcf74393f6",
"TotalCount": 1,
"BindingInfoList": [
{
"BindingId": 18921,
"VirtualHost": "test_vhost3213",
"Source": "test_exchange",
"DestinationType": "queue",
"Destination": "test_queue",
"RoutingKey": "testRoutingKey",
"SourceExchangeType": "direct",
"CreateTime": "2025-01-16 19:52:51",
"ModifyTime": "2025-01-16 19:52:51"
}
]
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| AuthFailure | CAM签名/鉴权错误。 |
| DryRunOperation | DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 |
| FailedOperation | 操作失败。 |
| InternalError | 内部错误。 |
| InvalidFilter | 无效的过滤器 |
| InvalidParameter | 参数错误。 |
| InvalidParameterValue | 参数取值错误。 |
| LimitExceeded | 超过配额限制。 |
| MissingParameter | 缺少参数错误。 |
| OperationDenied | 操作被拒绝。 |
| RegionError | 地域错误 |
| RequestLimitExceeded | 请求的次数超过了频率限制。 |
| ResourceInUse | 资源被占用。 |
| ResourceInsufficient | 资源不足。 |
| ResourceNotFound | 资源不存在。 |
| ResourceUnavailable | 资源不可用。 |
| ResourcesSoldOut | 资源售罄。 |
| UnauthorizedOperation | 未授权操作。 |
| UnknownParameter | 未知参数错误。 |
| UnsupportedOperation | 操作不支持。 |
文档反馈