LAB 14 ‐ Topic & Notification - gautam-amitesh/OCI GitHub Wiki
Notifications
In OCI Notifications service is a publish-subscribe (pub/sub) messaging service which is designed to broadcast messages (alerts & data) about your cloud resources to all active subscriptions and by using alarms, event rules, and connectors you can get human-readable messages through supported endpoints, including email and text messages (SMS). You can automate tasks through custom HTTPS endpoints and OCI Functions also you can directly publish messages. In short we can say it is used to set up communication channels for publishing messages using topics and subscriptions.
Navigate to Notifications service in OCI
Navigation menu > Developer Services > Notifications (under Application Integration)
Topics
A topic is a communication channel for sending messages to its subscriptions. A topic can have zero, one, or multiple subscriptions that are notified whenever a message is published to a topic.
Creating Topic
-
On the Notifications page navigate to Topics section and click
Create topic -
On the Create topic page enter Topic Name & Description
-
Select the compartment where the people who need to manage it already have access
-
Click
Createat the bottom right corner
Subscriptions
A subscription is an endpoint for a topic. Published messages are sent to each subscription for a topic.
Creating Subscription
-
On the Notifications page navigate to Subscriptions section and click
Create subscription -
On the Create subscription page select Subscription topic
-
Select Protocol and fill the details accordingly
-
Click
Createat the bottom right corner -
After creating you will be redirected back to Subscriptions page here you will see the subscription is created but State will be shown Pending so you need to confirm the subscription by the email you received from Oracle and after confirming State will be shown
Active