List Application Types
Lists all application types.
ApplicationTypesApi.listApplicationTypes([param1, param2, ...])
ApplicationTypesApi.list_application_types([param1, param2, ...])
ApplicationTypesApi.listApplicationTypes([param1, param2, ...])
successful operation
Not authorized to view application types.
- 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.ApplicationTypesApi; import com.trendmicro.deepsecurity.model.ApplicationTypes; public class ListApplicationTypesExample { 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 ApplicationTypesApi instance = new ApplicationTypesApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApplicationTypes result = instance.listApplicationTypes(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApplicationTypesApi.listApplicationTypes"); e.printStackTrace(); } } }
- 200
{- "applicationTypes": [
- {
- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
]
}
Create an Application Type
Create a new application type.
ApplicationTypesApi.createApplicationType([param1, param2, ...])
ApplicationTypesApi.create_application_type([param1, param2, ...])
ApplicationTypesApi.createApplicationType([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new application type.
successful operation
Not authorized to view application types.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled"
}
- 200
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
Search Application Types
Search for application types using optional filters.
ApplicationTypesApi.searchApplicationTypes([param1, param2, ...])
ApplicationTypesApi.search_application_types([param1, param2, ...])
ApplicationTypesApi.searchApplicationTypes([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 application types.
- 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,
- "idValueList": [
- 0
], - "idTest": "less-than"
}
], - "sortByObjectID": true
}
- 200
{- "applicationTypes": [
- {
- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
]
}
Describe an Application Type
Describe an application type by ID.
ApplicationTypesApi.describeApplicationType([param1, param2, ...])
ApplicationTypesApi.describe_application_type([param1, param2, ...])
ApplicationTypesApi.describeApplicationType([param1, param2, ...])
successful operation
Not authorized to view application types.
The application type 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.ApplicationTypesApi; import com.trendmicro.deepsecurity.model.ApplicationType; public class DescribeApplicationTypeExample { 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 ApplicationTypesApi instance = new ApplicationTypesApi(); Integer applicationTypeID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApplicationType result = instance.describeApplicationType(applicationTypeID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApplicationTypesApi.describeApplicationType"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
Modify an Application Type
Modify an application type by ID. Any unset elements will be left unchanged.
ApplicationTypesApi.modifyApplicationType([param1, param2, ...])
ApplicationTypesApi.modify_application_type([param1, param2, ...])
ApplicationTypesApi.modifyApplicationType([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the application type to modify.
successful operation
Not authorized to modify application types or the requested modification is not permitted.
The application type does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled"
}
- 200
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
Delete an Application Type
Delete an application type by ID.
ApplicationTypesApi.deleteApplicationType([param1, param2, ...])
ApplicationTypesApi.delete_application_type([param1, param2, ...])
ApplicationTypesApi.deleteApplicationType([param1, param2, ...])
Request is successful.
Not authorized to delete application types.
- 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.ApplicationTypesApi; public class DeleteApplicationTypeExample { 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 ApplicationTypesApi instance = new ApplicationTypesApi(); Integer applicationTypeID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteApplicationType(applicationTypeID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling ApplicationTypesApi.deleteApplicationType"); e.printStackTrace(); } } }