Skip to main content
Contributor III
June 4, 2020

Technical Note: [FortiSOAR / Cybersponse Tricks'n'Tips] Alert Ingestion to CyOPs via API

  • June 4, 2020
  • 0 replies
  • 1029 views
Description

Challenge:

Ingest Alerts to CyOPs through API. For different APIs different output json is received. Keys received in json output has to be segregated and mapped to CyOPs alert fields

Solution:

API output is captured in {{vars.result}} in playbook step. Output json in {{vars.result}} can be stored in variables and variables are used to map keys to field in CyOps Alert.

How to:

1. Create a Playbook with API trigger step

2. Add API end point

3. The output of the API step looks like:

4. The result of an  API call is stored in environment variable called vars.result. It can be referenced as {{  vars.result }}

5. variables are referenced as individual key value from API call output

6. Example:  vars.result.body  , is referencing key body  and we are storing that in a variable api_call_result_body  This way you can reference result of an API call

7. As seen in below screenshot,  api_call_result variable is storing all output / result of an API call

 

8. These variables can be used as inputs to fill the create record step

 

 

 

 


Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!