Lists all log inspection rule IDs assigned to a computer.
ComputerLogInspectionRuleAssignmentsRecommendationsApi.listLogInspectionRuleIDsOnComputer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.list_log_inspection_rule_ids_on_computer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.listLogInspectionRuleIDsOnComputer([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.ComputerLogInspectionRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.LogInspectionAssignments; public class ListLogInspectionRuleIDsOnComputerExample { 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 ComputerLogInspectionRuleAssignmentsRecommendationsApi instance = new ComputerLogInspectionRuleAssignmentsRecommendationsApi(); Integer computerID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours LogInspectionAssignments result = instance.listLogInspectionRuleIDsOnComputer(computerID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerLogInspectionRuleAssignmentsRecommendationsApi.listLogInspectionRuleIDsOnComputer"); e.printStackTrace(); } } }
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Assign log inspection rule IDs to a computer.
ComputerLogInspectionRuleAssignmentsRecommendationsApi.addLogInspectionRuleIDsToComputer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.add_log_inspection_rule_ids_to_computer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.addLogInspectionRuleIDsToComputer([param1, param2, ...])
The ID numbers of the log inspection 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
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Set log inspection rule IDs assigned to a computer.
ComputerLogInspectionRuleAssignmentsRecommendationsApi.setLogInspectionRuleIDsOnComputer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.set_log_inspection_rule_ids_on_computer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.setLogInspectionRuleIDsOnComputer([param1, param2, ...])
The ID numbers of the log inspection 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
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Unassign a log inspection rule ID from a computer.
ComputerLogInspectionRuleAssignmentsRecommendationsApi.removeLogInspectionRuleIDFromComputer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.remove_log_inspection_rule_id_from_computer([param1, param2, ...])
ComputerLogInspectionRuleAssignmentsRecommendationsApi.removeLogInspectionRuleIDFromComputer([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.ComputerLogInspectionRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.LogInspectionAssignments; public class RemoveLogInspectionRuleIDFromComputerExample { 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 ComputerLogInspectionRuleAssignmentsRecommendationsApi instance = new ComputerLogInspectionRuleAssignmentsRecommendationsApi(); Integer computerID = 1; Integer logInspectionRuleID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours LogInspectionAssignments result = instance.removeLogInspectionRuleIDFromComputer(computerID, logInspectionRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerLogInspectionRuleAssignmentsRecommendationsApi.removeLogInspectionRuleIDFromComputer"); e.printStackTrace(); } } }
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}