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.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; 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 DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.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(); } } }
{- "reportTemplates": [
- {
- "name": "string",
- "description": "string",
- "timeFilterSupported": true,
- "computerFilterSupported": true,
- "tagFilterSupported": true,
- "supportedFormats": [
- "pdf"
], - "ID": 0
}
]
}
Search for report templates using optional filters.
ReportTemplatesApi.searchReportTemplates([param1, param2, ...])
ReportTemplatesApi.search_report_templates([param1, param2, ...])
ReportTemplatesApi.searchReportTemplates([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view report templates.
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "stringTest": "equal",
- "stringValue": "string",
- "stringWildcards": true,
- "choiceTest": "equal",
- "choiceValue": "string",
- "firstDateValue": 0,
- "firstDateInclusive": true,
- "lastDateValue": 0,
- "lastDateInclusive": true,
- "nullTest": true,
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "reportTemplates": [
- {
- "name": "string",
- "description": "string",
- "timeFilterSupported": true,
- "computerFilterSupported": true,
- "tagFilterSupported": true,
- "supportedFormats": [
- "pdf"
], - "ID": 0
}
]
}
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.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; 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 DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.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(); } } }
{- "name": "string",
- "description": "string",
- "timeFilterSupported": true,
- "computerFilterSupported": true,
- "tagFilterSupported": true,
- "supportedFormats": [
- "pdf"
], - "ID": 0
}