public class PluginsApi extends Object
Constructor and Description |
---|
PluginsApi() |
PluginsApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
Plugin |
createPlugin(PluginRequest body)
Create a new plugin
Create a new plugin with the specified properties.
|
void |
deletePlugin(String pluginId)
Delete plugin
Remove a plugin from SDKMS.
|
ApiClient |
getApiClient() |
Plugin |
getPlugin(String pluginId)
Get a specific plugin
Look up plugin by plugin ID.
|
List<Plugin> |
getPlugins(String groupId)
Get all plugins
Get details of all plugins the current user has access to.
|
List<Plugin> |
getPlugins(String groupId,
String sort,
String start,
Integer limit,
Integer offset)
Get all plugins
Get details of all plugins the current user has access to.
|
PluginInvokeResponse |
invokePlugin(String pluginId,
PluginInvokeRequest body)
Invoke a plugin
Invokes a plugin execution with the provided request body as input to the plugin.
|
void |
setApiClient(ApiClient apiClient) |
PluginInvokeResponse |
sysV1PluginsInvokePluginIdGet(String pluginId)
Invoke a plugin using GET.
|
App |
updatePlugin(String pluginId,
PluginRequest body)
Update a plugin
Change a plugin's properties, such as name, description, code, or group membership.
|
public PluginsApi()
public PluginsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Plugin createPlugin(PluginRequest body) throws ApiException
body
- Properties of plugin to create (required)ApiException
- if fails to make API callpublic void deletePlugin(String pluginId) throws ApiException
pluginId
- Plugin Identifier (required)ApiException
- if fails to make API callpublic Plugin getPlugin(String pluginId) throws ApiException
pluginId
- Plugin Identifier (required)ApiException
- if fails to make API callpublic List<Plugin> getPlugins(String groupId, String sort, String start, Integer limit, Integer offset) throws ApiException
groupId
- Only retrieve plugins in the specified group. (optional)sort
- This specifies the property (`plugin_id` only, for now) and order (ascending or descending) with which to sort the apps. By default, plugins are sorted by `plugin_id` in ascending order. The syntax is \"<property>:[asc|desc]\" (e.g. \"plugin_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 PluginInvokeResponse invokePlugin(String pluginId, PluginInvokeRequest body) throws ApiException
pluginId
- Plugin Identifier (required)body
- Object to be passed to plugin as input (required)ApiException
- if fails to make API callpublic PluginInvokeResponse sysV1PluginsInvokePluginIdGet(String pluginId) throws ApiException
pluginId
- Plugin Identifier (required)ApiException
- if fails to make API callpublic List<Plugin> getPlugins(String groupId) throws ApiException
groupId
- Only retrieve plugins in the specified group. (optional)ApiException
- if fails to make API callpublic App updatePlugin(String pluginId, PluginRequest body) throws ApiException
pluginId
- Plugin Identifier (required)body
- Properties of plugin to create (required)ApiException
- if fails to make API callCopyright © 2017-2023 Fortanix Inc. All Rights Reserved