1. Registry
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. SmDestination
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
ibm
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud

    Create, update, and delete sm_destinations with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const smDestinationInstance = new ibm.SmDestination("sm_destination_instance", {
        crn: "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/e91c8f42b3d74e1a9c2f05d8b67a3e10:3f8b1c7a-9d42-4e6f-b8a5-2c1d9e7f4b83::",
        description: "Production PostgreSQL database",
        instanceId: "fe5c5c27-3e44-474a-9484-55892e12d6d1",
        name: "name",
        type: "ibm_cloud_database",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    sm_destination_instance = ibm.SmDestination("sm_destination_instance",
        crn="crn:v1:bluemix:public:databases-for-postgresql:us-south:a/e91c8f42b3d74e1a9c2f05d8b67a3e10:3f8b1c7a-9d42-4e6f-b8a5-2c1d9e7f4b83::",
        description="Production PostgreSQL database",
        instance_id="fe5c5c27-3e44-474a-9484-55892e12d6d1",
        name="name",
        type="ibm_cloud_database")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/v2/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewSmDestination(ctx, "sm_destination_instance", &ibm.SmDestinationArgs{
    			Crn:         pulumi.String("crn:v1:bluemix:public:databases-for-postgresql:us-south:a/e91c8f42b3d74e1a9c2f05d8b67a3e10:3f8b1c7a-9d42-4e6f-b8a5-2c1d9e7f4b83::"),
    			Description: pulumi.String("Production PostgreSQL database"),
    			InstanceId:  pulumi.String("fe5c5c27-3e44-474a-9484-55892e12d6d1"),
    			Name:        pulumi.String("name"),
    			Type:        pulumi.String("ibm_cloud_database"),
    		})
    		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 smDestinationInstance = new Ibm.SmDestination("sm_destination_instance", new()
        {
            Crn = "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/e91c8f42b3d74e1a9c2f05d8b67a3e10:3f8b1c7a-9d42-4e6f-b8a5-2c1d9e7f4b83::",
            Description = "Production PostgreSQL database",
            InstanceId = "fe5c5c27-3e44-474a-9484-55892e12d6d1",
            Name = "name",
            Type = "ibm_cloud_database",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.SmDestination;
    import com.pulumi.ibm.SmDestinationArgs;
    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) {
            var smDestinationInstance = new SmDestination("smDestinationInstance", SmDestinationArgs.builder()
                .crn("crn:v1:bluemix:public:databases-for-postgresql:us-south:a/e91c8f42b3d74e1a9c2f05d8b67a3e10:3f8b1c7a-9d42-4e6f-b8a5-2c1d9e7f4b83::")
                .description("Production PostgreSQL database")
                .instanceId("fe5c5c27-3e44-474a-9484-55892e12d6d1")
                .name("name")
                .type("ibm_cloud_database")
                .build());
    
        }
    }
    
    resources:
      smDestinationInstance:
        type: ibm:SmDestination
        name: sm_destination_instance
        properties:
          crn: 'crn:v1:bluemix:public:databases-for-postgresql:us-south:a/e91c8f42b3d74e1a9c2f05d8b67a3e10:3f8b1c7a-9d42-4e6f-b8a5-2c1d9e7f4b83::'
          description: Production PostgreSQL database
          instanceId: fe5c5c27-3e44-474a-9484-55892e12d6d1
          name: name
          type: ibm_cloud_database
    
    Example coming soon!
    

    Create SmDestination Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SmDestination(name: string, args: SmDestinationArgs, opts?: CustomResourceOptions);
    @overload
    def SmDestination(resource_name: str,
                      args: SmDestinationArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SmDestination(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      crn: Optional[str] = None,
                      instance_id: Optional[str] = None,
                      type: Optional[str] = None,
                      description: Optional[str] = None,
                      name: Optional[str] = None,
                      sm_destination_id: Optional[str] = None)
    func NewSmDestination(ctx *Context, name string, args SmDestinationArgs, opts ...ResourceOption) (*SmDestination, error)
    public SmDestination(string name, SmDestinationArgs args, CustomResourceOptions? opts = null)
    public SmDestination(String name, SmDestinationArgs args)
    public SmDestination(String name, SmDestinationArgs args, CustomResourceOptions options)
    
    type: ibm:SmDestination
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ibm_sm_destination" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SmDestinationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SmDestinationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SmDestinationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SmDestinationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SmDestinationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var smDestinationResource = new Ibm.SmDestination("smDestinationResource", new()
    {
        Crn = "string",
        InstanceId = "string",
        Type = "string",
        Description = "string",
        Name = "string",
        SmDestinationId = "string",
    });
    
    example, err := ibm.NewSmDestination(ctx, "smDestinationResource", &ibm.SmDestinationArgs{
    	Crn:             pulumi.String("string"),
    	InstanceId:      pulumi.String("string"),
    	Type:            pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	SmDestinationId: pulumi.String("string"),
    })
    
    resource "ibm_sm_destination" "smDestinationResource" {
      lifecycle {
        create_before_destroy = true
      }
      crn               = "string"
      instance_id       = "string"
      type              = "string"
      description       = "string"
      name              = "string"
      sm_destination_id = "string"
    }
    
    var smDestinationResource = new SmDestination("smDestinationResource", SmDestinationArgs.builder()
        .crn("string")
        .instanceId("string")
        .type("string")
        .description("string")
        .name("string")
        .smDestinationId("string")
        .build());
    
    sm_destination_resource = ibm.SmDestination("smDestinationResource",
        crn="string",
        instance_id="string",
        type="string",
        description="string",
        name="string",
        sm_destination_id="string")
    
    const smDestinationResource = new ibm.SmDestination("smDestinationResource", {
        crn: "string",
        instanceId: "string",
        type: "string",
        description: "string",
        name: "string",
        smDestinationId: "string",
    });
    
    type: ibm:SmDestination
    properties:
        crn: string
        description: string
        instanceId: string
        name: string
        smDestinationId: string
        type: string
    

    SmDestination Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SmDestination resource accepts the following input properties:

    Crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    InstanceId string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    Description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    Name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    SmDestinationId string
    The unique identifier of the sm_destination.
    Crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    InstanceId string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    Description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    Name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    SmDestinationId string
    The unique identifier of the sm_destination.
    crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    instance_id string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    sm_destination_id string
    The unique identifier of the sm_destination.
    crn String
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    instanceId String
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    type String
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    description String
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    name String
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    smDestinationId String
    The unique identifier of the sm_destination.
    crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    instanceId string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    smDestinationId string
    The unique identifier of the sm_destination.
    crn str
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    instance_id str
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    type str
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    description str
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    name str
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    sm_destination_id str
    The unique identifier of the sm_destination.
    crn String
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    instanceId String
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    type String
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    description String
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    name String
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    smDestinationId String
    The unique identifier of the sm_destination.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SmDestination resource produces the following output properties:

    CreatedAt string
    (String) Timestamp when the destination was created.
    CreatedBy string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    DestinationId string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    State string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    UpdatedAt string
    (String) Timestamp when the destination was last updated.
    CreatedAt string
    (String) Timestamp when the destination was created.
    CreatedBy string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    DestinationId string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    State string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    UpdatedAt string
    (String) Timestamp when the destination was last updated.
    created_at string
    (String) Timestamp when the destination was created.
    created_by string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    destination_id string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    id string
    The provider-assigned unique ID for this managed resource.
    message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    state string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    updated_at string
    (String) Timestamp when the destination was last updated.
    createdAt String
    (String) Timestamp when the destination was created.
    createdBy String
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    destinationId String
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href String
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    state String
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    updatedAt String
    (String) Timestamp when the destination was last updated.
    createdAt string
    (String) Timestamp when the destination was created.
    createdBy string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    destinationId string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    id string
    The provider-assigned unique ID for this managed resource.
    message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    state string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    updatedAt string
    (String) Timestamp when the destination was last updated.
    created_at str
    (String) Timestamp when the destination was created.
    created_by str
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    destination_id str
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href str
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    id str
    The provider-assigned unique ID for this managed resource.
    message str
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    state str
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    updated_at str
    (String) Timestamp when the destination was last updated.
    createdAt String
    (String) Timestamp when the destination was created.
    createdBy String
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    destinationId String
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href String
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    state String
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    updatedAt String
    (String) Timestamp when the destination was last updated.

    Look up Existing SmDestination Resource

    Get an existing SmDestination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SmDestinationState, opts?: CustomResourceOptions): SmDestination
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            crn: Optional[str] = None,
            description: Optional[str] = None,
            destination_id: Optional[str] = None,
            href: Optional[str] = None,
            instance_id: Optional[str] = None,
            message: Optional[str] = None,
            name: Optional[str] = None,
            sm_destination_id: Optional[str] = None,
            state: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> SmDestination
    func GetSmDestination(ctx *Context, name string, id IDInput, state *SmDestinationState, opts ...ResourceOption) (*SmDestination, error)
    public static SmDestination Get(string name, Input<string> id, SmDestinationState? state, CustomResourceOptions? opts = null)
    public static SmDestination get(String name, Output<String> id, SmDestinationState state, CustomResourceOptions options)
    resources:  _:    type: ibm:SmDestination    get:      id: ${id}
    import {
      to = ibm_sm_destination.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    (String) Timestamp when the destination was created.
    CreatedBy string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    Crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    Description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    DestinationId string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    InstanceId string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    Name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    SmDestinationId string
    The unique identifier of the sm_destination.
    State string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    Type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    UpdatedAt string
    (String) Timestamp when the destination was last updated.
    CreatedAt string
    (String) Timestamp when the destination was created.
    CreatedBy string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    Crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    Description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    DestinationId string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    InstanceId string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    Message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    Name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    SmDestinationId string
    The unique identifier of the sm_destination.
    State string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    Type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    UpdatedAt string
    (String) Timestamp when the destination was last updated.
    created_at string
    (String) Timestamp when the destination was created.
    created_by string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    destination_id string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    instance_id string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    sm_destination_id string
    The unique identifier of the sm_destination.
    state string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    updated_at string
    (String) Timestamp when the destination was last updated.
    createdAt String
    (String) Timestamp when the destination was created.
    createdBy String
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    crn String
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    description String
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    destinationId String
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href String
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    instanceId String
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    message String
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    name String
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    smDestinationId String
    The unique identifier of the sm_destination.
    state String
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    type String
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    updatedAt String
    (String) Timestamp when the destination was last updated.
    createdAt string
    (String) Timestamp when the destination was created.
    createdBy string
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    crn string
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    description string
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    destinationId string
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href string
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    instanceId string
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    message string
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    name string
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    smDestinationId string
    The unique identifier of the sm_destination.
    state string
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    type string
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    updatedAt string
    (String) Timestamp when the destination was last updated.
    created_at str
    (String) Timestamp when the destination was created.
    created_by str
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    crn str
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    description str
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    destination_id str
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href str
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    instance_id str
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    message str
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    name str
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    sm_destination_id str
    The unique identifier of the sm_destination.
    state str
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    type str
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    updated_at str
    (String) Timestamp when the destination was last updated.
    createdAt String
    (String) Timestamp when the destination was created.
    createdBy String
    (String) IAM identity that created the destination.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^[\\S]+$/.
    crn String
    IBM Cloud Database service instance CRN.

    • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
    description String
    Optional description.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
    destinationId String
    (String) Destination ID.

    • Constraints: Length must be 36 characters. 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}$/.
    href String
    (String) The URL of the destination resource.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character.
    instanceId String
    Secrets Manager instance ID.

    • Constraints: Length must be 36 characters. 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}$/.
    message String
    (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when state is failed, describing why provisioning or deletion failed.

    • Constraints: The maximum length is 1024 characters. The minimum length is 1 character.
    name String
    Destination name.

    • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$/.
    smDestinationId String
    The unique identifier of the sm_destination.
    state String
    (String) Destination state:- not_started: Initial state before the first provisioning attempt begins- provisioning: Provisioning in progress — poll until succeeded or failed- succeeded: Destination ready and usable- failed: Terminal state reached when provisioning or deletion fails. A failed destination still counts against the per-instance quota until deleted.- deleting: Deletion in progress.

    • Constraints: Allowable values are: not_started, provisioning, succeeded, failed, deleting.
    type String
    Destination type.

    • Constraints: Allowable values are: ibm_cloud_database.
    updatedAt String
    (String) Timestamp when the destination was last updated.

    Import

    You can import the ibm_sm_destination resource by using id.

    The id property can be formed from instance_id, and destination_id in the following format:

    
    <instance_id>/<destination_id>
    
    
    • instance_id: A string in the format fe5c5c27-3e44-474a-9484-55892e12d6d1. Secrets Manager instance ID.

    • destination_id: A strfmt.UUID. Destination ID.

    For more information, see the documentation.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/smDestination:SmDestination sm_destination <instance_id>/<destination_id>
    ```
    
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm
    Viewing docs for ibm 2.9.0
    published on Thursday, Nov 5, 2026 by ibm-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial