接口协议
接口 | https://[endpoint].ctapi.ctyun.cn/v1/exchange/query | ||
请求方式 | GET | ||
请求参数 | 是否必填 | 参数类型 | 说明 |
prodInstId | 是 | String | 实例ID |
vhost | 否 | String | vhost名称 |
name | 否 | String | 队列名称 |
响应参数 | 参数类型 | 描述 | |
statusCode | String | 接口系统层面状态码。成功:800,失败:900 | |
message | String | 描述状态 | |
returnObj | String | 返回对象。此参数所包含的参数请见“响应示例"里面的注释 | |
请求示例
`GET https://[endpoint].ctapi.ctyun.cn/v1/exchange/query`
返回示例
(1)成功响应示例
{
"returnObj": {
"data": {
"arguments": {},
"auto_delete": false,
"durable": true,
"incoming": [],
"internal": false,
"name": "asdasdasd",
"outgoing": [],
"type": "direct",
"user_who_performed_action": "rabbitmq",
"vhost": "/"
}
},
"message": "success",
"statusCode": "800"
}(2)失败响应示例
{
"returnObj": {"data": "{\"error\":\"not_found\",\"reason\":\"vhost_not_found\"}"},
"message": "...",
"statusCode": "900"
}