Setting Pipeline Scan Timeouts with the REST API

Veracode APIs

Veracode APIs
Edition date
Last publication

Use this command to set a timeout for a Pipeline Scan:

http --auth-type=veracode_hmac POST "" < input.json           

The API passes the JSON file that you populate with the necessary values as shown in this example payload:

  "binary_name": "verademo.war",
  "binary_size": 6577398,
  "binary_hash": "48c96bf1ff8b47316683c99376b67b455f0e4a2d9705323fa3bcbe71afe350c7",
  "project_name": "verademo",
  "project_uri": "", 
  "dev_stage": "DEVELOPMENT",
  "scan_timeout": 32

The scan_timeout is an integer value that specifies the timeout period in minutes. The minimum value is 0 and the maximum is 60.