Search for IP lists using optional filters.
IpListsApi.searchIPLists([param1, param2, ...])
IPListsApi.search_ip_lists([param1, param2, ...])
IPListsApi.searchIPLists([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view IP 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,
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "ipLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Lists all IP lists.
IpListsApi.listIPLists([param1, param2, ...])
IPListsApi.list_ip_lists([param1, param2, ...])
IPListsApi.listIPLists([param1, param2, ...])
successful operation
Not authorized to view IP 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.IpListsApi; import com.trendmicro.deepsecurity.model.IpLists; public class ListIPListsExample { 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 IpListsApi instance = new IpListsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IpLists result = instance.listIPLists(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling IpListsApi.listIPLists"); e.printStackTrace(); } } }
{- "ipLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a new IP list.
IpListsApi.createIPList([param1, param2, ...])
IPListsApi.create_ip_list([param1, param2, ...])
IPListsApi.createIPList([param1, param2, ...])
The settings of the new IP list.
successful operation
Not authorized to create IP lists.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Describe an IP list by ID.
IpListsApi.describeIPList([param1, param2, ...])
IPListsApi.describe_ip_list([param1, param2, ...])
IPListsApi.describeIPList([param1, param2, ...])
successful operation
Not authorized to view IP lists.
The IP 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.IpListsApi; import com.trendmicro.deepsecurity.model.IpList; public class DescribeIPListExample { 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 IpListsApi instance = new IpListsApi(); Integer ipListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours IpList result = instance.describeIPList(ipListID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling IpListsApi.describeIPList"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify an IP list by ID.
IpListsApi.modifyIPList([param1, param2, ...])
IPListsApi.modify_ip_list([param1, param2, ...])
IPListsApi.modifyIPList([param1, param2, ...])
The settings of the IP list to modify.
successful operation
Not authorized to modify IP lists or the requested modification is not permitted.
The IP list does not exist.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete an IP list by ID.
IpListsApi.deleteIPList([param1, param2, ...])
IPListsApi.delete_ip_list([param1, param2, ...])
IPListsApi.deleteIPList([param1, param2, ...])
Request is successful.
Not authorized to delete IP 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.IpListsApi; public class DeleteIPListExample { 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 IpListsApi instance = new IpListsApi(); Integer ipListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteIPList(ipListID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling IpListsApi.deleteIPList"); e.printStackTrace(); } } }