getcallstacks.do
The getcallstacks.do
call retrieves the call stacks for a specified flaw in a specific build.
Before using this API, Veracode strongly recommends that you read API usage and access guidelines. Ensure you access the APIs with the domain for your region.
REST API equivalent
The REST API equivalent of this call is a GET
to /appsec/v1/custom_fields
using the Findings API. Veracode strongly recommends that you use the REST API for this action. For new integrations, always use the REST APIs.
Resource URL
https://analysiscenter.veracode.com/api/5.0/getcallstacks.do
Parameters
Name | Type | Description |
---|---|---|
build_id Required | Integer | Application or sandbox build ID. |
flaw_id Required | Integer | To find flaw_id values, look for issueid fields in the detailed XML report. |
This call returns detailed flaw data only available for internally developed applications. Using this call for a third-party application returns an error.
HTTPie example
Examples use the HTTPie command-line tool.
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/getcallstacks.do" "build_id==<build_id>" "flaw_id==13"
HTTPie results
The getcallstacks.do
call returns the callstacks_<app_id>_<build_id>_<flaw_id>
XML document, which references the callstacks.xsd
schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8"?>
<callstacks xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/callstacks"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/callstacks
https://analysiscenter.veracode.com/resource/2.0/callstacks.xsd"
callstacks_version="1.1" build_id="4722563" flaw_id="13">
<callstack module_name="app_web_commentview.ascx.cd7a1e1e.dll" steps="1" local_path="documents and settings/
tjones#x2f;my documents/demo/blogenginedotnet/1.3/blogengine.web/themes/
python-demo/commentview.ascx" function_name="__Render__control1" line_number="8">
<call data_path="1" file_name="commentview.ascx" file_path="documents and settings/tjones#x2f;my documents/
demo/blogenginedotnet/1.3/blogengine.web/themes/python-demo/commentview.ascx"
function_name="__Render__control1" line_number="8"/>
</callstack>
</callstacks>
Java wrapper example
java -jar vosp-api-wrapper-java{version}.jar -vid <Veracode API ID> -vkey <Veracode API Key> -action getcallstacks -buildid <build id> -flawid 13
C# wrapper example
VeracodeC#API -vid <Veracode API ID> -vkey <Veracode API key> -action getcallstacks -buildid <build id> -flawid 13
API wrapper results
The getcallstacks.do
call returns the callstacks_<app_id>_<build_id>_<flaw_id>
XML document, which references the callstacks.xsd
schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<callstacks xmlns="https://analysiscenter.veracode.com/schema/2.0/callstacks"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" build_id="<build id>"
callstacks_version="1.1" flaw_id="13"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/callstacks
https://analysiscenter.veracode.com/resource/2.0/callstacks.xsd">
<callstack function_name="__Render__control1" line_number="8"
local_path="documents and settings/juno/my
documents/demo/blogenginedotnet/1.3/blogengine.web/themes/barks/commentview.ascx"
module_name="app_web_commentview.ascx.cd7a1e1e.dll" steps="1">
<call data_path="1" file_name="commentview.ascx" file_path="documents and settings/juno/my
documents/demo/blogenginedotnet/1.3/blogengine.web/themes/barks/commentview.ascx"
function_name="__Render__control1" line_number="8"/>
</callstack>
</callstacks>