efa notification subscribers add-https

Registers a new subscriber to the Notification service with an HTTPS webhook.

Syntax

efa notification subscribers add-https [ --url address | --username name | --password password | --insecure | --cacert string ]

Parameters

--url address
(Required) Specifies the URL of the subscriber.
--username name
(Required) Specifies the user name for access to the URL.
--password password
(Optional) Specifies the password for the user name.
--insecure
(Optional) Indicates that insecure SSL connection and transfers are used for sending notifications. By default, the SSL connection and transfers are secure.
--cacert string
(Optional) Local path to the cacert pem file for SSL verification.

Example

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 ---