Create a Dynamic Analysis with a recurring schedule using the REST API
You can use the Dynamic Analysis API to create an analysis that runs on a recurring schedule.
To complete this task:
-
Enter values for the
scan_config_request
,schedule
, andscan_recurrence_schedule
properties in the JSON file. -
Send the following request:
http --auth-type=veracode_hmac POST "https://api.veracode.com/was/configservice/v1/analyses" < input.json
This is an example of the code to add to your call when you want to make your schedule a recurring event:
{
"name": "Name-of-Your-Dynamic-Analysis",
"scans": [
{
"scan_config_request": {
"target_url": {
"url": "http://www.example.com"
}
}
}
],
"schedule": {
"now": true,
"duration": {
"length": 1,
"unit": "DAY"
},
"end_date": "",
"scan_recurrence_schedule": {
"recurrence_type": "WEEKLY",
"schedule_end_after": 2,
"recurrence_interval": 1,
"day_of_week": "FRIDAY"
}
}
}