getsharedreportinfo.do

APIs

The getsharedreportinfo.do call returns the information about a specific shared report, or, if you do not specify a shared report ID, of the latest report that was shared.

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

app_id Integer. Required.
shared_report_id Integer. Optional. You can get the shared report ID from the sharedreportlist.xml file that is returned by the getsharedreportlist.do call.

Example

curl --compressed -u <VeracodeUsername>
          https://analysiscenter.veracode.com/api/4.0/getsharedreportinfo.do -F "app_id=10442" -F
          "shared_report_id=10049"

Results

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

<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="10241" app_id="10442" shared_report_id="10049">
<sharedreport shared_report_id="10049" report_name="Testing VAST Report_Latest" policy_name="TEST VAST" policy_version="1" policy_compliance_status="Pass" rule_status="Pass" scan_status="Pass" shared_date="2013-09-05T11:13:52-04:00">
<analysis_unit analysis_type="Static" analysis_name="3 Sep 2013 Static"/>
</sharedreport>
</sharedreportinfo>