Lists all integrity monitoring rule IDs assigned to a policy.
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.listIntegrityMonitoringRuleIDsOnPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.list_integrity_monitoring_rule_ids_on_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.listIntegrityMonitoringRuleIDsOnPolicy([param1, param2, ...])
successful operation
Not authorized to view the policy.
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.PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringAssignments; public class ListIntegrityMonitoringRuleIDsOnPolicyExample { 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 PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi instance = new PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi(); Integer policyID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringAssignments result = instance.listIntegrityMonitoringRuleIDsOnPolicy(policyID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.listIntegrityMonitoringRuleIDsOnPolicy"); e.printStackTrace(); } } }
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Assign integrity monitoring rule IDs to a policy.
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.addIntegrityMonitoringRuleIDsToPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.add_integrity_monitoring_rule_ids_to_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.addIntegrityMonitoringRuleIDsToPolicy([param1, param2, ...])
The ID numbers of the integrity monitoring rules to add.
successful operation
Not authorized to modify the policy or the requested modification is not permitted.
The policy does not exist.
{- "ruleIDs": [
- 0
]
}
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Set integrity monitoring rule IDs assigned to a policy.
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.setIntegrityMonitoringRuleIDsOnPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.set_integrity_monitoring_rule_ids_on_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.setIntegrityMonitoringRuleIDsOnPolicy([param1, param2, ...])
The ID numbers of the integrity monitoring rules to set.
successful operation
Not authorized to modify the policy or the requested modification is not permitted.
The policy does not exist.
{- "ruleIDs": [
- 0
]
}
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}
Unassign an integrity monitoring rule ID from a policy.
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.removeIntegrityMonitoringRuleIDFromPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.remove_integrity_monitoring_rule_id_from_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.removeIntegrityMonitoringRuleIDFromPolicy([param1, param2, ...])
successful operation
Not authorized to modify the policy or the requested modification is not permitted.
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.PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringAssignments; public class RemoveIntegrityMonitoringRuleIDFromPolicyExample { 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 PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi instance = new PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi(); Integer policyID = 1; Integer integrityMonitoringRuleID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringAssignments result = instance.removeIntegrityMonitoringRuleIDFromPolicy(policyID, integrityMonitoringRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntegrityMonitoringRuleAssignmentsRecommendationsApi.removeIntegrityMonitoringRuleIDFromPolicy"); e.printStackTrace(); } } }
{- "assignedRuleIDs": [
- 0
], - "recommendationScanStatus": "none",
- "lastRecommendationScanDate": 0,
- "recommendedToAssignRuleIDs": [
- 0
], - "recommendedToUnassignRuleIDs": [
- 0
]
}