Describe an event based task by ID.
EventBasedTasksApi.describeEventBasedTask([param1, param2, ...])
EventBasedTasksApi.describe_event_based_task([param1, param2, ...])
EventBasedTasksApi.describeEventBasedTask([param1, param2, ...])
successful operation
Not authorized to view scheduled tasks.
The event based task 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.EventBasedTasksApi; import com.trendmicro.deepsecurity.model.EventBasedTask; public class DescribeEventBasedTaskExample { 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 EventBasedTasksApi instance = new EventBasedTasksApi(); Integer eventBasedTaskID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours EventBasedTask result = instance.describeEventBasedTask(eventBasedTaskID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling EventBasedTasksApi.describeEventBasedTask"); e.printStackTrace(); } } }
{- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
], - "ID": 0
}
Modify an event based task by ID. Any unset elements will be left unchanged.
EventBasedTasksApi.modifyEventBasedTask([param1, param2, ...])
EventBasedTasksApi.modify_event_based_task([param1, param2, ...])
EventBasedTasksApi.modifyEventBasedTask([param1, param2, ...])
The settings of the event based task to modify.
successful operation
Not authorized to modify event based tasks or the requested modification is not permitted.
The event based task does not exist.
{- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
]
}
{- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
], - "ID": 0
}
Delete an event based task by ID.
EventBasedTasksApi.deleteEventBasedTask([param1, param2, ...])
EventBasedTasksApi.delete_event_based_task([param1, param2, ...])
EventBasedTasksApi.deleteEventBasedTask([param1, param2, ...])
Request is successful.
Not authorized to delete event based tasks.
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.EventBasedTasksApi; public class DeleteEventBasedTaskExample { 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 EventBasedTasksApi instance = new EventBasedTasksApi(); Integer eventBasedTaskID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteEventBasedTask(eventBasedTaskID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling EventBasedTasksApi.deleteEventBasedTask"); e.printStackTrace(); } } }
Lists all event based tasks.
EventBasedTasksApi.listEventBasedTasks([param1, param2, ...])
EventBasedTasksApi.list_event_based_tasks([param1, param2, ...])
EventBasedTasksApi.listEventBasedTasks([param1, param2, ...])
successful operation
Not authorized to view scheduled tasks.
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.EventBasedTasksApi; import com.trendmicro.deepsecurity.model.EventBasedTasks; public class ListEventBasedTasksExample { 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 EventBasedTasksApi instance = new EventBasedTasksApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours EventBasedTasks result = instance.listEventBasedTasks(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling EventBasedTasksApi.listEventBasedTasks"); e.printStackTrace(); } } }
{- "eventBasedTasks": [
- {
- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
], - "ID": 0
}
]
}
Create a new event based task.
EventBasedTasksApi.createEventBasedTask([param1, param2, ...])
EventBasedTasksApi.create_event_based_task([param1, param2, ...])
EventBasedTasksApi.createEventBasedTask([param1, param2, ...])
The settings of the new event based task.
successful operation
Not authorized to create event based tasks.
{- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
]
}
{- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
], - "ID": 0
}
Search for event based tasks using optional filters.
EventBasedTasksApi.searchEventBasedTasks([param1, param2, ...])
EventBasedTasksApi.search_event_based_tasks([param1, param2, ...])
EventBasedTasksApi.searchEventBasedTasks([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view scheduled tasks.
{- "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,
- "versionTest": "less-than",
- "versionValue": "string",
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "eventBasedTasks": [
- {
- "name": "string",
- "type": "computer-created-by-system",
- "enabled": true,
- "lastRunTime": 0,
- "actions": [
- {
- "type": "activate",
- "parameterValue": 0
}
], - "conditions": [
- {
- "field": "hostname",
- "key": "string",
- "value": "string"
}
], - "ID": 0
}
]
}