Lists all port lists.
PortListsApi.listPortLists([param1, param2, ...])
PortListsApi.list_port_lists([param1, param2, ...])
PortListsApi.listPortLists([param1, param2, ...])
successful operation
Not authorized to view port 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.PortListsApi; import com.trendmicro.deepsecurity.model.PortLists; public class ListPortListsExample { 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 PortListsApi instance = new PortListsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours PortLists result = instance.listPortLists(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PortListsApi.listPortLists"); e.printStackTrace(); } } }
{- "portLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a new port list.
PortListsApi.createPortList([param1, param2, ...])
PortListsApi.create_port_list([param1, param2, ...])
PortListsApi.createPortList([param1, param2, ...])
The settings of the new port list.
successful operation
Not authorized to create port lists.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search for port lists using optional filters.
PortListsApi.searchPortLists([param1, param2, ...])
PortListsApi.search_port_lists([param1, param2, ...])
PortListsApi.searchPortLists([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view port 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
}
{- "portLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Describe a port list by ID.
PortListsApi.describePortList([param1, param2, ...])
PortListsApi.describe_port_list([param1, param2, ...])
PortListsApi.describePortList([param1, param2, ...])
successful operation
Not authorized to view port lists.
The port 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.PortListsApi; import com.trendmicro.deepsecurity.model.PortList; public class DescribePortListExample { 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 PortListsApi instance = new PortListsApi(); Integer portListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours PortList result = instance.describePortList(portListID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PortListsApi.describePortList"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a port list by ID. Any unset elements will be left unchanged.
PortListsApi.modifyPortList([param1, param2, ...])
PortListsApi.modify_port_list([param1, param2, ...])
PortListsApi.modifyPortList([param1, param2, ...])
The settings of the port list to modify.
successful operation
Not authorized to modify port lists or the requested modification is not permitted.
The port list does not exist.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a port list by ID.
PortListsApi.deletePortList([param1, param2, ...])
PortListsApi.delete_port_list([param1, param2, ...])
PortListsApi.deletePortList([param1, param2, ...])
Request is successful.
Not authorized to delete port 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.PortListsApi; public class DeletePortListExample { 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 PortListsApi instance = new PortListsApi(); Integer portListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deletePortList(portListID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling PortListsApi.deletePortList"); e.printStackTrace(); } } }