List Device Exception Rules
Lists device exception rules for this device assigned to policies.
UsbStorageDevicesApi.listPolicyExceptionRules([param1, param2, ...])
USBStorageDevicesApi.list_policy_exception_rules([param1, param2, ...])
USBStorageDevicesApi.listPolicyExceptionRules([param1, param2, ...])
successful operation
User or API key is not authorized to view devices.
The device 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.UsbStorageDevicesApi; import com.trendmicro.deepsecurity.model.PolicyExceptionRules; public class ListPolicyExceptionRulesExample { 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 UsbStorageDevicesApi instance = new UsbStorageDevicesApi(); Long deviceID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours PolicyExceptionRules result = instance.listPolicyExceptionRules(deviceID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling UsbStorageDevicesApi.listPolicyExceptionRules"); e.printStackTrace(); } } }
- 200
{- "policies": [
- {
- "policyID": 0,
- "name": "string",
- "description": "string",
- "ID": 0,
- "action": "full-access"
}
]
}
List USB Storage Devices
Lists all USB storage devices.
UsbStorageDevicesApi.listUSBDevices([param1, param2, ...])
USBStorageDevicesApi.list_usb_devices([param1, param2, ...])
USBStorageDevicesApi.listUSBDevices([param1, param2, ...])
successful operation
User or API key is not authorized to view devices.
- 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.UsbStorageDevicesApi; import com.trendmicro.deepsecurity.model.USBDevices; public class ListUSBDevicesExample { 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 UsbStorageDevicesApi instance = new UsbStorageDevicesApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours USBDevices result = instance.listUSBDevices(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling UsbStorageDevicesApi.listUSBDevices"); e.printStackTrace(); } } }
- 200
{- "usbDevices": [
- {
- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
]
}
Create a USB Storage Device
Create a new USB storage device.
UsbStorageDevicesApi.createUSBDevice([param1, param2, ...])
USBStorageDevicesApi.create_usb_device([param1, param2, ...])
USBStorageDevicesApi.createUSBDevice([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the USB storage device to create.
successful operation
User or API key is not authorized to create devices.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string"
}
- 200
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
Search USB Storage Devices
Search for USB storage devices using optional filters.
UsbStorageDevicesApi.searchUSBDevices([param1, param2, ...])
USBStorageDevicesApi.search_usb_devices([param1, param2, ...])
USBStorageDevicesApi.searchUSBDevices([param1, param2, ...])
header Parameters
Request Body schema: application/json
A collection of options used to filter the search results.
successful operation
User or API key is not authorized to view devices.
- Payload
- Java
- Python
- JavaScript
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "numericValueList": [
- 0
], - "stringTest": "equal",
- "stringValue": "string",
- "stringWildcards": true,
- "choiceTest": "equal",
- "choiceValue": "string",
- "firstDateValue": 0,
- "firstDateInclusive": true,
- "lastDateValue": 0,
- "lastDateInclusive": true,
- "nullTest": true,
- "versionTest": "less-than",
- "versionValue": "string",
- "idValue": 0,
- "idTest": "less-than",
- "idValueList": [
- 0
]
}
], - "sortByObjectID": true
}
- 200
{- "usbDevices": [
- {
- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
]
}
Describe a USB Storage Device
Describe a USB storage device by ID.
UsbStorageDevicesApi.describeUSBDevice([param1, param2, ...])
USBStorageDevicesApi.describe_usb_device([param1, param2, ...])
USBStorageDevicesApi.describeUSBDevice([param1, param2, ...])
successful operation
User or API key is not authorized to view devices.
The device 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.UsbStorageDevicesApi; import com.trendmicro.deepsecurity.model.USBDevice; public class DescribeUSBDeviceExample { 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 UsbStorageDevicesApi instance = new UsbStorageDevicesApi(); Long deviceID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours USBDevice result = instance.describeUSBDevice(deviceID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling UsbStorageDevicesApi.describeUSBDevice"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
Modify a USB Storage Device
Modify a USB storage device by ID. Any unset elements will be left unchanged.
UsbStorageDevicesApi.modifyUSBDevice([param1, param2, ...])
USBStorageDevicesApi.modify_usb_device([param1, param2, ...])
USBStorageDevicesApi.modifyUSBDevice([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the USB storage device to modify.
successful operation
User or API key is not authorized to modify devices or the requested modification is not permitted.
The device does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string"
}
- 200
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
Delete a USB Storage Device
Delete a USB storage device by ID.
UsbStorageDevicesApi.deleteUSBDevice([param1, param2, ...])
USBStorageDevicesApi.delete_usb_device([param1, param2, ...])
USBStorageDevicesApi.deleteUSBDevice([param1, param2, ...])
Request is successful.
User or API key is not authorized to delete devices.
- 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.UsbStorageDevicesApi; public class DeleteUSBDeviceExample { 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 UsbStorageDevicesApi instance = new UsbStorageDevicesApi(); Long deviceID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteUSBDevice(deviceID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling UsbStorageDevicesApi.deleteUSBDevice"); e.printStackTrace(); } } }
List Device Exception Rules
Lists device exception rules for this device assigned to computers.
UsbStorageDevicesApi.listComputerExceptionRules([param1, param2, ...])
USBStorageDevicesApi.list_computer_exception_rules([param1, param2, ...])
USBStorageDevicesApi.listComputerExceptionRules([param1, param2, ...])
successful operation
User or API key is not authorized to view devices.
The device 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.UsbStorageDevicesApi; import com.trendmicro.deepsecurity.model.ComputerExceptionRules; public class ListComputerExceptionRulesExample { 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 UsbStorageDevicesApi instance = new UsbStorageDevicesApi(); Long deviceID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ComputerExceptionRules result = instance.listComputerExceptionRules(deviceID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling UsbStorageDevicesApi.listComputerExceptionRules"); e.printStackTrace(); } } }
- 200
{- "computers": [
- {
- "computerID": 0,
- "hostName": "string",
- "displayName": "string",
- "description": "string",
- "ID": 0,
- "action": "full-access"
}
]
}