Lists all device exception rules assigned to a computer.
ComputerDeviceControlExceptionRulesApi.listExceptionRulesOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.list_exception_rules_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.listExceptionRulesOnComputer([param1, param2, ...])
successful operation
User or API key is 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.ComputerDeviceControlExceptionRulesApi; import com.trendmicro.deepsecurity.model.ExceptionRules; public class ListExceptionRulesOnComputerExample { 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 ComputerDeviceControlExceptionRulesApi instance = new ComputerDeviceControlExceptionRulesApi(); Integer computerID = 1; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ExceptionRules result = instance.listExceptionRulesOnComputer(computerID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerDeviceControlExceptionRulesApi.listExceptionRulesOnComputer"); e.printStackTrace(); } } }
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}
Assign device exception rules to a computer.
ComputerDeviceControlExceptionRulesApi.addExceptionRulesOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.add_exception_rules_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.addExceptionRulesOnComputer([param1, param2, ...])
Exception Rules for the device.
Array of objects (ExceptionRule) |
successful operation
User or API key is not authorized to modify the computer or the requested modification is not permitted.
The computer does not exist.
{- "exceptionRules": [
- {
- "deviceID": 0,
- "action": "full-access"
}
]
}
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}
Set device exception rules assigned to a computer.
ComputerDeviceControlExceptionRulesApi.setExceptionRulesOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.set_exception_rules_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.setExceptionRulesOnComputer([param1, param2, ...])
Exception Rules for the device.
Array of objects (ExceptionRule) |
successful operation
User or API key is not authorized to modify the computer or the requested modification is not permitted.
The computer does not exist.
{- "exceptionRules": [
- {
- "deviceID": 0,
- "action": "full-access"
}
]
}
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}
Unassign a device exception rule from a computer.
ComputerDeviceControlExceptionRulesApi.removeExceptionRuleOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.remove_exception_rule_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.removeExceptionRuleOnComputer([param1, param2, ...])
successful operation
User or API key is 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.ComputerDeviceControlExceptionRulesApi; import com.trendmicro.deepsecurity.model.ExceptionRules; public class RemoveExceptionRuleOnComputerExample { 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 ComputerDeviceControlExceptionRulesApi instance = new ComputerDeviceControlExceptionRulesApi(); Integer computerID = 1; Long exceptionRuleID = 1L; Boolean overrides = false; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ExceptionRules result = instance.removeExceptionRuleOnComputer(computerID, exceptionRuleID, overrides, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerDeviceControlExceptionRulesApi.removeExceptionRuleOnComputer"); e.printStackTrace(); } } }
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}