getpolicylist.do

APIs

The getpolicylist.do call compiles a list of all the policies available for use by your account.

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

Resource URL

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

Parameters

This call requires no parameters.

cURL Example

curl --compressed -u <VeracodeUsername>:<VeracodePassword>
        https://analysiscenter.veracode.com/api/5.0/getpolicylist.do 

cURL Results

The getpolicylist.do call returns the list XML document, which references the policylist.xsd. Additional policylist.xsd schema documentation is available. Use the XSD file to validate the XML data.

Java Example

java -jar vosp-api-wrappers-java-<version #>.jar -vid <VeracodeApiId> -vkey <VeracodeApiKey> -action getpolicylist
      

Java Results

The following is an example of the returned XML:

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <policylist xmlns="https://analysiscenter.veracode.com/schema/4.0/policylist" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" account_id="<account_id> 
 xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/policylist https://analysiscenter.veracode.com/resource/4.0/policylist.xsd">
        
  <policies names="Veracode Recommended Very High,Veracode Recommended High,Veracode Recommended Medium,Veracode Recommended Low,
  Veracode Recommended Very Low,Veracode Recommended Mobile Policy,Veracode Recommended Very High + SCA,Veracode Recommended High + SCA,
  Veracode Recommended Medium + SCA,Veracode Transitional Very High,Veracode Transitional High,Veracode Transitional Medium,Veracode Transitional Low,
  Veracode Transitional Very Low,PCI 3.2"/>
        
  </policylist>