createReport
This method creates a new instant or scheduled report, based on the parameters received, and returns the ID of the new created report.
The instant report is created and runs one-time-only at the API call.
The scheduled report is created at a later time and runs periodically, based on a predefined schedule.
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
| String | No | The name of the report. |
| Number | No | The type of report. One of the following values can be passed:
|
| Array | No | A list with the IDs of the targets for which to create the report. The targets depend on the report type. For these reports, the target can be only the ID of the user's company or IDs of child companies:
For the other report types, the target ID can be of any type: group, company, containers, endpoints. |
| Object | Yes | The object that defines the schedule to run the report. If the parameter is omitted, an instant report is generated. For more information, please check the details of the scheduledInfo object. |
| Object | Yes | The object that defines the options for creating the report. For these reports, the
For more information, please check the details of the options object. |
| Array | Yes | A list of emails where to deliver the report. |
Objects
scheduledInfo
This object is used by the createReport
call and it defines the schedule based on which the report will run.
The object contains a variable number of members, depending on the occurrence of the report:
Name | Type | Description |
---|---|---|
| integer | The member is mandatory. Possible values:
For For |
| integer | The member should be set only if Possible values:
|
| integer | The member should be set only if Possible values:
|
| integer | The member should be set only if Possible values:
|
| array | The member should be set only if Possible values of the array elements:
|
| integer | The member should be set only if Possible values:
|
| integer | The member should be set only if Possible values:
|
options
This object is used by the createReport
call and contains a variable number of members, depending on the report type:
Antiphishing Activity
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only endpoints with blocked websites
Blocked Applications
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Blocked Websites
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only endpoints with blocked websites
Data Protection
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only managed computers with blocked threats
blockedEmails
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
False
blockedWebsites
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
False
Device Control Activity
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Endpoint Protection Status
The object must contain these members:
Name
Type
Description
filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only endpoints filtered by the members described hereinafter.
antivirusOn
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report endpoints with antimalware protection enabled.False
, to exclude from the report endpoints with antimalware protection enabled.
antivirusOff
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report endpoints with antimalware protection disabled.False
, to exclude from the report endpoints with antimalware protection disabled.
updated
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report updated endpoints.False
, to exclude from the report updated endpoints.
disabled
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report endpoints with update disabled.False
, to exclude from the report endpoints with update disabled.
outdated
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report outdated endpoints.False
, to exclude from the report outdated endpoints.
online
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report online endpoints.False
, to exclude from the report online endpoints.
offline
boolean
The member should be set only if
filterType
has the value 1.Possible values:
True
, to include in the report offline endpoints.False
, to exclude from the report offline endpoints.
Firewall Activity
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only endpoints with the following blocked threats: traffic attempts and port scans.
trafficAttempts
boolean
This member should be set only if filterType has the value 1.
Possible values:
True
, to include in the report endpoints with blocked port scans.False
, to exclude from the report endpoints with blocked port scans.
Malware Status
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only endpoints still infected
detailedExport
array
The member is optional.
Possible values:
1 - Include Endpoint Malware Status in PDF file
Monthly License Usage
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.skipSummary
boolean
The member is optional.
An option defining if the CSV file of the Monthly License Usage report
(type = 13)
should include the Summary section. By default, the parameter is set toFalse
, meaning the CSV file includes the Summary.AWS Monthly Usage
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Network Status
The object must contain these members:
Name
Type
Description
filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only endpoints with issues
2 - Only endpoints with unknown status
On demand scanning
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Security Audit
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Top 10 Detected Malware
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Top 10 Infected Endpoints
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Update Status
The object must contain these members:
Name
Type
Description
updated
boolean
Possible values:
True
, to include in the report updated endpoints.False
, to exclude from the report updated endpoints.
disabled
boolean
Possible values:
True
, to include in the report endpoints with update disabled.False
, to exclude from the report endpoints with update disabled.
outdated
boolean
Possible values:
True
, to include in the report outdated endpoints.False
, to exclude from the report outdated endpoints.
pendingRestart
boolean
Possible values:
True
, to include in the report endpoints that need to be restarted.False
, to exclude from the report endpoints that need to be restarted.
VM Network Protection Status
The object must contain these members:
Name
Type
Description
filterType
integer
The member is mandatory.
Possible values:
0 - All endpoints
1 - Only protected endpoints
Email Security Usage
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.HyperDetect Activity
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Network Patch Status
The object must contain these members:
Name
Type
Description
filterType
integer
Possible values:
0 - All available patches
1 - Only patches visible in Patch Inventory
Sandbox Analyzer Failed Submissions
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Network Incidents
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Integrity Monitoring Activity
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.Integrity Monitoring Configuration Changes
The object must contain these members:
Name
Type
Description
reportingInterval
integer
The member is mandatory.
This value depends on the report
occurrence
. For more information, refer to Relation between reporting interval and recurrence.
Important
The object should not be set for these reports:
Endpoint Modules Status
License Status
Upgrade Status
Policy Compliance
Security Server Status
Endpoint Encryption Status
MDR Service Status
Relation between reporting interval and recurrence
occurrence | reportingInterval |
---|---|
2 - Hourly report | Possible values:
|
3 - Daily report | Possible values:
|
4 - Weekly report | Possible values:
For |
5 - Monthly report | Possible values:
For |
6 - Yearly report | Possible values:
|
Return value
This method returns a String: the ID of the created report.
Example
Request:
{ "params": { "name": "My Report hourly", "type": 1, "targetIds": ["559bd17ab1a43d241b7b23c6", "559bd17ab1a43d241b7b23c7"], "scheduledInfo": { "occurrence": 2, "interval": 4 }, "emailList": ["[email protected]", "[email protected]"] }, "jsonrpc": "2.0", "method": "createReport", "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f" }
Request:
{ "params": { "name": "My Report daily", "type": 8, "targetIds": ["559bd17ab1a43d241b7b23c6", "559bd17ab1a43d241b7b23c7"], "scheduledInfo": { "occurrence": 3, "startHour": 10, "startMinute": 30 }, "options": { "filterType": 1, "antivirusOn": true, "antivirusOff": false, "updated": true, "disabled": false, "outdated": false, "online": false, "offline": true } }, "jsonrpc": "2.0", "method": "createReport", "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f" }
Response:
{ "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f", "jsonrpc":"2.0", "result": "563c78e2b1a43d4043d60413" }