Lists all file extension lists.
FileExtensionListsApi.listFileExtensionLists([param1, param2, ...])
FileExtensionListsApi.list_file_extension_lists([param1, param2, ...])
FileExtensionListsApi.listFileExtensionLists([param1, param2, ...])
successful operation
Not authorized to view file extension lists.
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.FileExtensionListsApi; import com.trendmicro.deepsecurity.model.FileExtensionLists; public class ListFileExtensionListsExample { 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 FileExtensionListsApi instance = new FileExtensionListsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours FileExtensionLists result = instance.listFileExtensionLists(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling FileExtensionListsApi.listFileExtensionLists"); e.printStackTrace(); } } }
{- "fileExtensionLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a new file extension list.
FileExtensionListsApi.createFileExtensionList([param1, param2, ...])
FileExtensionListsApi.create_file_extension_list([param1, param2, ...])
FileExtensionListsApi.createFileExtensionList([param1, param2, ...])
The settings of the new file extension list.
successful operation
Not authorized to create file extension lists.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search for file extension lists using optional filters.
FileExtensionListsApi.searchFileExtensionLists([param1, param2, ...])
FileExtensionListsApi.search_file_extension_lists([param1, param2, ...])
FileExtensionListsApi.searchFileExtensionLists([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view file extension lists.
{- "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
}
{- "fileExtensionLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Describe a file extension list by ID.
FileExtensionListsApi.describeFileExtensionList([param1, param2, ...])
FileExtensionListsApi.describe_file_extension_list([param1, param2, ...])
FileExtensionListsApi.describeFileExtensionList([param1, param2, ...])
successful operation
Not authorized to view file extension lists.
The file extension 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.FileExtensionListsApi; import com.trendmicro.deepsecurity.model.FileExtensionList; public class DescribeFileExtensionListExample { 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 FileExtensionListsApi instance = new FileExtensionListsApi(); Integer fileExtensionListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours FileExtensionList result = instance.describeFileExtensionList(fileExtensionListID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling FileExtensionListsApi.describeFileExtensionList"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a file extension list by ID. Any unset elements will be left unchanged.
FileExtensionListsApi.modifyFileExtensionList([param1, param2, ...])
FileExtensionListsApi.modify_file_extension_list([param1, param2, ...])
FileExtensionListsApi.modifyFileExtensionList([param1, param2, ...])
The settings of the file extension list to modify.
successful operation
Not authorized to modify file extension lists or the requested modification is not permitted.
The file extension does not exist.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a file extension list by ID.
FileExtensionListsApi.deleteFileExtensionList([param1, param2, ...])
FileExtensionListsApi.delete_file_extension_list([param1, param2, ...])
FileExtensionListsApi.deleteFileExtensionList([param1, param2, ...])
Request is successful.
Not authorized to delete file extension lists.
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.FileExtensionListsApi; public class DeleteFileExtensionListExample { 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 FileExtensionListsApi instance = new FileExtensionListsApi(); Integer fileExtensionListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteFileExtensionList(fileExtensionListID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling FileExtensionListsApi.deleteFileExtensionList"); e.printStackTrace(); } } }