Generate a new API secret key.
ApiKeysApi.replaceApiSecretKey([param1, param2, ...])
APIKeysApi.replace_api_secret_key([param1, param2, ...])
APIKeysApi.replaceApiSecretKey([param1, param2, ...])
successful operation
Not authorized to generate API secret keys.
The API key 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.ApiKeysApi; import com.trendmicro.deepsecurity.model.ApiKey; public class ReplaceApiSecretKeyExample { 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 ApiKeysApi instance = new ApiKeysApi(); Integer apiKeyID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApiKey result = instance.replaceApiSecretKey(apiKeyID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiKeysApi.replaceApiSecretKey"); e.printStackTrace(); } } }
{- "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
}
Lists all API keys.
ApiKeysApi.listApiKeys([param1, param2, ...])
APIKeysApi.list_api_keys([param1, param2, ...])
APIKeysApi.listApiKeys([param1, param2, ...])
successful operation
Not authorized to view API keys.
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.ApiKeysApi; import com.trendmicro.deepsecurity.model.ApiKeys; public class ListApiKeysExample { 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 ApiKeysApi instance = new ApiKeysApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApiKeys result = instance.listApiKeys(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiKeysApi.listApiKeys"); e.printStackTrace(); } } }
{- "apiKeys": [
- {
- "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
}
]
}
Create a new API key.
ApiKeysApi.createApiKey([param1, param2, ...])
APIKeysApi.create_api_key([param1, param2, ...])
APIKeysApi.createApiKey([param1, param2, ...])
The settings of the new API key.
successful operation
Not authorized to create API keys.
{- "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
}
Search for API keys using optional filters.
ApiKeysApi.searchApiKeys([param1, param2, ...])
APIKeysApi.search_api_keys([param1, param2, ...])
APIKeysApi.searchApiKeys([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view API keys.
{- "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
}
{- "apiKeys": [
- {
- "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
}
]
}
Describe the API key that is associated with the credentials that are being used to authenticate this call. Authentication must be done via an API secret key.
ApiKeysApi.describeCurrentApiKey([param1, param2, ...])
APIKeysApi.describe_current_api_key([param1, param2, ...])
APIKeysApi.describeCurrentApiKey([param1, param2, ...])
successful operation
Not authorized to view API keys.
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.ApiKeysApi; import com.trendmicro.deepsecurity.model.ApiKeyCurrent; public class DescribeCurrentApiKeyExample { 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 ApiKeysApi instance = new ApiKeysApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApiKeyCurrent result = instance.describeCurrentApiKey(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiKeysApi.describeCurrentApiKey"); e.printStackTrace(); } } }
{- "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,
- "roleURN": "string",
- "tenantID": 0,
- "tenantGUID": "string",
- "ID": 0
}
Modify the API key that is associated with the credentials that are being used to authenticate this call. Authentication must be done via an API secret key. Writable fields are: keyName, description, locale, & timeZone. Any unset elements will be left unchanged.
ApiKeysApi.modifyCurrentApiKey([param1, param2, ...])
APIKeysApi.modify_current_api_key([param1, param2, ...])
APIKeysApi.modifyCurrentApiKey([param1, param2, ...])
The settings of the API key to modify.
successful operation
Not authorized to view API 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,
- "roleURN": "string",
- "tenantID": 0,
- "tenantGUID": "string",
- "ID": 0
}
Generate a new secret key for the current API key. Authentication must be done via an API secret key.
ApiKeysApi.replaceCurrentApiSecretKey([param1, param2, ...])
APIKeysApi.replace_current_api_secret_key([param1, param2, ...])
APIKeysApi.replaceCurrentApiSecretKey([param1, param2, ...])
successful operation
Not authorized to view API keys.
The API key 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.ApiKeysApi; import com.trendmicro.deepsecurity.model.ApiKey; public class ReplaceCurrentApiSecretKeyExample { 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 ApiKeysApi instance = new ApiKeysApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApiKey result = instance.replaceCurrentApiSecretKey(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiKeysApi.replaceCurrentApiSecretKey"); e.printStackTrace(); } } }
{- "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
}
Describe an API key by ID.
ApiKeysApi.describeApiKey([param1, param2, ...])
APIKeysApi.describe_api_key([param1, param2, ...])
APIKeysApi.describeApiKey([param1, param2, ...])
successful operation
Not authorized to view API keys.
The API key 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.ApiKeysApi; import com.trendmicro.deepsecurity.model.ApiKey; public class DescribeApiKeyExample { 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 ApiKeysApi instance = new ApiKeysApi(); Integer apiKeyID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ApiKey result = instance.describeApiKey(apiKeyID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiKeysApi.describeApiKey"); e.printStackTrace(); } } }
{- "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
}
Modify an API key by ID. Any unset elements will be left unchanged.
ApiKeysApi.modifyApiKey([param1, param2, ...])
APIKeysApi.modify_api_key([param1, param2, ...])
APIKeysApi.modifyApiKey([param1, param2, ...])
The settings of the API key to modify.
successful operation
Not authorized to modify API keys or the requested modification is not permitted.
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
}
Delete an API key by ID.
ApiKeysApi.deleteApiKey([param1, param2, ...])
APIKeysApi.delete_api_key([param1, param2, ...])
APIKeysApi.deleteApiKey([param1, param2, ...])
Request is successful.
Not authorized to delete API keys.
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.ApiKeysApi; public class DeleteApiKeyExample { 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 ApiKeysApi instance = new ApiKeysApi(); Integer apiKeyID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteApiKey(apiKeyID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiKeysApi.deleteApiKey"); e.printStackTrace(); } } }