The following methods call Veracode XML APIs and return XML output. For a more detailed reference on the underlying API calls, see the Veracode docs.
XMLAPI().get_app_list()
: get a list of Veracode applications (XML format)XMLAPI().get_app_info(app_id)
: get application info for theapp_id
(integer) passed.XMLAPI().get_sandbox_list(app_id)
: get list of sandboxes for theapp_id
(integer) passed.XMLAPI().get_build_list(app_id, sandbox_id(opt))
: get list of builds for theapp_id
(integer) passed. Ifsandbox_id
(integer) passed, returns a list of builds in the sandbox.XMLAPI().get_build_info(app_id, build_id, sandbox_id(opt))
: get build info for thebuild_id
(integer) andapp_id
(integer) passed. Ifsandbox_id
(integer) passed, returns information for thebuild_id
in the sandbox.XMLAPI().get_detailed_report(build_id)
: get detailed report XML for thebuild_id
(integer) passed.XMLAPI().set_mitigation_info(build_id,flaw_id_list,action,comment)
: create a mitigation of typeaction
with commentcomment
for the flaws inflaw_id_list
(comma separated list of integers) of buildbuild_id
(integer). Supported values foraction
: 'Mitigate by Design', 'Mitigate by Network Environment', 'Mitigate by OS Environment', 'Approve Mitigation', 'Reject Mitigation', 'Potential False Positive', 'Reported to Library Maintainer'. Any other value passed toaction
is interpreted as a comment.XMLAPI().generate_archer(payload)
: generate an Archer report based on the comma separated list of parameters provided. Possible parameters includeperiod
(yesterday
,last_week
,last_month
; all time if omitted),from_date
(mm-dd-yyyy format),to_date
(mm-dd-yyyy format),scan_type
(one ofstatic
,dynamic
,manual
). Returns a payload that contains a token to download an Archer report.XMLAPI().download_archer(token(opt))
: get Archer report corresponding to the token passed. If no token passed, retrieves the latest Archer report generated.XMLAPI().upload_file(app_id, file, sandbox_id(opt), save_as(opt))
: Uploads a file to an existing build or creates a build.XMLAPI().begin_prescan(app_id, sandbox_id(opt), auto_scan(opt), scan_all_nonfatal_top_level_modules(opt)
: begin a static prescan on the application and/or sandbox specified.XMLAPI().begin_scan(app_id, modules(opt), scan_all_top_level_modules(opt),scan_selected_modules(opt),scan_previously_selected_modules(opt),sandbox_id(opt))
: begin a static scan on the application and/or sandbox specified.XMLAPI().get_prescan_results(app_id, build_id(opt), sandbox_id(opt))
: get the prescan results for the application, sandbox and/or scan specified.XMLAPI().get_file_list(app_id, build_id(opt), sandbox_id(opt))
: get the list of files uploaded for the application, sandbox, and/or scan specified.XMLAPI().remove_file(app_id, file_id, sandbox_id(opt))
: delete a file previously uploaded for the application and/or sandbox specified.XMLAPI().delete_build(app_id, sandbox_id(opt))
: delete the last build uploaded for the application and/or sandbox specified.