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:
- Go to Security Fabric > Automation and click Create New.
- In the Action section, click Webhook to display the Webhook section.
- For the Method, select PATCH.
- 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:
- Go to Security Fabric > Automation and click Create New.
- In the Action section, click Webhook to display the Webhook section.
- For the Method, select DELETE.
- 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