Lists all MAC lists.
MacListsApi.listMACLists([param1, param2, ...])
MACListsApi.list_mac_lists([param1, param2, ...])
MACListsApi.listMACLists([param1, param2, ...])
successful operation
Not authorized to view MAC 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.MacListsApi; import com.trendmicro.deepsecurity.model.MacLists; public class ListMACListsExample { 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 MacListsApi instance = new MacListsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours MacLists result = instance.listMACLists(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling MacListsApi.listMACLists"); e.printStackTrace(); } } }
{- "macLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a new MAC list.
MacListsApi.createMACList([param1, param2, ...])
MACListsApi.create_mac_list([param1, param2, ...])
MACListsApi.createMACList([param1, param2, ...])
The settings of the new MAC list.
successful operation
Not authorized to create MAC lists.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search for MAC lists using optional filters.
MacListsApi.searchMACLists([param1, param2, ...])
MACListsApi.search_mac_lists([param1, param2, ...])
MACListsApi.searchMACLists([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view MAC 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
}
{- "macLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Describe a MAC list by ID.
MacListsApi.describeMACList([param1, param2, ...])
MACListsApi.describe_mac_list([param1, param2, ...])
MACListsApi.describeMACList([param1, param2, ...])
successful operation
Not authorized to view MAC lists.
The MAC 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.MacListsApi; import com.trendmicro.deepsecurity.model.MacList; public class DescribeMACListExample { 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 MacListsApi instance = new MacListsApi(); Integer macListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours MacList result = instance.describeMACList(macListID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling MacListsApi.describeMACList"); e.printStackTrace(); } } }
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a MAC list by ID. Any unset elements will be left unchanged.
MacListsApi.modifyMACList([param1, param2, ...])
MACListsApi.modify_mac_list([param1, param2, ...])
MACListsApi.modifyMACList([param1, param2, ...])
The settings of the MAC list to modify.
successful operation
Not authorized to modify MAC lists or the requested modification is not permitted.
The MAC list does not exist.
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a MAC list by ID.
MacListsApi.deleteMACList([param1, param2, ...])
MACListsApi.delete_mac_list([param1, param2, ...])
MACListsApi.deleteMACList([param1, param2, ...])
Request is successful.
Not authorized to delete MAC 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.MacListsApi; public class DeleteMACListExample { 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 MacListsApi instance = new MacListsApi(); Integer macListID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteMACList(macListID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling MacListsApi.deleteMACList"); e.printStackTrace(); } } }