Publishing a Message to a Topic

Directly publish a message to a topic in Notifications.

Each message is broadcast to all subscriptions  in the specified topic . Every message sent out as email contains a link to unsubscribe from the related topic.

Publish messages to function subscriptions to create automation. For example, see Scenario A: Automatically Resizing VMs.

For important limits information, including message delivery rates by subscription type, see Limits for Publishing Messages.

Before You Begin

Meet the following prerequisites:

    1. On the Topics list page, find the topic that you want to work with. If you need help finding the list page or the topic, see Listing Topics.
    2. From the Actions menu (three dots) for the topic, select Publish message.
    3. In the Publish message panel, enter the following information.
      • Message: Enter the content that you want to send.
        Note

        Message size limit per request: 64 KB.
      • Title: Enter the title that you want to send.
        • For email notifications, the title is used as the subject line of the message.
        • For PagerDuty notifications, the title is used in the title field of the published message.
        • HTTPS, Slack, and SMS notifications don't use titles.
    4. Select Publish.
  • Use the oci ons message publish command and required parameters to publish a message to a topic:

    oci ons message publish --body <message_text> --topic-id <topic_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Notifications.

  • Run the PublishMessage operation to publish a message to a topic.

Troubleshooting

For troubleshooting information related to published messages, see Message Not Received.