List Device Exception Rules
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.
- 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.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 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 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(); } } }
- 200
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}
Add Device Exception Rules
Assign device exception rules to a computer.
ComputerDeviceControlExceptionRulesApi.addExceptionRulesOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.add_exception_rules_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.addExceptionRulesOnComputer([param1, param2, ...])
query Parameters
header Parameters
Request Body schema: application/json
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.
- Payload
- Java
- Python
- JavaScript
{- "exceptionRules": [
- {
- "deviceID": 0,
- "action": "full-access"
}
]
}
- 200
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}
Set Device Exception Rules
Set device exception rules assigned to a computer.
ComputerDeviceControlExceptionRulesApi.setExceptionRulesOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.set_exception_rules_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.setExceptionRulesOnComputer([param1, param2, ...])
query Parameters
header Parameters
Request Body schema: application/json
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.
- Payload
- Java
- Python
- JavaScript
{- "exceptionRules": [
- {
- "deviceID": 0,
- "action": "full-access"
}
]
}
- 200
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}
Remove a Device Exception Rule
Unassign a device exception rule from a computer.
ComputerDeviceControlExceptionRulesApi.removeExceptionRuleOnComputer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.remove_exception_rule_on_computer([param1, param2, ...])
ComputerDeviceControlExceptionRulesApi.removeExceptionRuleOnComputer([param1, param2, ...])
path Parameters
query Parameters
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.
- 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.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 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 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(); } } }
- 200
{- "exceptionRules": [
- {
- "deviceID": 0,
- "createdTime": 0,
- "ID": 0,
- "action": "full-access"
}
]
}