Lists all intrustion prevention rule IDs assigned to a computer.
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.listIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.list_intrusion_prevention_rule_ids_on_computer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.listIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])
successful operation
Not authorized to view the computer.
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.ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.IntrusionPreventionAssignments; public class ListIntrusionPreventionRuleIDsOnComputerExample { 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 ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi instance = new ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi(); Integer computerID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntrusionPreventionAssignments result = instance.listIntrusionPreventionRuleIDsOnComputer(computerID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.listIntrusionPreventionRuleIDsOnComputer"); e.printStackTrace(); } } }
{- "assignedRuleIDs": [
- 0
], - "assignedApplicationTypeIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Assign intrustion prevention rule IDs to a computer.
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.addIntrusionPreventionRuleIDsToComputer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.add_intrusion_prevention_rule_ids_to_computer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.addIntrusionPreventionRuleIDsToComputer([param1, param2, ...])
The ID numbers of the intrustion prevention rules to add.
successful operation
Not authorized to modify the computer or the requested modification is not permitted.
The computer does not exist.
{- "ruleIDs": [
- 0
]
}
{- "assignedRuleIDs": [
- 0
], - "assignedApplicationTypeIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Set intrustion prevention rule IDs assigned to a computer.
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.setIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.set_intrusion_prevention_rule_ids_on_computer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.setIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])
The ID numbers of the intrustion prevention rules to set.
successful operation
Not authorized to modify the computer or the requested modification is not permitted.
The computer does not exist.
{- "ruleIDs": [
- 0
]
}
{- "assignedRuleIDs": [
- 0
], - "assignedApplicationTypeIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Unassign an intrustion prevention rule ID from a computer.
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.removeIntrusionPreventionRuleIDFromComputer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.remove_intrusion_prevention_rule_id_from_computer([param1, param2, ...])
ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.removeIntrusionPreventionRuleIDFromComputer([param1, param2, ...])
successful operation
Not authorized to modify the computer or the requested modification is not permitted.
The computer 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.ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.IntrusionPreventionAssignments; public class RemoveIntrusionPreventionRuleIDFromComputerExample { 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 ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi instance = new ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi(); Integer computerID = 1; Integer intrusionPreventionRuleID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntrusionPreventionAssignments result = instance.removeIntrusionPreventionRuleIDFromComputer(computerID, intrusionPreventionRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.removeIntrusionPreventionRuleIDFromComputer"); e.printStackTrace(); } } }
{- "assignedRuleIDs": [
- 0
], - "assignedApplicationTypeIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}