Lists all directory lists.
DirectoryListsApi.listDirectoryLists([param1, param2, ...])
DirectoryListsApi.list_directory_lists([param1, param2, ...])
DirectoryListsApi.listDirectoryLists([param1, param2, ...])
successful operation
Not authorized to view directory 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.DirectoryListsApi; import com.trendmicro.deepsecurity.model.DirectoryLists; public class ListDirectoryListsExample { 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 DirectoryListsApi instance = new DirectoryListsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours DirectoryLists result = instance.listDirectoryLists(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling DirectoryListsApi.listDirectoryLists"); e.printStackTrace(); } } }
{- "directoryLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a new directory list.
DirectoryListsApi.createDirectoryList([param1, param2, ...])
DirectoryListsApi.create_directory_list([param1, param2, ...])
DirectoryListsApi.createDirectoryList([param1, param2, ...])
The settings of the new directory list.
successful operation
Not authorized to create directory lists.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search for directory lists using optional filters.
DirectoryListsApi.searchDirectoryLists([param1, param2, ...])
DirectoryListsApi.search_directory_lists([param1, param2, ...])
DirectoryListsApi.searchDirectoryLists([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view directory 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
}
{- "directoryLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Describe a directory list by ID.
DirectoryListsApi.describeDirectoryList([param1, param2, ...])
DirectoryListsApi.describe_directory_list([param1, param2, ...])
DirectoryListsApi.describeDirectoryList([param1, param2, ...])
successful operation
Not authorized to view directory lists.
The directory list 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.DirectoryListsApi; import com.trendmicro.deepsecurity.model.DirectoryList; public class DescribeDirectoryListExample { 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 DirectoryListsApi instance = new DirectoryListsApi(); Integer directoryListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours DirectoryList result = instance.describeDirectoryList(directoryListID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling DirectoryListsApi.describeDirectoryList"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a directory list by ID. Any unset elements will be left unchanged.
DirectoryListsApi.modifyDirectoryList([param1, param2, ...])
DirectoryListsApi.modify_directory_list([param1, param2, ...])
DirectoryListsApi.modifyDirectoryList([param1, param2, ...])
The settings of the directory list to modify.
successful operation
Not authorized to modify directory lists or the requested modification is not permitted.
The directory list does not exist.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a directory list by ID.
DirectoryListsApi.deleteDirectoryList([param1, param2, ...])
DirectoryListsApi.delete_directory_list([param1, param2, ...])
DirectoryListsApi.deleteDirectoryList([param1, param2, ...])
Request is successful.
Not authorized to delete directory 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.DirectoryListsApi; public class DeleteDirectoryListExample { 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 DirectoryListsApi instance = new DirectoryListsApi(); Integer directoryListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteDirectoryList(directoryListID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling DirectoryListsApi.deleteDirectoryList"); e.printStackTrace(); } } }