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
Copy file name to clipboardExpand all lines: docs/analytics.md
+39-2Lines changed: 39 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ The following methods call Veracode REST APIs and return JSON.
6
6
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
-
-`Analytics().create_report(report_type ('findings'),last_updated_start_date(opt), last_updated_end_date (opt), scan_type (opt), finding_status(opt), passed_policy(opt), policy_sandbox(opt), application_id(opt), rawjson(opt), deletion_start_date(opt), deletion_end_date(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 supports `findings`, `scans`, and `deletedscans`.
9
+
-`Analytics().create_report(report_type ('findings'),last_updated_start_date(opt), last_updated_end_date (opt), scan_type (opt), finding_status(opt), passed_policy(opt), policy_sandbox(opt), application_id(opt), rawjson(opt), deletion_start_date(opt), deletion_end_date(opt), start_date(opt), end_date(opt), audit_action(opt), target_user_id(opt), modifier_user_id(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 supports `findings`, `scans`, `deletedscans`, and `audit`.
11
11
-`last_updated_start_date`: required for `findings` report type, beginning of date range for new or changed findings or scans
12
12
-`last_updated_end_date`: optional, end of date range for new or changed findings or scans
13
13
-`scan_type`: optional, one or more of 'Static Analysis', 'Dynamic Analysis', 'Manual', 'Software Composition Analysis', 'SCA'. `SCA` is only supported for the `findings` report type.
@@ -19,6 +19,43 @@ The following methods call Veracode REST APIs and return JSON.
19
19
-`deletion_start_date`: required for `deletedscans` report type, beginning of date range for deleted scans.
20
20
-`deletion_end_date`: optional, end of date range for deleted scans.
21
21
-`sandbox_ids`: optional, array of sandbox IDs (integers) for which to return results
22
+
-`start_date`: required for `audit` report type, beginning of date range for audit events
23
+
-`end_date`: optional for `audit` report type, end of date range for audit events
24
+
-`audit_action`: optional for `audit` report type. An array of audit actions to include in the report. Examples include `Login`, `Login Account`, `Auth`, `Create`, `Delete`, `Update`
25
+
-`target_user_id`: optional for `audit` report type. The numeric user id of the user for which you want to retrieve audit events that happened to the user.
26
+
-`modifier_user_id`: optional for `audit` report type. The numeric user id of the user for which you want to retrieve audit events that were caused by the user.
27
+
28
+
-`Analytics().create_findings_report(last_updated_start_date(opt), 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 findings 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:
29
+
-`start_date`: required, beginning of date range for findings
30
+
-`end_date`: optional, end of date range for findings
31
+
-`scan_type`: optional, one or more of 'Static Analysis', 'Dynamic Analysis', 'Manual', 'Software Composition Analysis', 'SCA'.
32
+
-`finding_status`: optional, 'Open' or 'Closed'. Applies only to the `findings` report.
33
+
-`passed_policy`: optional, boolean. Applies only to the `findings` report.
34
+
-`policy_sandbox`: optional, 'Policy' or 'Sandbox'
35
+
-`application_id`: optional. The numeric application id of an application whose findings you want to include in the report.
36
+
-`rawjson`: optional, defaults to False. Returns full response if True, the GUID of the request if false
37
+
38
+
-`Analytics().create_scans_report(start_date, end_date(opt), scan_type(opt), policy_sandbox(opt), application_id(opt), rawjson(opt))`: set up a request for a scans 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:
39
+
-`start_date`: required, beginning of date range for scans
40
+
-`end_date`: optional, end of date range for scans
41
+
-`scan_type`: optional, one or more of 'Static Analysis', 'Dynamic Analysis', 'Manual'.
42
+
-`policy_sandbox`: optional, 'Policy' or 'Sandbox'
43
+
-`application_id`: optional. The numeric application id of an application whose scans you want to include in the report.
44
+
-`rawjson`: optional, defaults to False. Returns full response if True, the GUID of the request if false
45
+
46
+
-`Analytics().create_deleted_scans_report(start_date, end_date(opt), application_id(opt),rawjson(opt))`: set up a request for a deleted scans 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:
47
+
-`start_date`: required, beginning of date range for deleted scans
48
+
-`end_date`: optional, end of date range for deleted scans
49
+
-`application_id`: optional. The numeric application id of an application whose deleted scans you want to include in the report.
50
+
-`rawjson`: optional, defaults to False. Returns full response if True, the GUID of the request if false
51
+
52
+
-`Analytics().create_audit_report(start_date, end_date(opt), audit_action(opt), target_user_id(opt), modifier_user_id(opt),rawjson(opt))`: set up a request for an audit log 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:
53
+
-`start_date`: required, beginning of date range for audit events
54
+
-`end_date`: optional, end of date range for audit events
55
+
-`audit_action`: optional. An array of audit actions to include in the report. Examples include `Success`, `Logged out`, `Create`, `Delete`, `Update`
56
+
-`target_user_id`: optional. The numeric user id of the user for which you want to retrieve audit events that happened to the user.
57
+
-`modifier_user_id`: optional. The numeric user id of the user for which you want to retrieve audit events that were caused by the user.
58
+
-`rawjson`: optional, defaults to False. Returns full response if True, the GUID of the request if false
22
59
23
60
-`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`.
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.61',
10
+
version='0.9.62',
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