published on Thursday, Nov 5, 2026 by ibm-cloud
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
512characters. The minimum length is9characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
- Constraints: The maximum length is
- Instance
Id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- Type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- Description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- Name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- Sm
Destination stringId - The unique identifier of the sm_destination.
- Crn string
- IBM Cloud Database service instance CRN.
- 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
- Instance
Id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- Type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- Description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- Name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- Sm
Destination stringId - The unique identifier of the sm_destination.
- crn string
- IBM Cloud Database service instance CRN.
- 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
- instance_
id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm_
destination_ stringid - The unique identifier of the sm_destination.
- crn String
- IBM Cloud Database service instance CRN.
- 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
- instance
Id String - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- type String
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- description String
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- name String
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm
Destination StringId - The unique identifier of the sm_destination.
- crn string
- IBM Cloud Database service instance CRN.
- 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
- instance
Id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm
Destination stringId - The unique identifier of the sm_destination.
- crn str
- IBM Cloud Database service instance CRN.
- 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
- instance_
id str - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- type str
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- description str
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- name str
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm_
destination_ strid - The unique identifier of the sm_destination.
- crn String
- IBM Cloud Database service instance CRN.
- 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
- instance
Id String - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- type String
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- description String
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- name String
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm
Destination StringId - 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:
- 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- Destination
Id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- Href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- State string
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- Updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- Destination
Id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- Href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- State string
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- Updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- destination_
id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- state string
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- updated_
at 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- destination
Id String - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href String
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- state String
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- destination
Id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- state string
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- destination_
id str - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href str
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- state str
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- updated_
at str - (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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- destination
Id String - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href String
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- 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
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- state String
- (String) Destination state:-
not_started: Initial state before the first provisioning attempt begins-provisioning: Provisioning in progress — poll untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- updated
At 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) -> SmDestinationfunc 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.
- 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- Crn string
- IBM Cloud Database service instance CRN.
- 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
- Description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- Destination
Id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- Href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- Instance
Id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- Message string
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- Name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- Sm
Destination stringId - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- Type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- Updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- Crn string
- IBM Cloud Database service instance CRN.
- 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
- Description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- Destination
Id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- Href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- Instance
Id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- Message string
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- Name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- Sm
Destination stringId - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- Type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- Updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- crn string
- IBM Cloud Database service instance CRN.
- 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
- description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- destination_
id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- instance_
id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- message string
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm_
destination_ stringid - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- updated_
at 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- crn String
- IBM Cloud Database service instance CRN.
- 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
- description String
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- destination
Id String - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href String
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- instance
Id String - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- message String
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- name String
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm
Destination StringId - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- type String
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- crn string
- IBM Cloud Database service instance CRN.
- 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
- description string
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- destination
Id string - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href string
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- instance
Id string - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- message string
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- name string
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm
Destination stringId - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- type string
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- updated
At 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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- crn str
- IBM Cloud Database service instance CRN.
- 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
- description str
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- destination_
id str - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href str
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- instance_
id str - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- message str
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- name str
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm_
destination_ strid - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- type str
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- updated_
at str - (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
256characters. The minimum length is1character. The value must match regular expression/^[\\S]+$/.
- Constraints: The maximum length is
- crn String
- IBM Cloud Database service instance CRN.
- 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
- description String
- Optional description.
- Constraints: The maximum length is
1024characters. The minimum length is0characters. The value must match regular expression/(.*?)/.
- Constraints: The maximum length is
- destination
Id String - (String) Destination ID.
- Constraints: Length must be
36characters. 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: Length must be
- href String
- (String) The URL of the destination resource.
- Constraints: The maximum length is
2048characters. The minimum length is1character.
- Constraints: The maximum length is
- instance
Id String - Secrets Manager instance ID.
- Constraints: Length must be
36characters. 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: Length must be
- message String
- (String) Human-readable message providing additional context about the current state. Present only when non-empty — set when
stateisfailed, describing why provisioning or deletion failed.- Constraints: The maximum length is
1024characters. The minimum length is1character.
- Constraints: The maximum length is
- name String
- Destination 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]*)*[A-Za-z0-9]+$/.
- Constraints: The maximum length is
- sm
Destination StringId - 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 untilsucceededorfailed-succeeded: Destination ready and usable-failed: Terminal state reached when provisioning or deletion fails. Afaileddestination still counts against the per-instance quota until deleted.-deleting: Deletion in progress.- Constraints: Allowable values are:
not_started,provisioning,succeeded,failed,deleting.
- Constraints: Allowable values are:
- type String
- Destination type.
- Constraints: Allowable values are:
ibm_cloud_database.
- Constraints: Allowable values are:
- updated
At 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 formatfe5c5c27-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
ibmTerraform Provider.
published on Thursday, Nov 5, 2026 by ibm-cloud