Describe a MAC List
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.
- 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.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 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 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(); } } }
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Modify a MAC List
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, ...])
path Parameters
header Parameters
Request Body schema: application/json
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.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Delete a MAC List
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.
- 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.MacListsApi; public class DeleteMACListExample { 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 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(); } } }
List MAC Lists
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.
- 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.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 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 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(); } } }
- 200
{- "macLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}
Create a MAC List
Create a new MAC list.
MacListsApi.createMACList([param1, param2, ...])
MACListsApi.create_mac_list([param1, param2, ...])
MACListsApi.createMACList([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new MAC list.
successful operation
Not authorized to create MAC lists.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "items": [
- "string"
]
}
- 200
{- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
Search MAC Lists
Search for MAC lists using optional filters.
MacListsApi.searchMACLists([param1, param2, ...])
MACListsApi.search_mac_lists([param1, param2, ...])
MACListsApi.searchMACLists([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 MAC 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
{- "macLists": [
- {
- "name": "string",
- "description": "string",
- "items": [
- "string"
], - "ID": 0
}
]
}