The getsharedreportinfo.do call returns information about a specific shared report or the latest shared report.
Before
using this API, Veracode strongly recommends that you read API Usage and Access
Guidelines.
Resource URL
https://analysiscenter.veracode.com/api/4.0/getsharedreportinfo.do
Parameters
Name | Type | Description |
---|---|---|
app_id Required |
Integer | Application ID. |
shared_report_id | Integer | Enter the ID for a shared report. You can get a shared report ID from the
sharedreportlist.xml file returned by the getsharedreportlist.do call. If you do not specify a shared report ID, the getsharedreportinfo.do call returns the latest shared report. |
HTTPie Example
Examples use the HTTPie command-line tool. See Using HTTPie with the Python Authentication Library.
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/4.0/getsharedreportinfo.do" "app_id==<app id>" "shared_report_id==10651"
HTTPie Results
The getsharedreportinfo.do call returns the sharedreportinfo XML document, which references the sharedreportinfo.xsd schema file. You can use the XSD schema file to validate the XML data. See the sharedreportinfo.xsd schema documentation.
<?xml version="1.0" encoding="UTF-8"?> <sharedreportinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://analysiscenter.veracode.com/schema/3.0/sharedreportinfo" xsi:schemaLocation="https://analysiscenter.veracode.com/schema/3.0/sharedreportinfo https://analysiscenter.veracode.com/resource/3.0/sharedreportinfo.xsd" account_id="<account id>" app_id="<app id>" shared_report_id="10651"> <sharedreport shared_report_id="10651" report_name="Vendor A's static scan" policy_name="3rd Party" policy_version="2" policy_compliance_status="Did Not Pass" rule_status="Did Not Pass" scan_status="Pass" shared_date="2019-07-22T09:06:19-05:00"> <analysis_unit analysis_type="Static" analysis_name="22 July 2019 Static"/> </sharedreport> </sharedreportinfo>