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.
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.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 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 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(); } } }
{- "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 by ID. Any unset elements will be left unchanged.
ContactsApi.modifyContact([param1, param2, ...])
ContactsApi.modify_contact([param1, param2, ...])
ContactsApi.modifyContact([param1, param2, ...])
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.
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string"
}
{- "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 by ID.
ContactsApi.deleteContact([param1, param2, ...])
ContactsApi.delete_contact([param1, param2, ...])
ContactsApi.deleteContact([param1, param2, ...])
Request is successful.
Not authorized to delete contacts.
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.ContactsApi; public class DeleteContactExample { 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 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(); } } }
Lists all contacts.
ContactsApi.listContacts([param1, param2, ...])
ContactsApi.list_contacts([param1, param2, ...])
ContactsApi.listContacts([param1, param2, ...])
successful operation
Not authorized to view contacts.
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.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 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 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(); } } }
{- "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 new contact.
ContactsApi.createContact([param1, param2, ...])
ContactsApi.create_contact([param1, param2, ...])
ContactsApi.createContact([param1, param2, ...])
The settings of the contact to modify.
successful operation
Not authorized to create contacts.
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string"
}
{- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
Search for contacts using optional filters.
ContactsApi.searchContacts([param1, param2, ...])
ContactsApi.search_contacts([param1, param2, ...])
ContactsApi.searchContacts([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view contacts.
{- "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
}
{- "contacts": [
- {
- "name": "string",
- "description": "string",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "locale": "en-US",
- "roleID": 0,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "ID": 0
}
]
}