Create a Dynamic Analysis of a single URL with prescan verification using the REST API
You can use the Dynamic Analysis API to create an analysis with prescan verification.
Before you begin:
To be able to run a prescan verification before the Dynamic Analysis, you must allow two hours for the prescan to complete before you schedule the analysis to begin.
To complete this task:
-
Enter values for the
scan_config_requestandscheduleproperties in the JSON file. -
Send the following request:
http --auth-type=veracode_hmac POST "https://api.veracode.com/was/configservice/v1/analyses?run_verification=true" < input.jsonThe
run_verification=truequery property specifies that the prescan run after the request creates the analysis.noteIf your prescan verification fails, the Dynamic Analysis also fails.
This is an example of a Dynamic Analysis for a single URL with prescan:
{"name": "Name-of-Your-Dynamic-Analysis","scans": [{"scan_config_request": {"target_url": {"url": "http://www.example.com"}}}],"schedule": {"start_date": "2020-02-27T02:00+00:00","duration": {"length": 3,"unit": "DAY"}}}You can call
GET /analysesto see the status of your analyses.