Enabling or Disabling Notifications on Legacy orchestrator 24.09
  • 01 Nov 2024
  • 1 Minute to read
  • Contributors
  • PDF

Enabling or Disabling Notifications on Legacy orchestrator 24.09

  • PDF

Article summary

The following procedures explain how to enable or disable notifications on Legacy orchestrator Docker 24.09.


Notes: The user must be granted "ROLE_ADMIN" and "ROLE_WS" roles.

Currently, Legacy orchestrator Docker supports only one broker configuration enabled at a time.



CAUTION: The services must be started before performing this procedure.

Prerequisite

Obtain the the necessary information to enable, disable, update, or delete a message broker configuration.

If this is your first time setting up, skip steps 2 and 3 of the procedure below.

  1. Log into Legacy orchestrator Docker via NBAPI by entering:
curl -i -k -X POST -d username=<username> -d password='<password>' -c ./cookies.txt https://<Legacy orchestrator IP address>:9081/nbapi/login
  1. Retrieve all the message broker configurations that exist in Legacy orchestrator Docker.
curl -i -k -H "Content-Type:application/json" -X GET -b ./cookies.txt https://<Legacy orchestrator IP address>:9081/nbapi/configuration/messagebrokerconfig
  1. Retrieve a message broker configuration by passing its ID in the URL:
curl -i -k -H "Content-Type:application/json" -X GET -b ./cookies.txt https://<Legacy orchestrator IP address>:9081/nbapi/configuration/messagebrokerconfig/<messagebrokerconfig id>

Enabling Notifications

Enable notifications in Legacy orchestrator Docker via the API:

curl -i -k -H "Content-Type: application/json" --data '{ "defaultBrokerTopic": "sosdmevents", "brokerUrl": "tcp://<message broker IP>:<message broker port>", "password": "<message broker password>", "brokerEnable": true, "soTenantId": "so-1", "systemId": "so-system-1", "systemType": "so", "username": "<message broker username>" }' -X POST -b ./cookies.txt https://<Legacy orchestrator IP address>:9081/nbapi/configuration/messagebrokerconfig

Disabling Notifications

Disable notifications in Legacy orchestrator Docker via the API:

curl -i -k -H "Content-Type: application/json" --data '{ "defaultBrokerTopic": "sosdmevents", "brokerUrl": "tcp://<message broker IP>:<message broker port>", "password": "<message broker password>", "brokerEnable": false, "soTenantId": "so-1", "systemId": "so-system-1", "systemType": "so", "username": "<message broker username>" }' -X PUT -b ./cookies.txt https://<Legacy orchestrator IP address>:9081/nbapi/configuration/messagebrokerconfig/<messagebrokerconfig id>

Updating or Deleting a Message Broker Configuration

To update an existing message broker configuration

Input the following via the API:

curl -i -k -H "Content-Type: application/json" --data '{ "defaultBrokerTopic": "sosdmevents", "brokerUrl": "tcp://<message broker IP>:<message broker port>", "password": "<message broker password>", "brokerEnable": true, "soTenantId": "so-1", "systemId": "so-system-1", "systemType": "so", "username": "<message broker username>" }' -X PUT -b ./cookies.txt https://<Legacy orchestrator IP address>:9081/nbapi/configuration/messagebrokerconfig/<messagebrokerconfig id>

To delete an existing message broker configuration

Input the following via the API:

curl -i -k -X DELETE -b ./cookies.txt https://<SOIPaddress>:9081/nbapi/configuration/messagebrokerconfig/<messagebrokerconfig id>

© 2024 Cisco and/or its affiliates. All rights reserved.
 
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms

For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.