You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use this library (or a script based on it) with a proxy server, set environment variables with the address of the proxy:
31
+
32
+
export HTTP_PROXY='http://10.10.10.10:8000'
33
+
export HTTPS_PROXY='http://10.10.10.10:1212'
34
+
19
35
## Use in your applications
20
36
21
37
Import VeracodeAPI or one of the individual API classes into your code and call the methods. Most methods return JSON or XML depending on the underlying API.
@@ -28,11 +44,6 @@ For detailed documentation on the available methods, please see the [veracode-ap
28
44
29
45
## Notes
30
46
31
-
1. Different API calls require different roles. Consult the [Veracode Docs](https://docs.veracode.com/r/c_role_permissions).
47
+
1. Different API calls require different roles or permissions. Consult the [Veracode Docs](https://docs.veracode.com/r/c_role_permissions).
32
48
2. This library does not include a complete set of Veracode API methods. In particular, it only provides a handful of XML API methods.
33
-
3. To use this library (or a script based on it) with a proxy server, you can set environment variables with the addresses of the proxies:
34
-
35
-
-`export HTTP_PROXY='http://10.10.10.10:8000'`
36
-
-`export HTTPS_PROXY='http://10.10.10.10:1212'`
37
-
38
-
4. Contributions are welcome. See the [Contributions guidelines](CONTRIBUTING.md).
49
+
3. Contributions are welcome. See the [Contributions guidelines](CONTRIBUTING.md).
Copy file name to clipboardExpand all lines: docs/analytics.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,20 @@ The following methods call Veracode REST APIs and return JSON.
7
7
1. The Reporting API is available to Veracode customers by request. More information about the API is available in the [Veracode Docs](https://docs.veracode.com/r/Reporting_REST_API).
8
8
9
9
-`Analytics().create_report(report_type ('findings'),last_updated_start_date, last_updated_end_date (opt), scan_type (opt), finding_status(opt), passed_policy(opt), policy_sandbox(opt), application_id(opt), rawjson(opt))`: set up a request for a report. By default this command returns the GUID of the report request; specify `rawjson=True` to get the full response. Dates should be specified as `YYYY-MM-DD HH:MM:SS` with the timestamp optional. Options include:
10
-
-`report_type`: required, currently only supports `findings`
10
+
-`report_type`: required, currently supports `findings` and `scans`.
11
11
-`last_updated_start_date`: required, beginning of date range for new or changed findings
12
12
-`last_updated_end_date`: optional, end of date range for new or changed findings
13
13
-`scan_type`: optional, one or more of 'Static Analysis', 'Dynamic Analysis', 'Manual', 'Software Composition Analysis', 'SCA'
14
-
-`finding_status`: optional, 'Open' or 'Closed'
15
-
-`passed_policy`: optional, boolean
14
+
-`finding_status`: optional, 'Open' or 'Closed'. Applies only to the `findings` report.
15
+
-`passed_policy`: optional, boolean. Applies only to the `findings` report.
16
16
-`policy_sandbox`: optional, 'Policy' or 'Sandbox'
17
17
-`application_id`: optional, application ID for which to return results
18
18
-`rawjson`: optional, defaults to False. Returns full response if True, the GUID of the request if false
19
19
20
-
-`Analytics().get(guid)`: check the status of the report request and return the report contents when ready. Note that this method returns a tuple of `status` (string) and `results` (list); when `status` is `COMPLETED`, the `results` list will populate with results.
20
+
-`Analytics().get(guid, report_type(findings))`: check the status of the report request and return the report contents when ready. Note that this method returns a tuple of `status` (string) and `results` (list); when `status` is `COMPLETED`, the `results` list will populate with results. Also, you need to specify the type of data expected by the GUID with `report_type`; this defaults to `findings`.
21
+
22
+
-`Analytics().get_findings(guid)`: check the status of a findings report request specified by `guid` and return the report contents when ready. Note that this method returns a tuple of `status` (string) and `results` (list); when `status` is `COMPLETED`, the `results` list will populate with results.
23
+
24
+
-`Analytics().get_scans(guid)`: check the status of a scans report request specified by `guid` and return the report contents when ready. Note that this method returns a tuple of `status` (string) and `results` (list); when `status` is `COMPLETED`, the `results` list will populate with results.
Copy file name to clipboardExpand all lines: docs/api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ As an alternative to importing individual objects into your library, you can acc
74
74
75
75
*See also*: You can also access this method from the [SummaryReport class](findings.md#summary-report).
76
76
77
-
-`get_summary_report(app,sandbox(opt))`: get the summary report for `app` (guid) or its `sandbox` (guid).
77
+
-`get_summary_report(app,sandbox(opt), build_id(opt))`: get the summary report for `app` (guid) or its `sandbox` (guid). Optionally specify a `build_id` to get a summary report for an older scan.
Copy file name to clipboardExpand all lines: docs/findings.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The following methods call Veracode REST APIs and return JSON.
20
20
21
21
## Summary Report
22
22
23
-
-`SummaryReport().get_summary_report(app,sandbox(opt))`: get the summary report for `app` (guid) or its `sandbox` (guid).
23
+
-`SummaryReport().get_summary_report(app,sandbox(opt), build_id(opt))`: get the summary report for `app` (guid) or its `sandbox` (guid). Optionally specify a `build_id` to get a summary report for an older scan.
description = 'Python helper library for working with the Veracode APIs. Handles retries, pagination, and other features of the modern Veracode REST APIs.'
Copy file name to clipboardExpand all lines: setup.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@
7
7
setup(
8
8
name='veracode_api_py',
9
9
packages= ['veracode_api_py'],
10
-
version='0.9.49',
10
+
version='0.9.51',
11
11
license='MIT',
12
12
description='Python helper library for working with the Veracode APIs. Handles retries, pagination, and other features of the modern Veracode REST APIs.',
0 commit comments