A producer sends a message to an exchange, which then routes the message to a specified queue or another exchange based on the binding and routing rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:GetExchange |
create |
*Queue
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-v0h1kb9nu*** |
| VirtualHost |
string |
Yes |
The name of the vhost. The vhost must be created in the console. Both |
test |
| SourceExchange |
string |
Yes |
The name of the source exchange. This exchange must be created in the console. |
NormalEX |
| DestinationName |
string |
Yes |
The name of the binding destination. The destination must be created in the console. It must belong to the same vhost as |
DemoQueue |
| BindingKey |
string |
No |
The binding key.
|
.test |
| BindingType |
string |
Yes |
The type of the destination object. Valid values:
|
0 |
| Argument |
string |
No |
The key-value pairs for the message header attributes. The message header attributes consist of one or more key-value pairs. The x-match attribute is required. Other attributes are custom. The x-match attribute supports the following values:
Separate attributes with semicolons (;) and separate keys from values with colons (:). Example: x-match:all;type:report;format:pdf This parameter is valid only for headers exchanges. For other types of exchanges, this parameter is ignored. |
x-match:all;type:report;format:pdf |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
09768C14-E51C-4F4A-8077-30810032C*** |
Examples
Success response
JSON format
{
"RequestId": "09768C14-E51C-4F4A-8077-30810032C***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.