This command creates a webhook.
Usage
webhook create --url URL
[--name TEXT]
[--method {POST|PUT|PATCH|DELETE|GET}]
[--data JSON]
[--headers HEADERS]
[--enable|--disable]
[--certificate-id ID]Required Parameters
| The URL of the external application. |
Options
| A name for the webhook. |
| The HTTP method to be used when the notification is sent to the external application. |
| The data to be sent as the webhook message to the external application, in JSON format. For example: For information about variables that can be used within the JSON data, see Variables in Webhook Data. |
| Custom HTTP headers to be included into the message sent to the external application. You can add as many custom headers as necessary. Specify |
| Enables the webhook. |
| Disables the webhook. |
| The ID of the certificate used to secure the connection to the external application with TLS. The certificate must be uploaded to the VMS beforehand using the |
Example
To create a webhook that sends a POST message to https://callhome-messages.vastdata.com:
webhook create --url https://callhome-messages.vastdata.com --name vast-messages --data {"cluster_name": "$vastdata_cluster_name", "event_name": "$vastdata_event_name", "event_type": "$vastdata_event_type", "event_origin": "$vastdata_event_origin", "severity": "$vastdata_severity", "mapped_severity": "$vastdata_mapped_severity", "object_id": "$vastdata_object_id", "object_type": "$vastdata_object_type", "object_name": "$vastdata_object_name", "property": "$vastdata_property", "timestamp": "$vastdata_timestamp"} --method POST --enable