Class SecretsManager
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.SecretsManager
-
public class SecretsManager extends com.ibm.cloud.sdk.core.service.BaseServiceWith IBM Cloud® Secrets Manager, you can create, lease, and centrally manage secrets that are used in IBM Cloud services or your custom-built applications. API Version: 2.0.0 See: https://cloud.ibm.com/docs/secrets-manager
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEDefault service name used when configuring the `SecretsManager` client.static StringDEFAULT_SERVICE_URLDefault service endpoint URL.static StringPARAMETERIZED_SERVICE_URLThe parameterized service endpoint URL.
-
Constructor Summary
Constructors Constructor Description SecretsManager(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `SecretsManager` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringconstructServiceUrl(Map<String,String> providedUrlVariables)Constructs a service URL by formatting the parameterized service URL.com.ibm.cloud.sdk.core.http.ServiceCall<Configuration>createConfiguration(CreateConfigurationOptions createConfigurationOptions)Create a new configuration.com.ibm.cloud.sdk.core.http.ServiceCall<ConfigurationAction>createConfigurationAction(CreateConfigurationActionOptions createConfigurationActionOptions)Create a configuration action.com.ibm.cloud.sdk.core.http.ServiceCall<NotificationsRegistration>createNotificationsRegistration(CreateNotificationsRegistrationOptions createNotificationsRegistrationOptions)Register with Event Notifications instance.com.ibm.cloud.sdk.core.http.ServiceCall<Secret>createSecret(CreateSecretOptions createSecretOptions)Create a new secret.com.ibm.cloud.sdk.core.http.ServiceCall<SecretAction>createSecretAction(CreateSecretActionOptions createSecretActionOptions)Create a secret action.com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroup>createSecretGroup(CreateSecretGroupOptions createSecretGroupOptions)Create a new secret group.com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks>createSecretLocksBulk(CreateSecretLocksBulkOptions createSecretLocksBulkOptions)Create secret locks.com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersion>createSecretVersion(CreateSecretVersionOptions createSecretVersionOptions)Create a new secret version.com.ibm.cloud.sdk.core.http.ServiceCall<VersionAction>createSecretVersionAction(CreateSecretVersionActionOptions createSecretVersionActionOptions)Create a version action.com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks>createSecretVersionLocksBulk(CreateSecretVersionLocksBulkOptions createSecretVersionLocksBulkOptions)Create secret version locks.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteConfiguration(DeleteConfigurationOptions deleteConfigurationOptions)Delete a configuration.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteNotificationsRegistration()Unregister from Event Notifications instance.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteNotificationsRegistration(DeleteNotificationsRegistrationOptions deleteNotificationsRegistrationOptions)Unregister from Event Notifications instance.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteSecret(DeleteSecretOptions deleteSecretOptions)Delete a secret.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteSecretGroup(DeleteSecretGroupOptions deleteSecretGroupOptions)Delete a secret group.com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks>deleteSecretLocksBulk(DeleteSecretLocksBulkOptions deleteSecretLocksBulkOptions)Delete secret locks.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteSecretTask(DeleteSecretTaskOptions deleteSecretTaskOptions)Delete a task.com.ibm.cloud.sdk.core.http.ServiceCall<Void>deleteSecretVersionData(DeleteSecretVersionDataOptions deleteSecretVersionDataOptions)Delete the data of a secret version.com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks>deleteSecretVersionLocksBulk(DeleteSecretVersionLocksBulkOptions deleteSecretVersionLocksBulkOptions)Delete locks on a secret version.com.ibm.cloud.sdk.core.http.ServiceCall<Configuration>getConfiguration(GetConfigurationOptions getConfigurationOptions)Get a configuration.com.ibm.cloud.sdk.core.http.ServiceCall<NotificationsRegistration>getNotificationsRegistration()Get Event Notifications registration details.com.ibm.cloud.sdk.core.http.ServiceCall<NotificationsRegistration>getNotificationsRegistration(GetNotificationsRegistrationOptions getNotificationsRegistrationOptions)Get Event Notifications registration details.com.ibm.cloud.sdk.core.http.ServiceCall<Void>getNotificationsRegistrationTest()Send a test event for Event Notifications registrations.com.ibm.cloud.sdk.core.http.ServiceCall<Void>getNotificationsRegistrationTest(GetNotificationsRegistrationTestOptions getNotificationsRegistrationTestOptions)Send a test event for Event Notifications registrations.com.ibm.cloud.sdk.core.http.ServiceCall<Secret>getSecret(GetSecretOptions getSecretOptions)Get a secret.com.ibm.cloud.sdk.core.http.ServiceCall<Secret>getSecretByNameType(GetSecretByNameTypeOptions getSecretByNameTypeOptions)Get a secret by name.com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroup>getSecretGroup(GetSecretGroupOptions getSecretGroupOptions)Get a secret group.com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadata>getSecretMetadata(GetSecretMetadataOptions getSecretMetadataOptions)Get the metadata of a secret.com.ibm.cloud.sdk.core.http.ServiceCall<SecretTask>getSecretTask(GetSecretTaskOptions getSecretTaskOptions)Get a secret's task.com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersion>getSecretVersion(GetSecretVersionOptions getSecretVersionOptions)Get a version of a secret.com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionMetadata>getSecretVersionMetadata(GetSecretVersionMetadataOptions getSecretVersionMetadataOptions)Get the metadata of a secret version.com.ibm.cloud.sdk.core.http.ServiceCall<ConfigurationMetadataPaginatedCollection>listConfigurations()List configurations.com.ibm.cloud.sdk.core.http.ServiceCall<ConfigurationMetadataPaginatedCollection>listConfigurations(ListConfigurationsOptions listConfigurationsOptions)List configurations.com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroupCollection>listSecretGroups()List secret groups.com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroupCollection>listSecretGroups(ListSecretGroupsOptions listSecretGroupsOptions)List secret groups.com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocksPaginatedCollection>listSecretLocks(ListSecretLocksOptions listSecretLocksOptions)List secret locks.com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadataPaginatedCollection>listSecrets()List secrets.com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadataPaginatedCollection>listSecrets(ListSecretsOptions listSecretsOptions)List secrets.com.ibm.cloud.sdk.core.http.ServiceCall<SecretsLocksPaginatedCollection>listSecretsLocks()List secrets and their locks.com.ibm.cloud.sdk.core.http.ServiceCall<SecretsLocksPaginatedCollection>listSecretsLocks(ListSecretsLocksOptions listSecretsLocksOptions)List secrets and their locks.com.ibm.cloud.sdk.core.http.ServiceCall<SecretTaskCollection>listSecretTasks(ListSecretTasksOptions listSecretTasksOptions)List secret tasks.com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionLocksPaginatedCollection>listSecretVersionLocks(ListSecretVersionLocksOptions listSecretVersionLocksOptions)List secret version locks.com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionMetadataCollection>listSecretVersions(ListSecretVersionsOptions listSecretVersionsOptions)List versions of a secret.static SecretsManagernewInstance()Class method which constructs an instance of the `SecretsManager` client.static SecretsManagernewInstance(String serviceName)Class method which constructs an instance of the `SecretsManager` client.com.ibm.cloud.sdk.core.http.ServiceCall<SecretTask>replaceSecretTask(ReplaceSecretTaskOptions replaceSecretTaskOptions)Update a secret's task.com.ibm.cloud.sdk.core.http.ServiceCall<Configuration>updateConfiguration(UpdateConfigurationOptions updateConfigurationOptions)Update configuration.com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroup>updateSecretGroup(UpdateSecretGroupOptions updateSecretGroupOptions)Update a secret group.com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadata>updateSecretMetadata(UpdateSecretMetadataOptions updateSecretMetadataOptions)Update the metadata of a secret.com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionMetadata>updateSecretVersionMetadata(UpdateSecretVersionMetadataOptions updateSecretVersionMetadataOptions)Update the metadata of a secret version.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
Default service name used when configuring the `SecretsManager` client.- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final String DEFAULT_SERVICE_URL
Default service endpoint URL.- See Also:
- Constant Field Values
-
PARAMETERIZED_SERVICE_URL
public static final String PARAMETERIZED_SERVICE_URL
The parameterized service endpoint URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecretsManager
public SecretsManager(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `SecretsManager` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public static SecretsManager newInstance()
Class method which constructs an instance of the `SecretsManager` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `SecretsManager` client using external configuration
-
newInstance
public static SecretsManager newInstance(String serviceName)
Class method which constructs an instance of the `SecretsManager` client. The specified service name is used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instance- Returns:
- an instance of the `SecretsManager` client using external configuration
-
constructServiceUrl
public static String constructServiceUrl(Map<String,String> providedUrlVariables)
Constructs a service URL by formatting the parameterized service URL. The parameterized service URL is: 'https://{instance_id}.{region}.secrets-manager.appdomain.cloud' The default variable values are: - 'instance_id': 'provide-here-your-smgr-instanceuuid' - 'region': 'us-south'- Parameters:
providedUrlVariables- map from variable names to desired values. If a variable is not provided in this map, the default variable value will be used instead.- Returns:
- the formatted URL with all variable placeholders replaced by values.
-
createSecretGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroup> createSecretGroup(CreateSecretGroupOptions createSecretGroupOptions)
Create a new secret group. Create a secret group that you can use to organize secrets and control who can access them. A successful request returns the ID value of the secret group, along with other properties. To learn more about secret groups, check out the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-secret-groups).- Parameters:
createSecretGroupOptions- theCreateSecretGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretGroup
-
listSecretGroups
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroupCollection> listSecretGroups(ListSecretGroupsOptions listSecretGroupsOptions)
List secret groups. List the secret groups that are available in your Secrets Manager instance.- Parameters:
listSecretGroupsOptions- theListSecretGroupsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretGroupCollection
-
listSecretGroups
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroupCollection> listSecretGroups()
List secret groups. List the secret groups that are available in your Secrets Manager instance.- Returns:
- a
ServiceCallwith a result of typeSecretGroupCollection
-
getSecretGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroup> getSecretGroup(GetSecretGroupOptions getSecretGroupOptions)
Get a secret group. Get the properties of an existing secret group by specifying the ID of the group.- Parameters:
getSecretGroupOptions- theGetSecretGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretGroup
-
updateSecretGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretGroup> updateSecretGroup(UpdateSecretGroupOptions updateSecretGroupOptions)
Update a secret group. Update the properties of an existing secret group, such as its name or description.- Parameters:
updateSecretGroupOptions- theUpdateSecretGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretGroup
-
deleteSecretGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSecretGroup(DeleteSecretGroupOptions deleteSecretGroupOptions)
Delete a secret group. Delete a secret group by specifying the ID of the secret group. **Note:** To delete a secret group, it must be empty. If you need to remove a secret group that contains secrets, you must first delete the secrets that are associated with the group.- Parameters:
deleteSecretGroupOptions- theDeleteSecretGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
createSecret
public com.ibm.cloud.sdk.core.http.ServiceCall<Secret> createSecret(CreateSecretOptions createSecretOptions)
Create a new secret. Create a secret or import an existing value that you can use to access or authenticate to a protected resource. Use this operation to either generate or import an existing secret, such as a TLS certificate, that you can manage in your Secrets Manager service instance. A successful request stores the secret in your dedicated instance, based on the secret type and data that you specify. The response returns the ID value of the secret, along with other metadata. To learn more about the types of secrets that you can create with Secrets Manager, check out the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-what-is-secret).- Parameters:
createSecretOptions- theCreateSecretOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecret
-
listSecrets
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadataPaginatedCollection> listSecrets(ListSecretsOptions listSecretsOptions)
List secrets. List the secrets that are available in your Secrets Manager instance.- Parameters:
listSecretsOptions- theListSecretsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretMetadataPaginatedCollection
-
listSecrets
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadataPaginatedCollection> listSecrets()
List secrets. List the secrets that are available in your Secrets Manager instance.- Returns:
- a
ServiceCallwith a result of typeSecretMetadataPaginatedCollection
-
getSecret
public com.ibm.cloud.sdk.core.http.ServiceCall<Secret> getSecret(GetSecretOptions getSecretOptions)
Get a secret. Get a secret and its details by specifying the ID of the secret. A successful request returns the secret data that is associated with your secret, along with other metadata. To view only the details of a specified secret without retrieving its value, use the Get secret metadata operation.- Parameters:
getSecretOptions- theGetSecretOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecret
-
deleteSecret
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSecret(DeleteSecretOptions deleteSecretOptions)
Delete a secret. Delete a secret by specifying the ID of the secret.- Parameters:
deleteSecretOptions- theDeleteSecretOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getSecretMetadata
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadata> getSecretMetadata(GetSecretMetadataOptions getSecretMetadataOptions)
Get the metadata of a secret. Get the metadata of a secret by specifying the ID of the secret.- Parameters:
getSecretMetadataOptions- theGetSecretMetadataOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretMetadata
-
updateSecretMetadata
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretMetadata> updateSecretMetadata(UpdateSecretMetadataOptions updateSecretMetadataOptions)
Update the metadata of a secret. Update the metadata of a secret, such as its name or description.- Parameters:
updateSecretMetadataOptions- theUpdateSecretMetadataOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretMetadata
-
createSecretAction
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretAction> createSecretAction(CreateSecretActionOptions createSecretActionOptions)
Create a secret action. Create a secret action. This operation supports the following actions:.- Parameters:
createSecretActionOptions- theCreateSecretActionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretAction
-
getSecretByNameType
public com.ibm.cloud.sdk.core.http.ServiceCall<Secret> getSecretByNameType(GetSecretByNameTypeOptions getSecretByNameTypeOptions)
Get a secret by name. Get a secret and its details by specifying the Name and Type of the secret. A successful request returns the secret data that is associated with your secret, along with other metadata. To view only the details of a specified secret without retrieving its value, use the Get secret metadata operation.- Parameters:
getSecretByNameTypeOptions- theGetSecretByNameTypeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecret
-
createSecretVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersion> createSecretVersion(CreateSecretVersionOptions createSecretVersionOptions)
Create a new secret version. Create a new secret version.- Parameters:
createSecretVersionOptions- theCreateSecretVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretVersion
-
listSecretVersions
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionMetadataCollection> listSecretVersions(ListSecretVersionsOptions listSecretVersionsOptions)
List versions of a secret. List the versions of a secret. A successful request returns the list of versions of a secret, along with the metadata of each version.- Parameters:
listSecretVersionsOptions- theListSecretVersionsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretVersionMetadataCollection
-
getSecretVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersion> getSecretVersion(GetSecretVersionOptions getSecretVersionOptions)
Get a version of a secret. Get a version of a secret by specifying the ID of the version. You can use the `current` or `previous` aliases to refer to the current or previous secret version. A successful request returns the secret data that is associated with the specified version of your secret, along with other metadata.- Parameters:
getSecretVersionOptions- theGetSecretVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretVersion
-
deleteSecretVersionData
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSecretVersionData(DeleteSecretVersionDataOptions deleteSecretVersionDataOptions)
Delete the data of a secret version. Delete the data of a secret version by specifying its version ID. This operation is available for the following secret types: `iam_credentials`: current version only `custom_credentials`: both current and previous versions.- Parameters:
deleteSecretVersionDataOptions- theDeleteSecretVersionDataOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getSecretVersionMetadata
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionMetadata> getSecretVersionMetadata(GetSecretVersionMetadataOptions getSecretVersionMetadataOptions)
Get the metadata of a secret version. Get the metadata of a secret version by specifying the ID of the version. You can use the `current` or `previous` aliases to refer to the current or previous secret version. A successful request returns the metadata that is associated with the specified version of your secret.- Parameters:
getSecretVersionMetadataOptions- theGetSecretVersionMetadataOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretVersionMetadata
-
updateSecretVersionMetadata
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionMetadata> updateSecretVersionMetadata(UpdateSecretVersionMetadataOptions updateSecretVersionMetadataOptions)
Update the metadata of a secret version. Update the custom metadata of a secret version.- Parameters:
updateSecretVersionMetadataOptions- theUpdateSecretVersionMetadataOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretVersionMetadata
-
createSecretVersionAction
public com.ibm.cloud.sdk.core.http.ServiceCall<VersionAction> createSecretVersionAction(CreateSecretVersionActionOptions createSecretVersionActionOptions)
Create a version action. Create a secret version action. This operation supports the following actions: - `private_cert_action_revoke_certificate`: Revoke a version of a private certificate.- Parameters:
createSecretVersionActionOptions- theCreateSecretVersionActionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeVersionAction
-
listSecretTasks
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretTaskCollection> listSecretTasks(ListSecretTasksOptions listSecretTasksOptions)
List secret tasks. List secret tasks. Supported secret types: `custom_credentials`.- Parameters:
listSecretTasksOptions- theListSecretTasksOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretTaskCollection
-
getSecretTask
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretTask> getSecretTask(GetSecretTaskOptions getSecretTaskOptions)
Get a secret's task. Get a task of a secret and its details by specifying the ID of the task. A successful request returns the task that is associated with your secret. Supported secret types: `custom_credentials`.- Parameters:
getSecretTaskOptions- theGetSecretTaskOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretTask
-
replaceSecretTask
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretTask> replaceSecretTask(ReplaceSecretTaskOptions replaceSecretTaskOptions)
Update a secret's task. A callback endpoint for updating a task with results. Supported secret types: `custom_credentials`.- Parameters:
replaceSecretTaskOptions- theReplaceSecretTaskOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretTask
-
deleteSecretTask
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSecretTask(DeleteSecretTaskOptions deleteSecretTaskOptions)
Delete a task. Delete a task by specifying the ID of the secret. Supported secret types: `custom_credentials`.- Parameters:
deleteSecretTaskOptions- theDeleteSecretTaskOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
listSecretsLocks
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretsLocksPaginatedCollection> listSecretsLocks(ListSecretsLocksOptions listSecretsLocksOptions)
List secrets and their locks. List the secrets and their locks in your Secrets Manager instance.- Parameters:
listSecretsLocksOptions- theListSecretsLocksOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretsLocksPaginatedCollection
-
listSecretsLocks
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretsLocksPaginatedCollection> listSecretsLocks()
List secrets and their locks. List the secrets and their locks in your Secrets Manager instance.- Returns:
- a
ServiceCallwith a result of typeSecretsLocksPaginatedCollection
-
listSecretLocks
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocksPaginatedCollection> listSecretLocks(ListSecretLocksOptions listSecretLocksOptions)
List secret locks. List the locks that are associated with a specified secret.- Parameters:
listSecretLocksOptions- theListSecretLocksOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretLocksPaginatedCollection
-
createSecretLocksBulk
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks> createSecretLocksBulk(CreateSecretLocksBulkOptions createSecretLocksBulkOptions)
Create secret locks. Create a lock on the current version of a secret. A lock can be used to prevent a secret from being deleted or modified while it's in use by your applications. A successful request attaches a new lock to your secret, or replaces a lock of the same name if it already exists. Additionally, you can use this operation to clear any matching locks on a secret by using one of the following optional lock modes: - `remove_previous`: Removes any other locks with matching names if they are found in the previous version of the secret.\n - `remove_previous_and_delete`: Carries out the same function as `remove_previous`, but also permanently deletes the data of the previous secret version if it doesn't have any locks.- Parameters:
createSecretLocksBulkOptions- theCreateSecretLocksBulkOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretLocks
-
deleteSecretLocksBulk
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks> deleteSecretLocksBulk(DeleteSecretLocksBulkOptions deleteSecretLocksBulkOptions)
Delete secret locks. Delete all the locks or a subset of the locks that are associated with a version of a secret. To delete only a subset of the locks, add a query param with a comma to separate the list of lock names: Example: `?name=lock-example-1,lock-example-2`. **Note:** A secret is considered unlocked and able to be deleted only after you remove all of its locks. To determine whether a secret contains locks, check the `locks_total` field that is returned as part of the metadata of your secret.- Parameters:
deleteSecretLocksBulkOptions- theDeleteSecretLocksBulkOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretLocks
-
listSecretVersionLocks
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretVersionLocksPaginatedCollection> listSecretVersionLocks(ListSecretVersionLocksOptions listSecretVersionLocksOptions)
List secret version locks. List the locks that are associated with a specified secret version.- Parameters:
listSecretVersionLocksOptions- theListSecretVersionLocksOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretVersionLocksPaginatedCollection
-
createSecretVersionLocksBulk
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks> createSecretVersionLocksBulk(CreateSecretVersionLocksBulkOptions createSecretVersionLocksBulkOptions)
Create secret version locks. Create a lock on the specified version of a secret. A lock can be used to prevent a secret from being deleted or modified while it's in use by your applications. A successful request attaches a new lock to your secret, or replaces a lock of the same name if it already exists. Additionally, you can use this operation to clear any matching locks on a secret by using one of the following optional lock modes: - `remove_previous`: Removes any other locks with matching names if they are found in the previous version of the secret. - `remove_previous_and_delete`: Carries out the same function as `remove_previous`, but also permanently deletes the data of the previous secret version if it doesn't have any locks.- Parameters:
createSecretVersionLocksBulkOptions- theCreateSecretVersionLocksBulkOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretLocks
-
deleteSecretVersionLocksBulk
public com.ibm.cloud.sdk.core.http.ServiceCall<SecretLocks> deleteSecretVersionLocksBulk(DeleteSecretVersionLocksBulkOptions deleteSecretVersionLocksBulkOptions)
Delete locks on a secret version. Delete all the locks or a subset of the locks that are associated with the specified version of a secret. To delete only a subset of the locks, add a query param with a comma to separate the list of lock names: Example: `?name=lock-example-1,lock-example-2`. **Note:** A secret is considered unlocked and able to be deleted only after all of its locks are removed. To determine whether a secret contains locks, check the `locks_total` field that is returned as part of the metadata of your secret.- Parameters:
deleteSecretVersionLocksBulkOptions- theDeleteSecretVersionLocksBulkOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeSecretLocks
-
createConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<Configuration> createConfiguration(CreateConfigurationOptions createConfigurationOptions)
Create a new configuration. Add a configuration to the specified secret type. Use this operation to define the configurations that are required to create public certificates (`public_cert`), private certificates (`private_cert`), IAM credentials secrets (`iam_credentials`) and custom credentials secrets (`custom_credentials`). You can add multiple configurations for your instance as follows: - A single configuration for IAM credentials. - Up to 10 CA configurations for public certificates. - Up to 10 DNS configurations for public certificates. - Up to 10 Root CA configurations for private certificates. - Up to 10 Intermediate CA configurations for private certificates. - Up to 10 Certificate Template configurations for private certificates.- Parameters:
createConfigurationOptions- theCreateConfigurationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeConfiguration
-
listConfigurations
public com.ibm.cloud.sdk.core.http.ServiceCall<ConfigurationMetadataPaginatedCollection> listConfigurations(ListConfigurationsOptions listConfigurationsOptions)
List configurations. List the configurations that are available in your Secrets Manager instance.- Parameters:
listConfigurationsOptions- theListConfigurationsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeConfigurationMetadataPaginatedCollection
-
listConfigurations
public com.ibm.cloud.sdk.core.http.ServiceCall<ConfigurationMetadataPaginatedCollection> listConfigurations()
List configurations. List the configurations that are available in your Secrets Manager instance.- Returns:
- a
ServiceCallwith a result of typeConfigurationMetadataPaginatedCollection
-
getConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<Configuration> getConfiguration(GetConfigurationOptions getConfigurationOptions)
Get a configuration. Get a configuration by specifying its name. A successful request returns the details of your configuration.- Parameters:
getConfigurationOptions- theGetConfigurationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeConfiguration
-
updateConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<Configuration> updateConfiguration(UpdateConfigurationOptions updateConfigurationOptions)
Update configuration. Update a configuration.- Parameters:
updateConfigurationOptions- theUpdateConfigurationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeConfiguration
-
deleteConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteConfiguration(DeleteConfigurationOptions deleteConfigurationOptions)
Delete a configuration. Delete a configuration by specifying its name.- Parameters:
deleteConfigurationOptions- theDeleteConfigurationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
createConfigurationAction
public com.ibm.cloud.sdk.core.http.ServiceCall<ConfigurationAction> createConfigurationAction(CreateConfigurationActionOptions createConfigurationActionOptions)
Create a configuration action. Create a configuration action. This operation supports the following actions: - `private_cert_configuration_action_sign_intermediate`: Sign an intermediate certificate authority. - `private_cert_configuration_action_sign_csr`: Sign a certificate signing request. - `private_cert_configuration_action_set_signed`: Set a signed intermediate certificate authority. - `private_cert_configuration_action_revoke_ca_certificate`: Revoke an internally signed intermediate certificate authority certificate. - `private_cert_configuration_action_rotate_crl`: Rotate the certificate revocation list (CRL) of an intermediate certificate authority. - `private_cert_configuration_action_rotate_intermediate`: Rotate an internally signed intermediate certificate authority certificate.- Parameters:
createConfigurationActionOptions- theCreateConfigurationActionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeConfigurationAction
-
createNotificationsRegistration
public com.ibm.cloud.sdk.core.http.ServiceCall<NotificationsRegistration> createNotificationsRegistration(CreateNotificationsRegistrationOptions createNotificationsRegistrationOptions)
Register with Event Notifications instance. Create a registration between a Secrets Manager instance and [Event Notifications](https://cloud.ibm.com/apidocs/event-notifications). A successful request adds Secrets Manager as a source that you can reference from your Event Notifications instance. For more information about enabling notifications for Secrets Manager, check out the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-event-notifications).- Parameters:
createNotificationsRegistrationOptions- theCreateNotificationsRegistrationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeNotificationsRegistration
-
getNotificationsRegistration
public com.ibm.cloud.sdk.core.http.ServiceCall<NotificationsRegistration> getNotificationsRegistration(GetNotificationsRegistrationOptions getNotificationsRegistrationOptions)
Get Event Notifications registration details. Get the details of the registration between your Secrets Manager instance and Event Notifications.- Parameters:
getNotificationsRegistrationOptions- theGetNotificationsRegistrationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeNotificationsRegistration
-
getNotificationsRegistration
public com.ibm.cloud.sdk.core.http.ServiceCall<NotificationsRegistration> getNotificationsRegistration()
Get Event Notifications registration details. Get the details of the registration between your Secrets Manager instance and Event Notifications.- Returns:
- a
ServiceCallwith a result of typeNotificationsRegistration
-
deleteNotificationsRegistration
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteNotificationsRegistration(DeleteNotificationsRegistrationOptions deleteNotificationsRegistrationOptions)
Unregister from Event Notifications instance. Delete the registration between your Secrets Manager instance and Event Notifications. A successful request removes your Secrets Manager instance as a source in Event Notifications.- Parameters:
deleteNotificationsRegistrationOptions- theDeleteNotificationsRegistrationOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
deleteNotificationsRegistration
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteNotificationsRegistration()
Unregister from Event Notifications instance. Delete the registration between your Secrets Manager instance and Event Notifications. A successful request removes your Secrets Manager instance as a source in Event Notifications.- Returns:
- a
ServiceCallwith a void result
-
getNotificationsRegistrationTest
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> getNotificationsRegistrationTest(GetNotificationsRegistrationTestOptions getNotificationsRegistrationTestOptions)
Send a test event for Event Notifications registrations. Send a test event from a Secrets Manager instance to a configured [Event Notifications](https://cloud.ibm.com/apidocs/event-notifications) instance. A successful request sends a test event to the Event Notifications instance. For more information about enabling notifications for Secrets Manager, check out the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-event-notifications).- Parameters:
getNotificationsRegistrationTestOptions- theGetNotificationsRegistrationTestOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getNotificationsRegistrationTest
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> getNotificationsRegistrationTest()
Send a test event for Event Notifications registrations. Send a test event from a Secrets Manager instance to a configured [Event Notifications](https://cloud.ibm.com/apidocs/event-notifications) instance. A successful request sends a test event to the Event Notifications instance. For more information about enabling notifications for Secrets Manager, check out the [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-event-notifications).- Returns:
- a
ServiceCallwith a void result
-
-