Skip to main content
Data Infrastructure Insights

Workload Security Webhook Example for Discord

Contributors netapp-alavoie

Webhooks allow users to send alert notifications to various applications using a customized webhook channel. This page provides an example for setting up webhooks for Discord.

Note This page refers to third-party instructions, which care subject to change. Refer to the Discord documentation for the most up-to-date information.

Discord Setup:

  • In Discord, select the Server, under Text Channels, select Edit Channel (gear icon)

  • Select Integrations > View Webhooks and click New Webhook

  • Copy the Webhook URL. You will need to paste this into the Workload Security webhook configuration.

Create Workload Security Webhook:

  1. Navigate to Admin > Notifications and select the Workload Security Webhooks tab. Click '+ Webhook' to create a new webhook.

  2. Give the webhook a meaningful Name.

  3. In the Template Type drop-down, select Discord.

  4. Paste the Discord URL from above into the URL field.

workload security webhook discord example

In order to test the webhook, temporarily replace the URL value in the message body with any valid URL (such as https://netapp.com) then click the Test Webhook button. Discord requires that a valid URL be supplied in order for Test Webhook functionality to work.

Be sure to set the message body back once the test completes.

Notifications via Webhook

To notify on events via webhook, navigate to Workload Security > Policies. Click on +Attack Policy or +Warning Policy.

  • Enter a meaningful policy name.

  • Select the required Attack Type(s), Devices to which policy should be attached, and required Actions.

  • Under the Webhooks Notifications dropdown, select the required Discord webhooks and save.

Note: Webhooks can also be attached to existing policies by editing them.

Attack policy dialog showing webhook dropdown