List integrity monitoring rules
Lists all integrity monitoring rules assigned to a policy.
PolicyIntegrityMonitoringRuleDetailsApi.listIntegrityMonitoringRulesOnPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.list_integrity_monitoring_rules_on_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.listIntegrityMonitoringRulesOnPolicy([param1, param2, ...])
successful operation
Not authorized to view the policy.
The policy 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.PolicyIntegrityMonitoringRuleDetailsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringRules; public class ListIntegrityMonitoringRulesOnPolicyExample { 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 PolicyIntegrityMonitoringRuleDetailsApi instance = new PolicyIntegrityMonitoringRuleDetailsApi(); Integer policyID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringRules result = instance.listIntegrityMonitoringRulesOnPolicy(policyID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntegrityMonitoringRuleDetailsApi.listIntegrityMonitoringRulesOnPolicy"); e.printStackTrace(); } } }
- 200
{- "integrityMonitoringRules": [
- {
- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "minimumManagerVersion": "string",
- "severity": "low",
- "type": "string",
- "originalIssue": 0,
- "lastUpdated": 0,
- "identifier": "string",
- "template": "registry",
- "registryKeyRoot": "string",
- "registryKeyValue": "string",
- "registryIncludeSubKeys": true,
- "registryIncludedValues": [
- "string"
], - "registryIncludeDefaultValue": true,
- "registryExcludedValues": [
- "string"
], - "registryAttributes": [
- "string"
], - "fileBaseDirectory": "string",
- "fileIncludeSubDirectories": true,
- "fileIncludedValues": [
- "string"
], - "fileExcludedValues": [
- "string"
], - "fileAttributes": [
- "string"
], - "customXML": "string",
- "alertEnabled": true,
- "realTimeMonitoringEnabled": true,
- "recommendationsMode": "enabled",
- "ID": 0
}
]
}
Describe an integrity monitoring rule
Describe an integrity monitoring rule including policy-level overrides.
PolicyIntegrityMonitoringRuleDetailsApi.describeIntegrityMonitoringRuleOnPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.describe_integrity_monitoring_rule_on_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.describeIntegrityMonitoringRuleOnPolicy([param1, param2, ...])
path Parameters
successful operation
Not authorized to view the policy.
The policy or integrity monitoring rule 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.PolicyIntegrityMonitoringRuleDetailsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringRule; public class DescribeIntegrityMonitoringRuleOnPolicyExample { 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 PolicyIntegrityMonitoringRuleDetailsApi instance = new PolicyIntegrityMonitoringRuleDetailsApi(); Integer policyID = 1; Integer integrityMonitoringRuleID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringRule result = instance.describeIntegrityMonitoringRuleOnPolicy(policyID, integrityMonitoringRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntegrityMonitoringRuleDetailsApi.describeIntegrityMonitoringRuleOnPolicy"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "minimumManagerVersion": "string",
- "severity": "low",
- "type": "string",
- "originalIssue": 0,
- "lastUpdated": 0,
- "identifier": "string",
- "template": "registry",
- "registryKeyRoot": "string",
- "registryKeyValue": "string",
- "registryIncludeSubKeys": true,
- "registryIncludedValues": [
- "string"
], - "registryIncludeDefaultValue": true,
- "registryExcludedValues": [
- "string"
], - "registryAttributes": [
- "string"
], - "fileBaseDirectory": "string",
- "fileIncludeSubDirectories": true,
- "fileIncludedValues": [
- "string"
], - "fileExcludedValues": [
- "string"
], - "fileAttributes": [
- "string"
], - "customXML": "string",
- "alertEnabled": true,
- "realTimeMonitoringEnabled": true,
- "recommendationsMode": "enabled",
- "ID": 0
}
Modify an integrity monitoring rule
Modify an integrity monitoring rule assigned to a policy. Any unset elements will be left unchanged.
PolicyIntegrityMonitoringRuleDetailsApi.modifyIntegrityMonitoringRuleOnPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.modify_integrity_monitoring_rule_on_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.modifyIntegrityMonitoringRuleOnPolicy([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the integrity monitoring rule to modify.
successful operation
Not authorized to modify the policy or the requested modification is not permitted.
The policy or integrity monitoring rule does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "severity": "low",
- "template": "registry",
- "registryKeyRoot": "string",
- "registryKeyValue": "string",
- "registryIncludeSubKeys": true,
- "registryIncludedValues": [
- "string"
], - "registryIncludeDefaultValue": true,
- "registryExcludedValues": [
- "string"
], - "registryAttributes": [
- "string"
], - "fileBaseDirectory": "string",
- "fileIncludeSubDirectories": true,
- "fileIncludedValues": [
- "string"
], - "fileExcludedValues": [
- "string"
], - "fileAttributes": [
- "string"
], - "customXML": "string",
- "alertEnabled": true,
- "realTimeMonitoringEnabled": true,
- "recommendationsMode": "enabled"
}
- 200
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "minimumManagerVersion": "string",
- "severity": "low",
- "type": "string",
- "originalIssue": 0,
- "lastUpdated": 0,
- "identifier": "string",
- "template": "registry",
- "registryKeyRoot": "string",
- "registryKeyValue": "string",
- "registryIncludeSubKeys": true,
- "registryIncludedValues": [
- "string"
], - "registryIncludeDefaultValue": true,
- "registryExcludedValues": [
- "string"
], - "registryAttributes": [
- "string"
], - "fileBaseDirectory": "string",
- "fileIncludeSubDirectories": true,
- "fileIncludedValues": [
- "string"
], - "fileExcludedValues": [
- "string"
], - "fileAttributes": [
- "string"
], - "customXML": "string",
- "alertEnabled": true,
- "realTimeMonitoringEnabled": true,
- "recommendationsMode": "enabled",
- "ID": 0
}
Reset integrity monitoring rule overrides
Remove all overrides for an integrity monitoring rule from a policy.
PolicyIntegrityMonitoringRuleDetailsApi.resetIntegrityMonitoringRuleOnPolicy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.reset_integrity_monitoring_rule_on_policy([param1, param2, ...])
PolicyIntegrityMonitoringRuleDetailsApi.resetIntegrityMonitoringRuleOnPolicy([param1, param2, ...])
path Parameters
successful operation
Not authorized to modify the policy.
The policy 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.PolicyIntegrityMonitoringRuleDetailsApi; import com.trendmicro.deepsecurity.model.IntegrityMonitoringRule; public class ResetIntegrityMonitoringRuleOnPolicyExample { 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 PolicyIntegrityMonitoringRuleDetailsApi instance = new PolicyIntegrityMonitoringRuleDetailsApi(); Integer policyID = 1; Integer integrityMonitoringRuleID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IntegrityMonitoringRule result = instance.resetIntegrityMonitoringRuleOnPolicy(policyID, integrityMonitoringRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyIntegrityMonitoringRuleDetailsApi.resetIntegrityMonitoringRuleOnPolicy"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "description": "string",
- "minimumAgentVersion": "string",
- "minimumManagerVersion": "string",
- "severity": "low",
- "type": "string",
- "originalIssue": 0,
- "lastUpdated": 0,
- "identifier": "string",
- "template": "registry",
- "registryKeyRoot": "string",
- "registryKeyValue": "string",
- "registryIncludeSubKeys": true,
- "registryIncludedValues": [
- "string"
], - "registryIncludeDefaultValue": true,
- "registryExcludedValues": [
- "string"
], - "registryAttributes": [
- "string"
], - "fileBaseDirectory": "string",
- "fileIncludeSubDirectories": true,
- "fileIncludedValues": [
- "string"
], - "fileExcludedValues": [
- "string"
], - "fileAttributes": [
- "string"
], - "customXML": "string",
- "alertEnabled": true,
- "realTimeMonitoringEnabled": true,
- "recommendationsMode": "enabled",
- "ID": 0
}