Describe a File Extension List
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.
- 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.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 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 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(); } } }
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a File Extension List
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, ...])
path Parameters
header Parameters
Request Body schema: application/json
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.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a File Extension List
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.
- 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.FileExtensionListsApi; public class DeleteFileExtensionListExample { 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 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(); } } }
List File Extension Lists
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.
- 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.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 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 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(); } } }
- 200
{- "fileExtensionLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a File Extension List
Create a new file extension list.
FileExtensionListsApi.createFileExtensionList([param1, param2, ...])
FileExtensionListsApi.create_file_extension_list([param1, param2, ...])
FileExtensionListsApi.createFileExtensionList([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new file extension list.
successful operation
Not authorized to create file extension lists.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search File Extension Lists
Search for file extension lists using optional filters.
FileExtensionListsApi.searchFileExtensionLists([param1, param2, ...])
FileExtensionListsApi.search_file_extension_lists([param1, param2, ...])
FileExtensionListsApi.searchFileExtensionLists([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 extension 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
{- "fileExtensionLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}