Registers a new subscriber to the Notification service with an HTTPS webhook.
The following example registers a new HTTPS webhook subscriber to the Notification Service.
efa notification subscribers add-https --url https://path/to/my/service:port --username myusername --password mypassword --insecure Successfully registered subscriber. +-----------+-----------------------------------------------------------------------+ | attribute | value | +-----------+-----------------------------------------------------------------------+ | id | 1 | +-----------+-----------------------------------------------------------------------+ | handler | http | +-----------+-----------------------------------------------------------------------+ | endpoint | https://path/to/my/service:port | +-----------+-----------------------------------------------------------------------+ | config | {"cacert":"","insecure":true,"password":"mypassword", "username":"myusername"} | +-----------+-----------------------------------------------------------------------+ Notification Subscriber ID=1 --- Time Elapsed: 2.203878641s ---
The following example enables webhook subscriber with only APP_ALERTS.
#efa notification subscribers add-https --url https://127.0.0.1:5000 --username jarvis --password vision --insecure --filter APP_ALERTS Successfully registered subscriber. +-----------+----------------------------------------------------------------------------------+ | attribute | value | +-----------+----------------------------------------------------------------------------------+ | id | 18 | +-----------+----------------------------------------------------------------------------------+ | handler | http | +-----------+----------------------------------------------------------------------------------+ | endpoint | https://127.0.0.1:5000 | +-----------+----------------------------------------------------------------------------------+ | config | {"cacert":"","filters":["APP_ALERTS"],"insecure":true,"password":"vision","usern | | | ame":"jarvis"} | +-----------+----------------------------------------------------------------------------------+ Notification Subscriber ID=18 --- Time Elapsed: 2.148580068s ---