List Assigned Integrity Monitoring Rule IDs
Lists all integrity monitoring rule IDs assigned to a computer.
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.listIntegrityMonitoringRuleIDsOnComputer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.list_integrity_monitoring_rule_ids_on_computer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.listIntegrityMonitoringRuleIDsOnComputer([param1, param2, ...])
successful operation
Not authorized to view the computer.
- 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.ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringAssignments; public class ListIntegrityMonitoringRuleIDsOnComputerExample { 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 ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi instance = new ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi(); Integer computerID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringAssignments result = instance.listIntegrityMonitoringRuleIDsOnComputer(computerID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.listIntegrityMonitoringRuleIDsOnComputer"); e.printStackTrace(); } } }
- 200
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Add Integrity Monitoring Rule IDs
Assign integrity monitoring rule IDs to a computer.
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.addIntegrityMonitoringRuleIDsToComputer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.add_integrity_monitoring_rule_ids_to_computer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.addIntegrityMonitoringRuleIDsToComputer([param1, param2, ...])
header Parameters
Request Body schema: application/json
The ID numbers of the integrity monitoring rules to add.
successful operation
Not authorized to modify the computer or the requested modification is not permitted.
The computer does not exist.
- Payload
- Java
- Python
- JavaScript
{- "ruleIDs": [
- 0
]
}
- 200
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Set Integrity Monitoring Rule IDs
Set integrity monitoring rule IDs assigned to a computer.
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.setIntegrityMonitoringRuleIDsOnComputer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.set_integrity_monitoring_rule_ids_on_computer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.setIntegrityMonitoringRuleIDsOnComputer([param1, param2, ...])
header Parameters
Request Body schema: application/json
The ID numbers of the integrity monitoring rules to set.
successful operation
Not authorized to modify the computer or the requested modification is not permitted.
The computer does not exist.
- Payload
- Java
- Python
- JavaScript
{- "ruleIDs": [
- 0
]
}
- 200
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Remove an Integrity Monitoring Rule ID
Unassign an integrity monitoring rule ID from a computer.
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.removeIntegrityMonitoringRuleIDFromComputer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.remove_integrity_monitoring_rule_id_from_computer([param1, param2, ...])
ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.removeIntegrityMonitoringRuleIDFromComputer([param1, param2, ...])
path Parameters
successful operation
Not authorized to modify the computer or the requested modification is not permitted.
The computer 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.ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringAssignments; public class RemoveIntegrityMonitoringRuleIDFromComputerExample { 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 ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi instance = new ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi(); Integer computerID = 1; Integer integrityMonitoringRuleID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringAssignments result = instance.removeIntegrityMonitoringRuleIDFromComputer(computerID, integrityMonitoringRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerIntegrityMonitoringRuleAssignmentsRecommendationsApi.removeIntegrityMonitoringRuleIDFromComputer"); e.printStackTrace(); } } }
- 200
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}