Plan ID

5 views
Skip to first unread message

James L

unread,
Oct 31, 2025, 8:48:42 AM (9 days ago) Oct 31
to ZAP User Group
Greetings,

I have been working on ZAP with an automation framework plan running in Jenkins. I wrote a python script that runs before ZAP kicks off and it quires the status of the automation plan. Once it determines the automation plan has finished Ascan the script pull alert data from the zap API and formats into a json object I can import into  my KB. 

The problem I've been having is that the script needs to know the plan id to query the status of the automation framework job. I  tried assuming the plan id would be 0 and if no plan is returned increment by one.

Is there a way to assign a planid? I could change my approach and have a python run in jython as a step in the automation plan but I would need to rewrite since my script is in python3. Any suggestions would be much appreciated!

Thank you,

-James 




kingthorin+zap

unread,
Oct 31, 2025, 10:07:27 AM (9 days ago) Oct 31
to ZAP User Group

Why not use one of the existing JSON reports? Or create a template for your own JSON report that outputs what you need. Then include a reporting job in the af plan.

James L

unread,
Oct 31, 2025, 10:50:03 AM (9 days ago) Oct 31
to zaprox...@googlegroups.com


The main issue with the json report is that I want to include response and request data but limit which alerts return traffic and how much. 

I will double check if there is data that I'm pulling not available in the report. If there isn't I can probably process the existing json report output.  

I'll also look into a custom report option. 

--
ZAP by Checkmarx: https://www.zaproxy.org/
---
You received this message because you are subscribed to a topic in the Google Groups "ZAP User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zaproxy-users/jSZWp_qgqhQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zaproxy-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/zaproxy-users/ce2b44b1-aaca-4b57-8714-4a2cc8fc8d5en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages