Lists all tenants.
TenantsApi.listTenants([param1, param2, ...])
TenantsApi.list_tenants([param1, param2, ...])
TenantsApi.listTenants([param1, param2, ...])
successful operation
Not authorized to view tenants.
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.TenantsApi; import com.trendmicro.deepsecurity.model.Tenants; public class ListTenantsExample { 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 TenantsApi instance = new TenantsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Tenants result = instance.listTenants(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling TenantsApi.listTenants"); e.printStackTrace(); } } }
{- "tenants": [
- {
- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "agentInitiatedActivationPassword": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "primaryContacts": [
- {
- "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"
}
], - "guid": "string",
- "ID": 0
}
]
}
Create a new tenant.
TenantsApi.createTenant([param1, param2, ...])
TenantsApi.create_tenant([param1, param2, ...])
TenantsApi.createTenant([param1, param2, ...])
The settings of the new tenant.
successful operation
Not authorized to create tenants.
{- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "guid": "string"
}
{- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "agentInitiatedActivationPassword": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "primaryContacts": [
- {
- "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"
}
], - "guid": "string",
- "ID": 0
}
Describe a tenant by ID.
TenantsApi.describeTenant([param1, param2, ...])
TenantsApi.describe_tenant([param1, param2, ...])
TenantsApi.describeTenant([param1, param2, ...])
successful operation
Not authorized to view tenants.
The tenant 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.TenantsApi; import com.trendmicro.deepsecurity.model.Tenant; public class DescribeTenantExample { 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 TenantsApi instance = new TenantsApi(); Integer tenantID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Tenant result = instance.describeTenant(tenantID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling TenantsApi.describeTenant"); e.printStackTrace(); } } }
{- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "agentInitiatedActivationPassword": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "primaryContacts": [
- {
- "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"
}
], - "guid": "string",
- "ID": 0
}
Modify a tenant by ID. Any unset elements will be left unchanged.
TenantsApi.modifyTenant([param1, param2, ...])
TenantsApi.modify_tenant([param1, param2, ...])
TenantsApi.modifyTenant([param1, param2, ...])
The settings of the tenant to modify.
successful operation
Not authorized to modify tenants or the requested modification is not permitted.
The tenant does not exist or is not visible.
{- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "guid": "string"
}
{- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "agentInitiatedActivationPassword": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "primaryContacts": [
- {
- "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"
}
], - "guid": "string",
- "ID": 0
}
Delete a tenant by ID.
TenantsApi.deleteTenant([param1, param2, ...])
TenantsApi.delete_tenant([param1, param2, ...])
TenantsApi.deleteTenant([param1, param2, ...])
Request is successful.
Not authorized to delete tenants.
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.TenantsApi; public class DeleteTenantExample { 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 TenantsApi instance = new TenantsApi(); Integer tenantID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteTenant(tenantID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling TenantsApi.deleteTenant"); e.printStackTrace(); } } }
Search for tenants using optional filters.
TenantsApi.searchTenants([param1, param2, ...])
TenantsApi.search_tenants([param1, param2, ...])
TenantsApi.searchTenants([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view tenants.
{- "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
}
{- "tenants": [
- {
- "databaseServerID": 0,
- "name": "string",
- "description": "string",
- "agentInitiatedActivationPassword": "string",
- "timeZone": "string",
- "locale": "en-US",
- "demoMode": true,
- "modulesVisible": [
- "all"
], - "hideUnlicensedModules": true,
- "lastSigninTime": 0,
- "tenantState": "undefined",
- "activationCodes": [
- "string"
], - "administrator": {
- "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"
}, - "primaryContacts": [
- {
- "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"
}
], - "guid": "string",
- "ID": 0
}
]
}
Generate a new API key for a tenant from the primary account. This key will be expired after 6 hours if no expiryDate set.
TenantsApi.generateTenantApiSecretKey([param1, param2, ...])
TenantsApi.generate_tenant_api_secret_key([param1, param2, ...])
TenantsApi.generateTenantApiSecretKey([param1, param2, ...])
The settings of the new API key.
successful operation
Not authorized to generate API secret keys.
The API key does not exist.
{- "keyName": "string",
- "description": "string",
- "locale": "en-US",
- "roleID": 0,
- "timeZone": "string",
- "active": true,
- "created": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "expiryDate": 0
}
{- "keyName": "string",
- "description": "string",
- "locale": "en-US",
- "roleID": 0,
- "timeZone": "string",
- "active": true,
- "created": 0,
- "lastSignIn": 0,
- "unlockTime": 0,
- "unsuccessfulSignInAttempts": 0,
- "expiryDate": 0,
- "secretKey": "string",
- "serviceAccount": true,
- "ID": 0
}