The OnsMessagePush operation pushes a message to a specified consumer.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:SUB |
get |
Topic
Topic
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The group ID. For more information, see Terms. |
GID_test_group_id |
| ClientId |
string |
Yes |
The ID of the consumer instance. Call the OnsConsumerGetConnection operation to obtain this ID. |
30.5.121.**@24813#-1999745829#-1737591554#453111174894656 |
| MsgId |
string |
Yes |
The message ID. |
0BC1669963053CF68F733BB70396**** |
| Topic |
string |
Yes |
The topic to which the message is pushed. |
test-mq_topic |
| InstanceId |
string |
No |
The ID of the instance that contains the message that you want to push. |
MQ_INST_111111111111_DOxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. Use this ID to troubleshoot issues. |
B8EDC90D-F726-4B9E-8BEF-F0DD25EC**** |
Examples
Success response
JSON format
{
"RequestId": "B8EDC90D-F726-4B9E-8BEF-F0DD25EC****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.