List Software Inventories
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.
- 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.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 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 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(); } } }
- 200
{- "softwareInventories": [
- {
- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
]
}
Create a Software Inventory
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, ...])
header Parameters
Request Body schema: application/json
The settings of the new software inventory.
successful operation
Not authorized to create software inventories.
- Payload
- Java
- Python
- JavaScript
{- "computerID": 0,
- "name": "string",
- "description": "string"
}
- 200
{- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
Search Software Inventories
Search for a software inventory using optional filters.
SoftwareInventoriesApi.searchSoftwareInventories([param1, param2, ...])
SoftwareInventoriesApi.search_software_inventories([param1, param2, ...])
SoftwareInventoriesApi.searchSoftwareInventories([param1, param2, ...])
header Parameters
Request Body schema: application/json
A collection of options used to filter the search results.
successful operation
Not authorized to view software inventories.
- 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
{- "softwareInventories": [
- {
- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
]
}
Describe a Software Inventory
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.
- 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.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 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 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(); } } }
- 200
{- "computerID": 0,
- "name": "string",
- "description": "string",
- "state": "unknown",
- "startDate": 0,
- "completedDate": 0,
- "initiatorID": 0,
- "ID": 0
}
Delete a Software Inventory
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.
- 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.SoftwareInventoriesApi; public class DeleteSoftwareInventoryExample { 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 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(); } } }
List Software Inventory Items
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.
- 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.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 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 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(); } } }
- 200
{- "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 Software Inventory Items
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, ...])
path Parameters
header Parameters
Request Body schema: application/json
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.
- 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
{- "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
Describe a software inventory item by ID.
SoftwareInventoriesApi.describeSoftwareInventoryItem([param1, param2, ...])
SoftwareInventoriesApi.describe_software_inventory_item([param1, param2, ...])
SoftwareInventoriesApi.describeSoftwareInventoryItem([param1, param2, ...])
path Parameters
successful operation
Not authorized to view the software inventory.
The inventory item does not exist or the software inventory 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.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 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 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(); } } }
- 200
{- "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
}