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.
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.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 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 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(); } } }
{- "usbDevices": [
- {
- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
]
}
Create a new USB storage device.
UsbStorageDevicesApi.createUSBDevice([param1, param2, ...])
USBStorageDevicesApi.create_usb_device([param1, param2, ...])
USBStorageDevicesApi.createUSBDevice([param1, param2, ...])
The settings of the USB storage device to create.
successful operation
User or API key is not authorized to create devices.
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string"
}
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
Search for USB storage devices using optional filters.
UsbStorageDevicesApi.searchUSBDevices([param1, param2, ...])
USBStorageDevicesApi.search_usb_devices([param1, param2, ...])
USBStorageDevicesApi.searchUSBDevices([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
User or API key is not authorized to view devices.
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 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"
}
], - "sortByObjectID": true
}
{- "usbDevices": [
- {
- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
]
}
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.
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.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 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 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(); } } }
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
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, ...])
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.
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string"
}
{- "name": "string",
- "vendor": "string",
- "model": "string",
- "serialNumber": "string",
- "ID": 0
}
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.
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.UsbStorageDevicesApi; public class DeleteUSBDeviceExample { 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 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(); } } }
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.
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.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 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 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(); } } }
{- "computers": [
- {
- "computerID": 0,
- "hostName": "string",
- "displayName": "string",
- "description": "string",
- "ID": 0,
- "action": "full-access"
}
]
}
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.
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.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 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 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(); } } }
{- "policies": [
- {
- "policyID": 0,
- "name": "string",
- "description": "string",
- "ID": 0,
- "action": "full-access"
}
]
}