Distributed Message Service RabbitMQ

Query Exchange

2024-06-27 06:50:22

Interface Protocol

Interface

https://[endpoint].ctapi.ctyun.cn/v1/exchange/query

Request Method

GET

Request Parameters

Required or Not

Parameter Type

Description

prodInstId

Yes

String

Instance ID

vhost

No

String

vhost name

name

No

String

Queue Name

Response Parameter

Parameter Type

Description

statusCode

String

The status code of the interface on the system layer.   Success: 800; failure: 900.

message

String

Status Description

returnObj

String

Return the object. The parameters included in this   parameter are described in the comments in Response Examples.

Sample Request

`GET https://[endpoint].ctapi.ctyun.cn/v1/exchange/query`

Return Example

(1) Example of successful response

{

    "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) Example of failed response

{

    "returnObj": {"data": "{\"error\":\"not_found\",\"reason\":\"vhost_not_found\"}"},

    "message": "...",

    "statusCode": "900"

}


M2BB5aCC3QM.