Describe a Contact
Describe a contact by ID.
ContactsApi.describeContact([param1, param2, ...])
ContactsApi.describe_contact([param1, param2, ...])
ContactsApi.describeContact([param1, param2, ...])
successful operation
Not authorized to view contacts.
The contact 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.ContactsApi; import com.trendmicro.deepsecurity.model.Contact; public class DescribeContactExample { 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 ContactsApi instance = new ContactsApi(); Integer contactID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Contact result = instance.describeContact(contactID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ContactsApi.describeContact"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
Modify a Contact
Modify a contact by ID. Any unset elements will be left unchanged.
ContactsApi.modifyContact([param1, param2, ...])
ContactsApi.modify_contact([param1, param2, ...])
ContactsApi.modifyContact([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the contact to modify.
successful operation
Not authorized to modify contacts or the requested modification is not permitted.
The contact does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string"
}
- 200
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
Delete a Contact
Delete a contact by ID.
ContactsApi.deleteContact([param1, param2, ...])
ContactsApi.delete_contact([param1, param2, ...])
ContactsApi.deleteContact([param1, param2, ...])
Request is successful.
Not authorized to delete contacts.
- 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.ContactsApi; public class DeleteContactExample { 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 ContactsApi instance = new ContactsApi(); Integer contactID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteContact(contactID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling ContactsApi.deleteContact"); e.printStackTrace(); } } }
List Contacts
Lists all contacts.
ContactsApi.listContacts([param1, param2, ...])
ContactsApi.list_contacts([param1, param2, ...])
ContactsApi.listContacts([param1, param2, ...])
successful operation
Not authorized to view contacts.
- 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.ContactsApi; import com.trendmicro.deepsecurity.model.Contacts; public class ListContactsExample { 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 ContactsApi instance = new ContactsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Contacts result = instance.listContacts(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ContactsApi.listContacts"); e.printStackTrace(); } } }
- 200
{- "contacts": [
- {
- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
]
}
Create a Contact
Create a new contact.
ContactsApi.createContact([param1, param2, ...])
ContactsApi.create_contact([param1, param2, ...])
ContactsApi.createContact([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the contact to modify.
successful operation
Not authorized to create contacts.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string"
}
- 200
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
Search Contacts
Search for contacts using optional filters.
ContactsApi.searchContacts([param1, param2, ...])
ContactsApi.search_contacts([param1, param2, ...])
ContactsApi.searchContacts([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 contacts.
- 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
{- "contacts": [
- {
- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
]
}