Lists all software inventories.
SoftwareInventoriesApi.listSoftwareInventories([param1, param2, ...])
SoftwareInventoriesApi.list_software_inventories([param1, param2, ...])
SoftwareInventoriesApi.listSoftwareInventories([param1, param2, ...])
successful operation
Not authorized to view software inventories.
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.SoftwareInventoriesApi; import com.trendmicro.deepsecurity.model.SoftwareInventories; public class ListSoftwareInventoriesExample { 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 SoftwareInventoriesApi instance = new SoftwareInventoriesApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours SoftwareInventories result = instance.listSoftwareInventories(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling SoftwareInventoriesApi.listSoftwareInventories"); e.printStackTrace(); } } }
{- "softwareInventories": [
- {
- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
]
}
Request the creation of a new software inventory to use in creating shared rulesets.
SoftwareInventoriesApi.createSoftwareInventory([param1, param2, ...])
SoftwareInventoriesApi.create_software_inventory([param1, param2, ...])
SoftwareInventoriesApi.createSoftwareInventory([param1, param2, ...])
The settings of the new software inventory.
successful operation
Not authorized to create software inventories.
{- "computerID": 0,
- "name": "string",
- "description": "string"
}
{- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
Describe a software inventory by ID.
SoftwareInventoriesApi.describeSoftwareInventory([param1, param2, ...])
SoftwareInventoriesApi.describe_software_inventory([param1, param2, ...])
SoftwareInventoriesApi.describeSoftwareInventory([param1, param2, ...])
successful operation
Not authorized to view software inventories.
The software inventory 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.SoftwareInventoriesApi; import com.trendmicro.deepsecurity.model.SoftwareInventory; public class DescribeSoftwareInventoryExample { 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 SoftwareInventoriesApi instance = new SoftwareInventoriesApi(); Long softwareInventoryID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours SoftwareInventory result = instance.describeSoftwareInventory(softwareInventoryID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling SoftwareInventoriesApi.describeSoftwareInventory"); e.printStackTrace(); } } }
{- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
Delete a software inventory by ID.
SoftwareInventoriesApi.deleteSoftwareInventory([param1, param2, ...])
SoftwareInventoriesApi.delete_software_inventory([param1, param2, ...])
SoftwareInventoriesApi.deleteSoftwareInventory([param1, param2, ...])
Request is successful.
Request is successful.
Not authorized to delete software inventories.
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.SoftwareInventoriesApi; public class DeleteSoftwareInventoryExample { 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 SoftwareInventoriesApi instance = new SoftwareInventoriesApi(); Long softwareInventoryID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteSoftwareInventory(softwareInventoryID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling SoftwareInventoriesApi.deleteSoftwareInventory"); e.printStackTrace(); } } }
Search for a software inventory using optional filters.
SoftwareInventoriesApi.searchSoftwareInventories([param1, param2, ...])
SoftwareInventoriesApi.search_software_inventories([param1, param2, ...])
SoftwareInventoriesApi.searchSoftwareInventories([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view software inventories.
{- "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
}
{- "softwareInventories": [
- {
- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
]
}
Lists all items of a software inventory.
SoftwareInventoriesApi.listSoftwareInventoryItems([param1, param2, ...])
SoftwareInventoriesApi.list_software_inventory_items([param1, param2, ...])
SoftwareInventoriesApi.listSoftwareInventoryItems([param1, param2, ...])
successful operation
Not authorized to view the software inventory.
The software inventory 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.SoftwareInventoriesApi; import com.trendmicro.deepsecurity.model.InventoryItems; public class ListSoftwareInventoryItemsExample { 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 SoftwareInventoriesApi instance = new SoftwareInventoriesApi(); Long softwareInventoryID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours InventoryItems result = instance.listSoftwareInventoryItems(softwareInventoryID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling SoftwareInventoriesApi.listSoftwareInventoryItems"); e.printStackTrace(); } } }
{- "inventoryItems": [
- {
- "vendorName": "string",
- "productName": "string",
- "productVersion": "string",
- "fileVersion": "string",
- "fileDescription": "string",
- "category": "string",
- "sha256": "string",
- "sha1": "string",
- "md5": "string",
- "fileName": "string",
- "path": "string",
- "size": 0,
- "ID": 0
}
]
}
Search for items of a software inventory using optional filters.
SoftwareInventoriesApi.searchSoftwareInventoryItems([param1, param2, ...])
SoftwareInventoriesApi.search_software_inventory_items([param1, param2, ...])
SoftwareInventoriesApi.searchSoftwareInventoryItems([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view the software inventory.
The software inventory does not exist.
{- "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
}
{- "inventoryItems": [
- {
- "vendorName": "string",
- "productName": "string",
- "productVersion": "string",
- "fileVersion": "string",
- "fileDescription": "string",
- "category": "string",
- "sha256": "string",
- "sha1": "string",
- "md5": "string",
- "fileName": "string",
- "path": "string",
- "size": 0,
- "ID": 0
}
]
}
Describe a software inventory item by ID.
SoftwareInventoriesApi.describeSoftwareInventoryItem([param1, param2, ...])
SoftwareInventoriesApi.describe_software_inventory_item([param1, param2, ...])
SoftwareInventoriesApi.describeSoftwareInventoryItem([param1, param2, ...])
successful operation
Not authorized to view the software inventory.
The inventory item does not exist or the software inventory 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.SoftwareInventoriesApi; import com.trendmicro.deepsecurity.model.InventoryItem; public class DescribeSoftwareInventoryItemExample { 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 SoftwareInventoriesApi instance = new SoftwareInventoriesApi(); Long softwareInventoryID = 1L; Long inventoryItemID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours InventoryItem result = instance.describeSoftwareInventoryItem(softwareInventoryID, inventoryItemID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling SoftwareInventoriesApi.describeSoftwareInventoryItem"); e.printStackTrace(); } } }
{- "vendorName": "string",
- "productName": "string",
- "productVersion": "string",
- "fileVersion": "string",
- "fileDescription": "string",
- "category": "string",
- "sha256": "string",
- "sha1": "string",
- "md5": "string",
- "fileName": "string",
- "path": "string",
- "size": 0,
- "ID": 0
}