Fortinet black logo

Handbook

Webhook action

Webhook action

The Webhook action can send data to another application using a REST callback.

In this example, in case of high server response time, FortiADC will change the configuration on FortiGate to prioritize specific applications.

To configure the Webhook automation stitch:

  1. Go to Security Fabric > Automation.
  2. Click Create New.
  3. Enter a name for the stitch.
  4. Select Enable to enable this automation.
  5. Select the trigger SLB Metric and configure the settings:
    Performance EventThe server load balance performance event that will trigger the action.
    Comparator

    The comparator to use:

    • Ge – greater than

    • Le – less than

    • Eq – equal to

    The action will be triggered if the specified value satisfies the selected option.

    ValueThe metric value that the Comparator uses to determine if the metric triggers an action.
    Virtual ServerThe virtual server.
    DurationThe event duration, in seconds (5 - 3600, default = 5).
  6. Select Webhook and configure the settings:
    NameThe action name.
    DelayThe amount of time after the previous action before this action executes, in seconds (0 - 3600, default = 0).
    ProtocolThe request protocol to use: HTTP or HTTPS.
    MethodThe request method: POST, PUT, GET, PATCH, or DELETE.
    URLThe request URL.
    HTTP Body

    The request body.

    HTTP HeaderThe HTTP request header name and value.
  7. Click Save.

Webhook action

The Webhook action can send data to another application using a REST callback.

In this example, in case of high server response time, FortiADC will change the configuration on FortiGate to prioritize specific applications.

To configure the Webhook automation stitch:

  1. Go to Security Fabric > Automation.
  2. Click Create New.
  3. Enter a name for the stitch.
  4. Select Enable to enable this automation.
  5. Select the trigger SLB Metric and configure the settings:
    Performance EventThe server load balance performance event that will trigger the action.
    Comparator

    The comparator to use:

    • Ge – greater than

    • Le – less than

    • Eq – equal to

    The action will be triggered if the specified value satisfies the selected option.

    ValueThe metric value that the Comparator uses to determine if the metric triggers an action.
    Virtual ServerThe virtual server.
    DurationThe event duration, in seconds (5 - 3600, default = 5).
  6. Select Webhook and configure the settings:
    NameThe action name.
    DelayThe amount of time after the previous action before this action executes, in seconds (0 - 3600, default = 0).
    ProtocolThe request protocol to use: HTTP or HTTPS.
    MethodThe request method: POST, PUT, GET, PATCH, or DELETE.
    URLThe request URL.
    HTTP Body

    The request body.

    HTTP HeaderThe HTTP request header name and value.
  7. Click Save.