public class AppsApi extends Object
Modifier and Type | Method and Description |
---|---|
App |
createApp(AppRequest body)
Create a new application
Create a new application with the specified properties.
|
void |
deleteApp(String appId)
Delete application
Remove an application from SDKMS.
|
ApiClient |
getApiClient() |
App |
getApp(String appId)
Get a specific application
Look up an application by application ID.
|
List<App> |
getApps(String groupId)
Get all applications
Get details of all applications the current user has access to.
|
List<App> |
getApps(String groupId,
String sort,
String start,
Integer limit,
Integer offset)
Get all applications
Get details of all applications the current user has access to.
|
AppCredentialResponse |
getCredential(String appId)
Get a specific application's credential
Retrieve the authentication credential (API key or certificate) for a particular application.
|
App |
regenerateApiKey(String appId,
AppResetSecretRequest body)
Regenerate API key
Create a new API key for an application.
|
void |
setApiClient(ApiClient apiClient) |
App |
updateApp(String appId,
AppRequest body)
Update an application
Change an application's properties, such as name, description, or group membership.
|
public AppsApi()
public AppsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public App createApp(AppRequest body) throws ApiException
body
- Properties of application to create (required)ApiException
- if fails to make API callpublic void deleteApp(String appId) throws ApiException
appId
- Application Identifier (required)ApiException
- if fails to make API callpublic App getApp(String appId) throws ApiException
appId
- Application Identifier (required)ApiException
- if fails to make API callpublic List<App> getApps(String groupId, String sort, String start, Integer limit, Integer offset) throws ApiException
groupId
- Only retrieve applications in the specified group. (optional)sort
- This specifies the property (`app_id` only, for now) and order (ascending or descending) with which to sort the apps. By default, apps are sorted by `app_id` in ascending order. The syntax is \"<property>:[asc|desc]\" (e.g. \"app_id:desc\") or just \"<property>\" (ascending order by default). (optional)start
- If provided, this must be a value of the property specified in `sort`. Returned apps will begin just above or just below this value (for asc/desc order resp.). (optional)limit
- Maximum number of apps to return. If not provided, the limit is 100. (optional)offset
- Number of apps past `start` to skip. (optional)ApiException
- if fails to make API callpublic List<App> getApps(String groupId) throws ApiException
groupId
- Only retrieve applications in the specified group. (optional)ApiException
- if fails to make API callpublic AppCredentialResponse getCredential(String appId) throws ApiException
appId
- Application Identifier (required)ApiException
- if fails to make API callpublic App regenerateApiKey(String appId, AppResetSecretRequest body) throws ApiException
appId
- Application Identifier (required)body
- Decryption request (required)ApiException
- if fails to make API callpublic App updateApp(String appId, AppRequest body) throws ApiException
appId
- Application Identifier (required)body
- Properties of application to create (required)ApiException
- if fails to make API callCopyright © 2017-2023 Fortanix Inc. All Rights Reserved