List File Lists
Lists all file lists.
FileListsApi.listFileLists([param1, param2, ...])
FileListsApi.list_file_lists([param1, param2, ...])
FileListsApi.listFileLists([param1, param2, ...])
successful operation
Not authorized to view file lists.
- 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.FileListsApi; import com.trendmicro.deepsecurity.model.FileLists; public class ListFileListsExample { 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 FileListsApi instance = new FileListsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours FileLists result = instance.listFileLists(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling FileListsApi.listFileLists"); e.printStackTrace(); } } }
- 200
{- "fileLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a File List
Create a new file list.
FileListsApi.createFileList([param1, param2, ...])
FileListsApi.create_file_list([param1, param2, ...])
FileListsApi.createFileList([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new file list.
successful operation
Not authorized to create file lists.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Describe a File List
Describe a file list by ID.
FileListsApi.describeFileList([param1, param2, ...])
FileListsApi.describe_file_list([param1, param2, ...])
FileListsApi.describeFileList([param1, param2, ...])
successful operation
Not authorized to view file lists.
The file list 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.FileListsApi; import com.trendmicro.deepsecurity.model.FileList; public class DescribeFileListExample { 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 FileListsApi instance = new FileListsApi(); Integer fileListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours FileList result = instance.describeFileList(fileListID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling FileListsApi.describeFileList"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a File List
Modify a file list by ID. Any unset elements will be left unchanged.
FileListsApi.modifyFileList([param1, param2, ...])
FileListsApi.modify_file_list([param1, param2, ...])
FileListsApi.modifyFileList([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the file list to modify.
successful operation
Not authorized to modify file lists or the requested modification is not permitted.
The file list does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a File List
Delete a file list by ID.
FileListsApi.deleteFileList([param1, param2, ...])
FileListsApi.delete_file_list([param1, param2, ...])
FileListsApi.deleteFileList([param1, param2, ...])
Request is successful.
Not authorized to delete file lists.
- 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.FileListsApi; public class DeleteFileListExample { 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 FileListsApi instance = new FileListsApi(); Integer fileListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteFileList(fileListID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling FileListsApi.deleteFileList"); e.printStackTrace(); } } }
Search File Lists
Search for file lists using optional filters.
FileListsApi.searchFileLists([param1, param2, ...])
FileListsApi.search_file_lists([param1, param2, ...])
FileListsApi.searchFileLists([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 file lists.
- 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
{- "fileLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}