ibm 1.85.0-beta0 published on Wednesday, Oct 29, 2025 by ibm-cloud
ibm.getSmKvSecret
Provides a read-only data source for a KV secret. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. The data source can be defined by providing the secret ID or the secret and secret group names.
Example Usage
By secret id
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const kvSecret = ibm.getSmKvSecret({
    instanceId: ibm_resource_instance.sm_instance.guid,
    region: "us-south",
    secretId: "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
});
import pulumi
import pulumi_ibm as ibm
kv_secret = ibm.get_sm_kv_secret(instance_id=ibm_resource_instance["sm_instance"]["guid"],
    region="us-south",
    secret_id="0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupSmKvSecret(ctx, &ibm.LookupSmKvSecretArgs{
			InstanceId: ibm_resource_instance.Sm_instance.Guid,
			Region:     pulumi.StringRef("us-south"),
			SecretId:   pulumi.StringRef("0b5571f7-21e6-42b7-91c5-3f5ac9793a46"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var kvSecret = Ibm.GetSmKvSecret.Invoke(new()
    {
        InstanceId = ibm_resource_instance.Sm_instance.Guid,
        Region = "us-south",
        SecretId = "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSmKvSecretArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var kvSecret = IbmFunctions.getSmKvSecret(GetSmKvSecretArgs.builder()
            .instanceId(ibm_resource_instance.sm_instance().guid())
            .region("us-south")
            .secretId("0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
            .build());
    }
}
variables:
  kvSecret:
    fn::invoke:
      function: ibm:getSmKvSecret
      arguments:
        instanceId: ${ibm_resource_instance.sm_instance.guid}
        region: us-south
        secretId: 0b5571f7-21e6-42b7-91c5-3f5ac9793a46
By secret name and group name
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const kvSecret = ibm.getSmKvSecret({
    instanceId: ibm_resource_instance.sm_instance.guid,
    region: "us-south",
    name: "secret-name",
    secretGroupName: "group-name",
});
import pulumi
import pulumi_ibm as ibm
kv_secret = ibm.get_sm_kv_secret(instance_id=ibm_resource_instance["sm_instance"]["guid"],
    region="us-south",
    name="secret-name",
    secret_group_name="group-name")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupSmKvSecret(ctx, &ibm.LookupSmKvSecretArgs{
			InstanceId:      ibm_resource_instance.Sm_instance.Guid,
			Region:          pulumi.StringRef("us-south"),
			Name:            pulumi.StringRef("secret-name"),
			SecretGroupName: pulumi.StringRef("group-name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var kvSecret = Ibm.GetSmKvSecret.Invoke(new()
    {
        InstanceId = ibm_resource_instance.Sm_instance.Guid,
        Region = "us-south",
        Name = "secret-name",
        SecretGroupName = "group-name",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSmKvSecretArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var kvSecret = IbmFunctions.getSmKvSecret(GetSmKvSecretArgs.builder()
            .instanceId(ibm_resource_instance.sm_instance().guid())
            .region("us-south")
            .name("secret-name")
            .secretGroupName("group-name")
            .build());
    }
}
variables:
  kvSecret:
    fn::invoke:
      function: ibm:getSmKvSecret
      arguments:
        instanceId: ${ibm_resource_instance.sm_instance.guid}
        region: us-south
        name: secret-name
        secretGroupName: group-name
Using getSmKvSecret
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSmKvSecret(args: GetSmKvSecretArgs, opts?: InvokeOptions): Promise<GetSmKvSecretResult>
function getSmKvSecretOutput(args: GetSmKvSecretOutputArgs, opts?: InvokeOptions): Output<GetSmKvSecretResult>def get_sm_kv_secret(endpoint_type: Optional[str] = None,
                     id: Optional[str] = None,
                     instance_id: Optional[str] = None,
                     name: Optional[str] = None,
                     region: Optional[str] = None,
                     secret_group_name: Optional[str] = None,
                     secret_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetSmKvSecretResult
def get_sm_kv_secret_output(endpoint_type: Optional[pulumi.Input[str]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     instance_id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     region: Optional[pulumi.Input[str]] = None,
                     secret_group_name: Optional[pulumi.Input[str]] = None,
                     secret_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetSmKvSecretResult]func LookupSmKvSecret(ctx *Context, args *LookupSmKvSecretArgs, opts ...InvokeOption) (*LookupSmKvSecretResult, error)
func LookupSmKvSecretOutput(ctx *Context, args *LookupSmKvSecretOutputArgs, opts ...InvokeOption) LookupSmKvSecretResultOutput> Note: This function is named LookupSmKvSecret in the Go SDK.
public static class GetSmKvSecret 
{
    public static Task<GetSmKvSecretResult> InvokeAsync(GetSmKvSecretArgs args, InvokeOptions? opts = null)
    public static Output<GetSmKvSecretResult> Invoke(GetSmKvSecretInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSmKvSecretResult> getSmKvSecret(GetSmKvSecretArgs args, InvokeOptions options)
public static Output<GetSmKvSecretResult> getSmKvSecret(GetSmKvSecretArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getSmKvSecret:getSmKvSecret
  arguments:
    # arguments dictionaryThe following arguments are supported:
- InstanceId string
- The GUID of the Secrets Manager instance.
- EndpointType string
- The endpoint type. If not provided the endpoint type is determined by the visibilityargument provided in the provider configuration.- Constraints: Allowable values are: private,public.
 
- Constraints: Allowable values are: 
- Id string
- The unique identifier of the data source.
- Name string
- The human-readable name of your secret. To be used in combination with secret_group_name.- Constraints: The maximum length is 256characters. The minimum length is2characters. The value must match regular expression^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
 
- Constraints: The maximum length is 
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- SecretGroup stringName 
- The name of your existing secret group. To be used in combination with name.- Constraints: The maximum length is 64characters. The minimum length is2characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- SecretId string
- The ID of the secret.- Constraints: The maximum length is 36characters. The minimum length is36characters. The value must match regular expression/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.
 
- Constraints: The maximum length is 
- InstanceId string
- The GUID of the Secrets Manager instance.
- EndpointType string
- The endpoint type. If not provided the endpoint type is determined by the visibilityargument provided in the provider configuration.- Constraints: Allowable values are: private,public.
 
- Constraints: Allowable values are: 
- Id string
- The unique identifier of the data source.
- Name string
- The human-readable name of your secret. To be used in combination with secret_group_name.- Constraints: The maximum length is 256characters. The minimum length is2characters. The value must match regular expression^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
 
- Constraints: The maximum length is 
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- SecretGroup stringName 
- The name of your existing secret group. To be used in combination with name.- Constraints: The maximum length is 64characters. The minimum length is2characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- SecretId string
- The ID of the secret.- Constraints: The maximum length is 36characters. The minimum length is36characters. The value must match regular expression/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.
 
- Constraints: The maximum length is 
- instanceId String
- The GUID of the Secrets Manager instance.
- endpointType String
- The endpoint type. If not provided the endpoint type is determined by the visibilityargument provided in the provider configuration.- Constraints: Allowable values are: private,public.
 
- Constraints: Allowable values are: 
- id String
- The unique identifier of the data source.
- name String
- The human-readable name of your secret. To be used in combination with secret_group_name.- Constraints: The maximum length is 256characters. The minimum length is2characters. The value must match regular expression^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
 
- Constraints: The maximum length is 
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- secretGroup StringName 
- The name of your existing secret group. To be used in combination with name.- Constraints: The maximum length is 64characters. The minimum length is2characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- secretId String
- The ID of the secret.- Constraints: The maximum length is 36characters. The minimum length is36characters. The value must match regular expression/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.
 
- Constraints: The maximum length is 
- instanceId string
- The GUID of the Secrets Manager instance.
- endpointType string
- The endpoint type. If not provided the endpoint type is determined by the visibilityargument provided in the provider configuration.- Constraints: Allowable values are: private,public.
 
- Constraints: Allowable values are: 
- id string
- The unique identifier of the data source.
- name string
- The human-readable name of your secret. To be used in combination with secret_group_name.- Constraints: The maximum length is 256characters. The minimum length is2characters. The value must match regular expression^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
 
- Constraints: The maximum length is 
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- secretGroup stringName 
- The name of your existing secret group. To be used in combination with name.- Constraints: The maximum length is 64characters. The minimum length is2characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- secretId string
- The ID of the secret.- Constraints: The maximum length is 36characters. The minimum length is36characters. The value must match regular expression/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.
 
- Constraints: The maximum length is 
- instance_id str
- The GUID of the Secrets Manager instance.
- endpoint_type str
- The endpoint type. If not provided the endpoint type is determined by the visibilityargument provided in the provider configuration.- Constraints: Allowable values are: private,public.
 
- Constraints: Allowable values are: 
- id str
- The unique identifier of the data source.
- name str
- The human-readable name of your secret. To be used in combination with secret_group_name.- Constraints: The maximum length is 256characters. The minimum length is2characters. The value must match regular expression^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
 
- Constraints: The maximum length is 
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- secret_group_ strname 
- The name of your existing secret group. To be used in combination with name.- Constraints: The maximum length is 64characters. The minimum length is2characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- secret_id str
- The ID of the secret.- Constraints: The maximum length is 36characters. The minimum length is36characters. The value must match regular expression/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.
 
- Constraints: The maximum length is 
- instanceId String
- The GUID of the Secrets Manager instance.
- endpointType String
- The endpoint type. If not provided the endpoint type is determined by the visibilityargument provided in the provider configuration.- Constraints: Allowable values are: private,public.
 
- Constraints: Allowable values are: 
- id String
- The unique identifier of the data source.
- name String
- The human-readable name of your secret. To be used in combination with secret_group_name.- Constraints: The maximum length is 256characters. The minimum length is2characters. The value must match regular expression^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
 
- Constraints: The maximum length is 
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- secretGroup StringName 
- The name of your existing secret group. To be used in combination with name.- Constraints: The maximum length is 64characters. The minimum length is2characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- secretId String
- The ID of the secret.- Constraints: The maximum length is 36characters. The minimum length is36characters. The value must match regular expression/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.
 
- Constraints: The maximum length is 
getSmKvSecret Result
The following output properties are available:
- CreatedAt string
- (String) The date when a resource was created. The date format follows RFC 3339.
- CreatedBy string
- (String) The unique identifier that is associated with the entity that created the secret.- Constraints: The maximum length is 128characters. The minimum length is4characters.
 
- Constraints: The maximum length is 
- Crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.- Constraints: The maximum length is 512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
 
- Constraints: The maximum length is 
- CustomMetadata Dictionary<string, string>
- Data Dictionary<string, string>
- (Map) The payload data of a key-value secret.- Constraints: The minimum length is 1item.
 
- Constraints: The minimum length is 
- Description string
- (String) An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.- Constraints: The maximum length is 1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- Downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- Id string
- The unique identifier of the data source.
- InstanceId string
- Labels List<string>
- (List) Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.- Constraints: The list items must match regular expression /(.*?)/. The maximum length is30items. The minimum length is0items.
 
- Constraints: The list items must match regular expression 
- LocksTotal double
- (Integer) The number of locks of the secret.- Constraints: The maximum value is 1000. The minimum value is0.
 
- Constraints: The maximum value is 
- Name string
- (String) The human-readable name of your secret.- Constraints: The maximum length is 256characters. The minimum length is2characters.
 
- Constraints: The maximum length is 
- Region string
- RetrievedAt string
- (String) The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if there is no record of secret data retrieval.
- SecretGroup stringId 
- (String) A UUID identifier, or defaultsecret group.- Constraints: The maximum length is 36characters. The minimum length is7characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/.
 
- Constraints: The maximum length is 
- SecretId string
- SecretType string
- (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.- Constraints: Allowable values are: arbitrary,imported_cert,public_cert,iam_credentials,kv,username_password,private_cert.
 
- Constraints: Allowable values are: 
- State double
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0,Active = 1,Suspended = 2,Deactivated = 3, andDestroyed = 5values.- Constraints: Allowable values are: 0,1,2,3,5.
 
- Constraints: Allowable values are: 
- StateDescription string
- (String) A text representation of the secret state.- Constraints: Allowable values are: pre_activation,active,suspended,deactivated,destroyed.
 
- Constraints: Allowable values are: 
- UpdatedAt string
- (String) The date when a resource was recently modified. The date format follows RFC 3339.
- VersionsTotal double
- (Integer) The number of versions of the secret.- Constraints: The maximum value is 50. The minimum value is0.
 
- Constraints: The maximum value is 
- EndpointType string
- SecretGroup stringName 
- CreatedAt string
- (String) The date when a resource was created. The date format follows RFC 3339.
- CreatedBy string
- (String) The unique identifier that is associated with the entity that created the secret.- Constraints: The maximum length is 128characters. The minimum length is4characters.
 
- Constraints: The maximum length is 
- Crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.- Constraints: The maximum length is 512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
 
- Constraints: The maximum length is 
- CustomMetadata map[string]string
- Data map[string]string
- (Map) The payload data of a key-value secret.- Constraints: The minimum length is 1item.
 
- Constraints: The minimum length is 
- Description string
- (String) An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.- Constraints: The maximum length is 1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- Downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- Id string
- The unique identifier of the data source.
- InstanceId string
- Labels []string
- (List) Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.- Constraints: The list items must match regular expression /(.*?)/. The maximum length is30items. The minimum length is0items.
 
- Constraints: The list items must match regular expression 
- LocksTotal float64
- (Integer) The number of locks of the secret.- Constraints: The maximum value is 1000. The minimum value is0.
 
- Constraints: The maximum value is 
- Name string
- (String) The human-readable name of your secret.- Constraints: The maximum length is 256characters. The minimum length is2characters.
 
- Constraints: The maximum length is 
- Region string
- RetrievedAt string
- (String) The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if there is no record of secret data retrieval.
- SecretGroup stringId 
- (String) A UUID identifier, or defaultsecret group.- Constraints: The maximum length is 36characters. The minimum length is7characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/.
 
- Constraints: The maximum length is 
- SecretId string
- SecretType string
- (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.- Constraints: Allowable values are: arbitrary,imported_cert,public_cert,iam_credentials,kv,username_password,private_cert.
 
- Constraints: Allowable values are: 
- State float64
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0,Active = 1,Suspended = 2,Deactivated = 3, andDestroyed = 5values.- Constraints: Allowable values are: 0,1,2,3,5.
 
- Constraints: Allowable values are: 
- StateDescription string
- (String) A text representation of the secret state.- Constraints: Allowable values are: pre_activation,active,suspended,deactivated,destroyed.
 
- Constraints: Allowable values are: 
- UpdatedAt string
- (String) The date when a resource was recently modified. The date format follows RFC 3339.
- VersionsTotal float64
- (Integer) The number of versions of the secret.- Constraints: The maximum value is 50. The minimum value is0.
 
- Constraints: The maximum value is 
- EndpointType string
- SecretGroup stringName 
- createdAt String
- (String) The date when a resource was created. The date format follows RFC 3339.
- createdBy String
- (String) The unique identifier that is associated with the entity that created the secret.- Constraints: The maximum length is 128characters. The minimum length is4characters.
 
- Constraints: The maximum length is 
- crn String
- (String) A CRN that uniquely identifies an IBM Cloud resource.- Constraints: The maximum length is 512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
 
- Constraints: The maximum length is 
- customMetadata Map<String,String>
- data Map<String,String>
- (Map) The payload data of a key-value secret.- Constraints: The minimum length is 1item.
 
- Constraints: The minimum length is 
- description String
- (String) An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.- Constraints: The maximum length is 1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- downloaded Boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- id String
- The unique identifier of the data source.
- instanceId String
- labels List<String>
- (List) Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.- Constraints: The list items must match regular expression /(.*?)/. The maximum length is30items. The minimum length is0items.
 
- Constraints: The list items must match regular expression 
- locksTotal Double
- (Integer) The number of locks of the secret.- Constraints: The maximum value is 1000. The minimum value is0.
 
- Constraints: The maximum value is 
- name String
- (String) The human-readable name of your secret.- Constraints: The maximum length is 256characters. The minimum length is2characters.
 
- Constraints: The maximum length is 
- region String
- retrievedAt String
- (String) The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if there is no record of secret data retrieval.
- secretGroup StringId 
- (String) A UUID identifier, or defaultsecret group.- Constraints: The maximum length is 36characters. The minimum length is7characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/.
 
- Constraints: The maximum length is 
- secretId String
- secretType String
- (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.- Constraints: Allowable values are: arbitrary,imported_cert,public_cert,iam_credentials,kv,username_password,private_cert.
 
- Constraints: Allowable values are: 
- state Double
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0,Active = 1,Suspended = 2,Deactivated = 3, andDestroyed = 5values.- Constraints: Allowable values are: 0,1,2,3,5.
 
- Constraints: Allowable values are: 
- stateDescription String
- (String) A text representation of the secret state.- Constraints: Allowable values are: pre_activation,active,suspended,deactivated,destroyed.
 
- Constraints: Allowable values are: 
- updatedAt String
- (String) The date when a resource was recently modified. The date format follows RFC 3339.
- versionsTotal Double
- (Integer) The number of versions of the secret.- Constraints: The maximum value is 50. The minimum value is0.
 
- Constraints: The maximum value is 
- endpointType String
- secretGroup StringName 
- createdAt string
- (String) The date when a resource was created. The date format follows RFC 3339.
- createdBy string
- (String) The unique identifier that is associated with the entity that created the secret.- Constraints: The maximum length is 128characters. The minimum length is4characters.
 
- Constraints: The maximum length is 
- crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.- Constraints: The maximum length is 512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
 
- Constraints: The maximum length is 
- customMetadata {[key: string]: string}
- data {[key: string]: string}
- (Map) The payload data of a key-value secret.- Constraints: The minimum length is 1item.
 
- Constraints: The minimum length is 
- description string
- (String) An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.- Constraints: The maximum length is 1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- downloaded boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- id string
- The unique identifier of the data source.
- instanceId string
- labels string[]
- (List) Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.- Constraints: The list items must match regular expression /(.*?)/. The maximum length is30items. The minimum length is0items.
 
- Constraints: The list items must match regular expression 
- locksTotal number
- (Integer) The number of locks of the secret.- Constraints: The maximum value is 1000. The minimum value is0.
 
- Constraints: The maximum value is 
- name string
- (String) The human-readable name of your secret.- Constraints: The maximum length is 256characters. The minimum length is2characters.
 
- Constraints: The maximum length is 
- region string
- retrievedAt string
- (String) The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if there is no record of secret data retrieval.
- secretGroup stringId 
- (String) A UUID identifier, or defaultsecret group.- Constraints: The maximum length is 36characters. The minimum length is7characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/.
 
- Constraints: The maximum length is 
- secretId string
- secretType string
- (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.- Constraints: Allowable values are: arbitrary,imported_cert,public_cert,iam_credentials,kv,username_password,private_cert.
 
- Constraints: Allowable values are: 
- state number
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0,Active = 1,Suspended = 2,Deactivated = 3, andDestroyed = 5values.- Constraints: Allowable values are: 0,1,2,3,5.
 
- Constraints: Allowable values are: 
- stateDescription string
- (String) A text representation of the secret state.- Constraints: Allowable values are: pre_activation,active,suspended,deactivated,destroyed.
 
- Constraints: Allowable values are: 
- updatedAt string
- (String) The date when a resource was recently modified. The date format follows RFC 3339.
- versionsTotal number
- (Integer) The number of versions of the secret.- Constraints: The maximum value is 50. The minimum value is0.
 
- Constraints: The maximum value is 
- endpointType string
- secretGroup stringName 
- created_at str
- (String) The date when a resource was created. The date format follows RFC 3339.
- created_by str
- (String) The unique identifier that is associated with the entity that created the secret.- Constraints: The maximum length is 128characters. The minimum length is4characters.
 
- Constraints: The maximum length is 
- crn str
- (String) A CRN that uniquely identifies an IBM Cloud resource.- Constraints: The maximum length is 512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
 
- Constraints: The maximum length is 
- custom_metadata Mapping[str, str]
- data Mapping[str, str]
- (Map) The payload data of a key-value secret.- Constraints: The minimum length is 1item.
 
- Constraints: The minimum length is 
- description str
- (String) An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.- Constraints: The maximum length is 1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- id str
- The unique identifier of the data source.
- instance_id str
- labels Sequence[str]
- (List) Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.- Constraints: The list items must match regular expression /(.*?)/. The maximum length is30items. The minimum length is0items.
 
- Constraints: The list items must match regular expression 
- locks_total float
- (Integer) The number of locks of the secret.- Constraints: The maximum value is 1000. The minimum value is0.
 
- Constraints: The maximum value is 
- name str
- (String) The human-readable name of your secret.- Constraints: The maximum length is 256characters. The minimum length is2characters.
 
- Constraints: The maximum length is 
- region str
- retrieved_at str
- (String) The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if there is no record of secret data retrieval.
- secret_group_ strid 
- (String) A UUID identifier, or defaultsecret group.- Constraints: The maximum length is 36characters. The minimum length is7characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/.
 
- Constraints: The maximum length is 
- secret_id str
- secret_type str
- (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.- Constraints: Allowable values are: arbitrary,imported_cert,public_cert,iam_credentials,kv,username_password,private_cert.
 
- Constraints: Allowable values are: 
- state float
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0,Active = 1,Suspended = 2,Deactivated = 3, andDestroyed = 5values.- Constraints: Allowable values are: 0,1,2,3,5.
 
- Constraints: Allowable values are: 
- state_description str
- (String) A text representation of the secret state.- Constraints: Allowable values are: pre_activation,active,suspended,deactivated,destroyed.
 
- Constraints: Allowable values are: 
- updated_at str
- (String) The date when a resource was recently modified. The date format follows RFC 3339.
- versions_total float
- (Integer) The number of versions of the secret.- Constraints: The maximum value is 50. The minimum value is0.
 
- Constraints: The maximum value is 
- endpoint_type str
- secret_group_ strname 
- createdAt String
- (String) The date when a resource was created. The date format follows RFC 3339.
- createdBy String
- (String) The unique identifier that is associated with the entity that created the secret.- Constraints: The maximum length is 128characters. The minimum length is4characters.
 
- Constraints: The maximum length is 
- crn String
- (String) A CRN that uniquely identifies an IBM Cloud resource.- Constraints: The maximum length is 512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
 
- Constraints: The maximum length is 
- customMetadata Map<String>
- data Map<String>
- (Map) The payload data of a key-value secret.- Constraints: The minimum length is 1item.
 
- Constraints: The minimum length is 
- description String
- (String) An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.- Constraints: The maximum length is 1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
 
- Constraints: The maximum length is 
- downloaded Boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- id String
- The unique identifier of the data source.
- instanceId String
- labels List<String>
- (List) Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.- Constraints: The list items must match regular expression /(.*?)/. The maximum length is30items. The minimum length is0items.
 
- Constraints: The list items must match regular expression 
- locksTotal Number
- (Integer) The number of locks of the secret.- Constraints: The maximum value is 1000. The minimum value is0.
 
- Constraints: The maximum value is 
- name String
- (String) The human-readable name of your secret.- Constraints: The maximum length is 256characters. The minimum length is2characters.
 
- Constraints: The maximum length is 
- region String
- retrievedAt String
- (String) The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if there is no record of secret data retrieval.
- secretGroup StringId 
- (String) A UUID identifier, or defaultsecret group.- Constraints: The maximum length is 36characters. The minimum length is7characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/.
 
- Constraints: The maximum length is 
- secretId String
- secretType String
- (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.- Constraints: Allowable values are: arbitrary,imported_cert,public_cert,iam_credentials,kv,username_password,private_cert.
 
- Constraints: Allowable values are: 
- state Number
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the Pre-activation = 0,Active = 1,Suspended = 2,Deactivated = 3, andDestroyed = 5values.- Constraints: Allowable values are: 0,1,2,3,5.
 
- Constraints: Allowable values are: 
- stateDescription String
- (String) A text representation of the secret state.- Constraints: Allowable values are: pre_activation,active,suspended,deactivated,destroyed.
 
- Constraints: Allowable values are: 
- updatedAt String
- (String) The date when a resource was recently modified. The date format follows RFC 3339.
- versionsTotal Number
- (Integer) The number of versions of the secret.- Constraints: The maximum value is 50. The minimum value is0.
 
- Constraints: The maximum value is 
- endpointType String
- secretGroup StringName 
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the ibmTerraform Provider.
