Describe an intrusion prevention application type including policy-level overrides.
PolicyIntrusionPreventionApplicationTypeDetailsApi.describeIntrusionPreventionApplicationTypeOnPolicy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.describe_intrusion_prevention_application_type_on_policy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.describeIntrusionPreventionApplicationTypeOnPolicy([param1, param2, ...])
successful operation
Not authorized to view the policy.
The policy or application type 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.PolicyIntrusionPreventionApplicationTypeDetailsApi; import com.trendmicro.deepsecurity.model.ApplicationType; public class DescribeIntrusionPreventionApplicationTypeOnPolicyExample { 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 PolicyIntrusionPreventionApplicationTypeDetailsApi instance = new PolicyIntrusionPreventionApplicationTypeDetailsApi(); Integer policyID = 1; Integer applicationTypeID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApplicationType result = instance.describeIntrusionPreventionApplicationTypeOnPolicy(policyID, applicationTypeID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntrusionPreventionApplicationTypeDetailsApi.describeIntrusionPreventionApplicationTypeOnPolicy"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
Modify an intrusion prevention application type assigned to a policy. Any unset elements will be left unchanged.
PolicyIntrusionPreventionApplicationTypeDetailsApi.modifyIntrusionPreventionApplicationTypeOnPolicy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.modify_intrusion_prevention_application_type_on_policy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.modifyIntrusionPreventionApplicationTypeOnPolicy([param1, param2, ...])
The settings of the application type to modify.
successful operation
Not authorized to modify the policy or the requested modification is not permitted.
The policy or application type does not exist.
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled"
}
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
Remove all overrides for an intrusion prevention application type from a policy.
PolicyIntrusionPreventionApplicationTypeDetailsApi.resetIntrusionPreventionApplicationTypeOnPolicy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.reset_intrusion_prevention_application_type_on_policy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.resetIntrusionPreventionApplicationTypeOnPolicy([param1, param2, ...])
successful operation
Not authorized to modify the policy.
The policy 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.PolicyIntrusionPreventionApplicationTypeDetailsApi; import com.trendmicro.deepsecurity.model.ApplicationType; public class ResetIntrusionPreventionApplicationTypeOnPolicyExample { 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 PolicyIntrusionPreventionApplicationTypeDetailsApi instance = new PolicyIntrusionPreventionApplicationTypeDetailsApi(); Integer policyID = 1; Integer applicationTypeID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApplicationType result = instance.resetIntrusionPreventionApplicationTypeOnPolicy(policyID, applicationTypeID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntrusionPreventionApplicationTypeDetailsApi.resetIntrusionPreventionApplicationTypeOnPolicy"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
Lists all intrusion prevention application types assigned to a policy.
PolicyIntrusionPreventionApplicationTypeDetailsApi.listIntrusionPreventionApplicationTypesOnPolicy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.list_intrusion_prevention_application_types_on_policy([param1, param2, ...])
PolicyIntrusionPreventionApplicationTypeDetailsApi.listIntrusionPreventionApplicationTypesOnPolicy([param1, param2, ...])
successful operation
Not authorized to view the policy.
The policy 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.PolicyIntrusionPreventionApplicationTypeDetailsApi; import com.trendmicro.deepsecurity.model.ApplicationTypes; public class ListIntrusionPreventionApplicationTypesOnPolicyExample { 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 PolicyIntrusionPreventionApplicationTypeDetailsApi instance = new PolicyIntrusionPreventionApplicationTypeDetailsApi(); Integer policyID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApplicationTypes result = instance.listIntrusionPreventionApplicationTypesOnPolicy(policyID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntrusionPreventionApplicationTypeDetailsApi.listIntrusionPreventionApplicationTypesOnPolicy"); e.printStackTrace(); } } }
{- "applicationTypes": [
- {
- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "direction": "incoming",
- "protocol": "icmp",
- "portType": "any",
- "portMultiple": [
- "string"
], - "portListID": 0,
- "recommendationsMode": "enabled",
- "ID": 0
}
]
}