List Reports
Lists all report templates.
ReportTemplatesApi.listReportTemplates([param1, param2, ...])
ReportTemplatesApi.list_report_templates([param1, param2, ...])
ReportTemplatesApi.listReportTemplates([param1, param2, ...])
successful operation
Not authorized to view report templates.
- Java
- Python
- JavaScript
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.ReportTemplatesApi; import com.trendmicro.deepsecurity.model.ReportTemplates; public class ListReportTemplatesExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth Legacy API Key = (ApiKeyAuth) defaultClient.getAuthentication("Legacy API Key"); Legacy API Key.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } ApiKeyAuth Trend Micro Cloud One API Key = (ApiKeyAuth) defaultClient.getAuthentication("Trend Micro Cloud One API Key"); Trend Micro Cloud One API Key.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values ReportTemplatesApi instance = new ReportTemplatesApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ReportTemplates result = instance.listReportTemplates(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ReportTemplatesApi.listReportTemplates"); e.printStackTrace(); } } }
- 200
{- "reportTemplates": [
- {
- "name": "string",
- "description": "string",
- "timeFilterSupported": true,
- "computerFilterSupported": true,
- "tagFilterSupported": true,
- "supportedFormats": [
- "pdf"
], - "ID": 0
}
]
}
Search Reports
Search for report templates using optional filters.
ReportTemplatesApi.searchReportTemplates([param1, param2, ...])
ReportTemplatesApi.search_report_templates([param1, param2, ...])
ReportTemplatesApi.searchReportTemplates([param1, param2, ...])
header Parameters
Request Body schema: application/json
A collection of options used to filter the search results.
successful operation
Not authorized to view report templates.
- Payload
- Java
- Python
- JavaScript
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "numericValueList": [
- 0
], - "stringTest": "equal",
- "stringValue": "string",
- "stringWildcards": true,
- "choiceTest": "equal",
- "choiceValue": "string",
- "firstDateValue": 0,
- "firstDateInclusive": true,
- "lastDateValue": 0,
- "lastDateInclusive": true,
- "nullTest": true,
- "versionTest": "less-than",
- "versionValue": "string",
- "idValue": 0,
- "idTest": "less-than",
- "idValueList": [
- 0
]
}
], - "sortByObjectID": true
}
- 200
{- "reportTemplates": [
- {
- "name": "string",
- "description": "string",
- "timeFilterSupported": true,
- "computerFilterSupported": true,
- "tagFilterSupported": true,
- "supportedFormats": [
- "pdf"
], - "ID": 0
}
]
}
Describe a Report
Describe a report template by ID.
ReportTemplatesApi.describeReportTemplate([param1, param2, ...])
ReportTemplatesApi.describe_report_template([param1, param2, ...])
ReportTemplatesApi.describeReportTemplate([param1, param2, ...])
successful operation
Not authorized to view report templates.
The report template does not exist.
- Java
- Python
- JavaScript
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.ReportTemplatesApi; import com.trendmicro.deepsecurity.model.ReportTemplate; public class DescribeReportTemplateExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth Legacy API Key = (ApiKeyAuth) defaultClient.getAuthentication("Legacy API Key"); Legacy API Key.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } ApiKeyAuth Trend Micro Cloud One API Key = (ApiKeyAuth) defaultClient.getAuthentication("Trend Micro Cloud One API Key"); Trend Micro Cloud One API Key.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values ReportTemplatesApi instance = new ReportTemplatesApi(); Integer reportTemplateID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ReportTemplate result = instance.describeReportTemplate(reportTemplateID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ReportTemplatesApi.describeReportTemplate"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "description": "string",
- "timeFilterSupported": true,
- "computerFilterSupported": true,
- "tagFilterSupported": true,
- "supportedFormats": [
- "pdf"
], - "ID": 0
}