Lists all administrators.
AdministratorsApi.listAdministrators([param1, param2, ...])
AdministratorsApi.list_administrators([param1, param2, ...])
AdministratorsApi.listAdministrators([param1, param2, ...])
successful operation
Not authorized to view administrators.
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.AdministratorsApi; import com.trendmicro.deepsecurity.model.Administrators; public class ListAdministratorsExample { 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 AdministratorsApi instance = new AdministratorsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Administrators result = instance.listAdministrators(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AdministratorsApi.listAdministrators"); e.printStackTrace(); } } }
{- "administrators": [
- {
- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "created": 0,
- "lastPasswordChange": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "directoryName": "string",
- "directoryInfo": "string",
- "external": true,
- "externalUserID": "string",
- "type": "normal",
- "readOnly": true,
- "ID": 0,
- "UTCOffset": "string"
}
]
}
Create a new administrator.
AdministratorsApi.createAdministrator([param1, param2, ...])
AdministratorsApi.create_administrator([param1, param2, ...])
AdministratorsApi.createAdministrator([param1, param2, ...])
The settings of the new administrator.
successful operation
Not authorized to create administrators.
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "UTCOffset": "string"
}
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "created": 0,
- "lastPasswordChange": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "directoryName": "string",
- "directoryInfo": "string",
- "external": true,
- "externalUserID": "string",
- "type": "normal",
- "readOnly": true,
- "ID": 0,
- "UTCOffset": "string"
}
Describe an administrator by ID.
AdministratorsApi.describeAdministrator([param1, param2, ...])
AdministratorsApi.describe_administrator([param1, param2, ...])
AdministratorsApi.describeAdministrator([param1, param2, ...])
successful operation
Not authorized to view administrators.
The administrator 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.AdministratorsApi; import com.trendmicro.deepsecurity.model.Administrator; public class DescribeAdministratorExample { 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 AdministratorsApi instance = new AdministratorsApi(); Integer administratorID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Administrator result = instance.describeAdministrator(administratorID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AdministratorsApi.describeAdministrator"); e.printStackTrace(); } } }
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "created": 0,
- "lastPasswordChange": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "directoryName": "string",
- "directoryInfo": "string",
- "external": true,
- "externalUserID": "string",
- "type": "normal",
- "readOnly": true,
- "ID": 0,
- "UTCOffset": "string"
}
Modify an administrator by ID.
AdministratorsApi.modifyAdministrator([param1, param2, ...])
AdministratorsApi.modify_administrator([param1, param2, ...])
AdministratorsApi.modifyAdministrator([param1, param2, ...])
The settings of the administrator to modify.
successful operation
Not authorized to modify administrators or the requested modification is not permitted.
The administrator does not exist.
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "UTCOffset": "string"
}
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "created": 0,
- "lastPasswordChange": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "directoryName": "string",
- "directoryInfo": "string",
- "external": true,
- "externalUserID": "string",
- "type": "normal",
- "readOnly": true,
- "ID": 0,
- "UTCOffset": "string"
}
Delete an administrator by ID.
AdministratorsApi.deleteAdministrator([param1, param2, ...])
AdministratorsApi.delete_administrator([param1, param2, ...])
AdministratorsApi.deleteAdministrator([param1, param2, ...])
Request is successful.
Not authorized to delete administrators.
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.AdministratorsApi; public class DeleteAdministratorExample { 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 AdministratorsApi instance = new AdministratorsApi(); Integer administratorID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteAdministrator(administratorID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling AdministratorsApi.deleteAdministrator"); e.printStackTrace(); } } }
Search for administrators using optional filters.
AdministratorsApi.searchAdministrators([param1, param2, ...])
AdministratorsApi.search_administrators([param1, param2, ...])
AdministratorsApi.searchAdministrators([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view administrators.
{- "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,
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "administrators": [
- {
- "username": "string",
- "password": "string",
- "fullName": "string",
- "description": "string",
- "roleID": 0,
- "locale": "en-US",
- "timeZone": "string",
- "timeFormat": "12",
- "passwordNeverExpires": true,
- "active": true,
- "mfaType": "none",
- "phoneNumber": "string",
- "mobileNumber": "string",
- "pagerNumber": "string",
- "emailAddress": "string",
- "primaryContact": true,
- "receiveNotifications": true,
- "reportPDFPasswordEnabled": true,
- "reportPDFPassword": "string",
- "created": 0,
- "lastPasswordChange": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "directoryName": "string",
- "directoryInfo": "string",
- "external": true,
- "externalUserID": "string",
- "type": "normal",
- "readOnly": true,
- "ID": 0,
- "UTCOffset": "string"
}
]
}