Skip to main content
Jian
New Member
November 4, 2023
Question

Tutorial / Documentation for writing json files to construct playbooks

  • November 4, 2023
  • 2 replies
  • 1471 views

Hi everyone,

We are working on a project to programmatically generating playbooks by auto-write the json files.

For instance, we want to generate json files like this https://github.com/fortinet-fortisoar/solution-pack-ot-vulnerability-management/blob/release/1.0.0/playbooks/02%20-%20Use%20Case%20-%20KEV%20Alert/%3E%20Create%20KEV%20Alert.json. which could be loaded for FortiSoar and display as a playbook.

However we have some difficulties to find documentation / information on the exact definition of different field names. For example, we want to understand more systematically about the different subfields and values in the "argument" and the "condition" json object in the link above.

Do you know if there are any available documentation and tutorials for this?

Best,

Jian

2 replies

anarula
Staff
Staff
November 8, 2023

@Jian -- Thank you for posting your quetion.

We did not anticipate that our customer base would like to use raw JSON to create playbooks and hence have not planned on documenting the individual constructs.

 

Could you elaborate on the use case, and why you would like to generate JSON?

 

Jian
JianAuthor
New Member
November 8, 2023

Hi Anarula,

Thanks for the quick reply.

We are experimenting with programmatically generate playbooks in batch with more config flexibility. Mostly we have a lot of repetition work and want to see if we can make it a bit faster.

We would highly appreciate if you could provide some pointers on documents or information that helps us learns better how to write the json files, especially definition of those fields. And maybe there could be some collaboration in the future if things pans out.

Best,

Jian

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!