Publishing Messages to a Queue
Publish messages to a queue.
Publishing messages requires permissions to the queue and access to its Messages endpoint.
A message contains a payload in the form of a string.
While you can use the Console to publish test messages to a queue, you use the CLI, API, or an SDK to populate a queue. For more information, see Ways to Access Queue.
While you can use the Console to publish test messages to a queue, you use the CLI, API, or an SDK to populate a queue. See Ways to Access Queue for more information.
- On the Queues list page, select the queue that you want to work with. If you need help finding the list page or the queue, see Listing Queues.
- On the details page for the queue, select Send message.
- Enter the message, and then select Send message.
Use the
oci queue messages put-messages
command and required parameters to publish messages to a queue:oci queue messages put-messages --messages file://messages.json --queue-id <queue_OCID>
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Use the PutMessages operation to publish messages.
The API returns the
id
for each message.For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.