nse8_812 Exam QuestionsBrowse all questions from this exam

nse8_812 Exam - Question 40


An automation stitch was configured using an incoming webhook as the trigger named ‘my_incoming_webhook’.

The action is configured to execute the CLI Script shown:

The base Curl command starts with: curl -k -x POST -H ‘Authorization: Bearer ’ --data

Which Curl command will successfully work with the configured automation stitch?

Show Answer
Correct Answer: AB

To determine the correct cURL command, it is necessary to adhere to the syntax and requirements outlined in the CLI script. The script references a hostname and an IP address formatted as %%results.hostname%% and %%results.ip[1]%%/32, respectively. This implies that the IP should be provided as an array in the data portion of the cURL command. Additionally, the correct URL path for triggering the webhook should be within the 'monitor' path based on Fortinet's API documentation for automation stitches. Hence, the cURL command with data formatted as ‘{ “hostname”: “bad_host_1”, “ip”: [“1.1.1.1”]}’ and URL 'http://192.168.226.129/api/v2/monitor/system/automation-stitch/webhook/my_incoming_webhook' is the correct option.

Discussion

4 comments
Sign in to comment
GoluxOption: B
Jan 4, 2024

B is Correct. Answer A is incorrect, has bracket in front of the IP. and call are within "monitor"

re_j0hn
Feb 21, 2024

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Implement-automation-webhook-stitches-for-API/ta-p/247704

Viewable8041Option: A
Sep 5, 2023

Should be A Calls are within "monitor" URL and the Variable IP is pointing to the first entry within an list

node345Option: A
Feb 29, 2024

A is correct. The web hook is triggered via /api/v2/monitor... and the ip property should be array.

9d1a32cOption: D
Apr 21, 2024

I'm gonna say 'D'. 'cmdb' is needed instead of 'monitor' since this is modifying the configuration by adding an address object - right?

9d1a32c
Apr 22, 2024

I'm gonna retract what i said. The correct answer is 'A'.