rescandynamicscan.do

APIs

Before using this API, Veracode strongly recommends that you read API Usage and Access Guidelines.

Resource URL

https://analysiscenter.veracode.com/api/5.0/rescandynamicscan.do

Permissions

You need the Upload API role or the Upload API - Submit Only role to use this call.

Parameters

app_id Integer. Required.
flaw_only Boolean. Optional.
  • True = rescan only the flaws found in the previous scan.
  • False = perform a full rescan.
scan_name String. Optional.

Example

curl --compressed -u <VeracodeUsername>:<VeracodePassword>
          https://analysiscenter.veracode.com/api/5.0/rescandynamicscan.do -F "app_id=10886"
          "scan_name=1 Jun 2015 Dynamic" -F "flaw_only=true" 

Results

The rescandynamicscan.do call returns the dynamicrescaninfo XML document, which references the dynamicrescaninfo.xsd. Additional dynamicscaninfo.xsd schema documentation is available. Use the XSD file to validate the XML data. The following is an example of returned XML.

<?xml version="1.0" encoding="UTF-8"?> <dynamic_scan_info
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="https://analysiscenter.veracode.com/schema/4.0/dynamicrescaninfo"
          xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/dynamicrescaninfo
          https://analysiscenter.veracode.com/resource/4.0/dynamicrescaninfo.xsd" account_id="5"
          app_id="10002" scan_id="10048" error_message=""> <dynamic_scan scan_id="10048"
          scan_name="1 Jun 2015 Dynamic" scan_status="Incomplete"
          target_url="http://rome.veracode.local/plugintest/" directory_restriction_policy="false"
          https_http_inclusion="true" vsg_id="10003" custom_json="true"> <contact_information
          first_name="h" last_name="h" telephone="111" email="jsmith@veracode.com"/>
          <allowed_hosts> <allowed_host host="http://rome.veracode.local/"
          directory_restriction_policy="no_restrict" https_http_inclusion="true">
          <allowed_host host="http://google.com/" directory_restriction_policy="dir_and_sub"
          https_http_inclusion="true"/> </allowed_hosts> <exclude_urls> <exclude_url
          host="http://rome.veracode.local/plugintest/test" directory_restriction_policy="file"
          https_http_inclusion="false"/> </exclude_urls> <custom_hosts> <custom_host
          host="rome1.veracode.local" ip_address="xx.xx.xx.xx"/> </custom_hosts>
          <login> <auto_login autologin_username="testuser"
          autologin_password="provided"/> </login> </dynamic_scan>
          </dynamic_scan_info>