Fortinet white logo
Fortinet white logo

New Features

Action - Webhook Extensions

Action - Webhook Extensions

This feature introduces the PATCH and DELETE methods in the Webhook section in Security Fabric > Automation.

The following shows examples of PATCH and DELETE methods using the GUI and CLI.

To set the Patch method using the GUI:
  1. Go to Security Fabric > Automation and click Create New.
  2. In the Action section, click Webhook to display the Webhook section.
  3. For the Method, select PATCH.

  4. Fill in the other fields and click OK.

On the server, check that FortiGate sends the header, body, and method correctly:

To set the Patch method using the CLI, see the following example:

In the CLI, set method patch is added.

config system automation-action

edit "demowebhook"

set action-type webhook

set method patch

set uri "10.6.30.44/v1/{tenant_id}/stacks/{stack_name}/{stack_id}"

set http-body "testbody"

set port 80

set headers "headervalue:headercontentvalue"

next

end

To set the Delete method using the GUI:
  1. Go to Security Fabric > Automation and click Create New.
  2. In the Action section, click Webhook to display the Webhook section.
  3. For the Method, select DELETE.

  4. Fill in the other fields and click OK.

On the server, check that FortiGate sends the header, body, and method correctly:

To set the Delete method using the CLI, see the following example:

In the CLI, set method delete is added.

config system automation-action

edit "demowebhook"

set action-type webhook

set method delete

set uri "10.6.30.44/v1/{tenant_id}/stacks/{stack_name}/{stack_id}"

set http-body "/v1/{tenant_id}/stacks/{stack_name}/{stack_id}/preview"

set port 80

set headers "headervalue:headercontentvalue"

next

end

Action - Webhook Extensions

Action - Webhook Extensions

This feature introduces the PATCH and DELETE methods in the Webhook section in Security Fabric > Automation.

The following shows examples of PATCH and DELETE methods using the GUI and CLI.

To set the Patch method using the GUI:
  1. Go to Security Fabric > Automation and click Create New.
  2. In the Action section, click Webhook to display the Webhook section.
  3. For the Method, select PATCH.

  4. Fill in the other fields and click OK.

On the server, check that FortiGate sends the header, body, and method correctly:

To set the Patch method using the CLI, see the following example:

In the CLI, set method patch is added.

config system automation-action

edit "demowebhook"

set action-type webhook

set method patch

set uri "10.6.30.44/v1/{tenant_id}/stacks/{stack_name}/{stack_id}"

set http-body "testbody"

set port 80

set headers "headervalue:headercontentvalue"

next

end

To set the Delete method using the GUI:
  1. Go to Security Fabric > Automation and click Create New.
  2. In the Action section, click Webhook to display the Webhook section.
  3. For the Method, select DELETE.

  4. Fill in the other fields and click OK.

On the server, check that FortiGate sends the header, body, and method correctly:

To set the Delete method using the CLI, see the following example:

In the CLI, set method delete is added.

config system automation-action

edit "demowebhook"

set action-type webhook

set method delete

set uri "10.6.30.44/v1/{tenant_id}/stacks/{stack_name}/{stack_id}"

set http-body "/v1/{tenant_id}/stacks/{stack_name}/{stack_id}/preview"

set port 80

set headers "headervalue:headercontentvalue"

next

end