Describe an IP List
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.
- 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.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 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 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(); } } }
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify an IP List
Modify an IP list by ID. Any unset elements will be left unchanged.
IpListsApi.modifyIPList([param1, param2, ...])
IPListsApi.modify_ip_list([param1, param2, ...])
IPListsApi.modifyIPList([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
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.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete an IP List
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.
- 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.IpListsApi; public class DeleteIPListExample { 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 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(); } } }
List IP Lists
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.
- 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.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 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 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(); } } }
- 200
{- "ipLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create an IP List
Create a new IP list.
IpListsApi.createIPList([param1, param2, ...])
IPListsApi.create_ip_list([param1, param2, ...])
IPListsApi.createIPList([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new IP list.
successful operation
Not authorized to create IP lists.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search IP Lists
Search for IP lists using optional filters.
IpListsApi.searchIPLists([param1, param2, ...])
IPListsApi.search_ip_lists([param1, param2, ...])
IPListsApi.searchIPLists([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 IP 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
{- "ipLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}