Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Enable Webhooks and Alerts by Using the API

SUMMARY Here's how to set up webhooks by using the Juniper Mist™ API.

You'll go through this procedure three times to set up three webhooks for Juniper Alert Format Relay:

  • Alarms

  • Device Events

  • Device Up/Downs

Note:

You can enable webhooks by using either the API or the Juniper Mist portal. Also see Enable Webhooks and Alerts by Using the Juniper Mist Portal.

Before You Begin

You'll need information from your pre-installation tasks to replace the placeholder values in the sample payload. See Information Needed for Installation.

Specifically, you'll need:

  • The public IP address and the port that you configured for Juniper Mist Alert Format Relay

  • An API token with Super User access

  • Your Juniper Mist organization ID

To enable webhooks and alerts by using the API:

  1. In your API platform, paste the code shown below. You'll edit it in the next step.
  2. In the AFR-Alarms and AFR-Events sections of the code, replace the placeholder values:
    • Replace <AFR-FQDN/PublicIP>:<Port> with the public IP address and the port that you configured for Juniper Alert Format Relay.

    • Replace <token> with the key for the API token that you created for Juniper Alert Format Relay.

    • Replace <Org_id> with the actual ID for your Juniper Mist organization.

  3. Send the API request.
  4. In the Juniper Mist portal, select the exact alarms and events that you want to monitor.