Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
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
published on Thursday, Nov 5, 2026 by ibm-cloud
Provides a read-only data source to retrieve information about a sm_destination. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const smDestination = ibm.getSmDestination({
destinationId: smDestinationInstance.destinationId,
instanceId: smDestinationInstance.instanceId,
});
import pulumi
import pulumi_ibm as ibm
sm_destination = ibm.get_sm_destination(destination_id=sm_destination_instance["destinationId"],
instance_id=sm_destination_instance["instanceId"])
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.LookupSmDestination(ctx, &ibm.LookupSmDestinationArgs{
DestinationId: smDestinationInstance.DestinationId,
InstanceId: smDestinationInstance.InstanceId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var smDestination = Ibm.GetSmDestination.Invoke(new()
{
DestinationId = smDestinationInstance.DestinationId,
InstanceId = smDestinationInstance.InstanceId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSmDestinationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var smDestination = IbmFunctions.getSmDestination(GetSmDestinationArgs.builder()
.destinationId(smDestinationInstance.destinationId())
.instanceId(smDestinationInstance.instanceId())
.build());
}
}
variables:
smDestination:
fn::invoke:
function: ibm:getSmDestination
arguments:
destinationId: ${smDestinationInstance.destinationId}
instanceId: ${smDestinationInstance.instanceId}
Example coming soon!
Using getSmDestination
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSmDestination(args: GetSmDestinationArgs, opts?: InvokeOptions): Promise<GetSmDestinationResult>
function getSmDestinationOutput(args: GetSmDestinationOutputArgs, opts?: InvokeOutputOptions): Output<GetSmDestinationResult>def get_sm_destination(destination_id: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSmDestinationResult
def get_sm_destination_output(destination_id: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
instance_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSmDestinationResult]func LookupSmDestination(ctx *Context, args *LookupSmDestinationArgs, opts ...InvokeOption) (*LookupSmDestinationResult, error)
func LookupSmDestinationOutput(ctx *Context, args *LookupSmDestinationOutputArgs, opts ...InvokeOption) LookupSmDestinationResultOutput> Note: This function is named LookupSmDestination in the Go SDK.
public static class GetSmDestination
{
public static Task<GetSmDestinationResult> InvokeAsync(GetSmDestinationArgs args, InvokeOptions? opts = null)
public static Output<GetSmDestinationResult> Invoke(GetSmDestinationInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSmDestinationResult> Invoke(GetSmDestinationInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSmDestinationResult> getSmDestination(GetSmDestinationArgs args, InvokeOptions options)
public static Output<GetSmDestinationResult> getSmDestination(GetSmDestinationArgs args, InvokeOptions options)
public static Output<GetSmDestinationResult> getSmDestination(GetSmDestinationArgs args, InvokeOutputOptions options)
fn::invoke:
function: ibm:index/getSmDestination:getSmDestination
arguments:
# arguments dictionarydata "ibm_get_sm_destination" "name" {
# arguments
}The following arguments are supported:
- Destination
Id 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
- 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
- Id string
- The unique identifier of the sm_destination.
- Destination
Id 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
- 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
- Id string
- The unique identifier of the sm_destination.
- destination_
id 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
- 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
- id string
- The unique identifier of the sm_destination.
- destination
Id 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
- 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
- id String
- The unique identifier of the sm_destination.
- destination
Id 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
- 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
- id string
- The unique identifier of the sm_destination.
- destination_
id str - 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
- 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
- id str
- The unique identifier of the sm_destination.
- destination
Id 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
- 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
- id String
- The unique identifier of the sm_destination.
getSmDestination Result
The following output properties are available:
- 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
- (Forces new resource, 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
- (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 - 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 unique identifier of the sm_destination.
- Instance
Id string - 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
- (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
- 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
- (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
- (Forces new resource, 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
- (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 - 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 unique identifier of the sm_destination.
- Instance
Id string - 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
- (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
- 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
- (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
- (Forces new resource, 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
- (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 - 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 unique identifier of the sm_destination.
- instance_
id string - 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
- (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
- 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
- (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
- (Forces new resource, 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
- (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 - 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 unique identifier of the sm_destination.
- instance
Id String - 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
- (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
- 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
- (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
- (Forces new resource, 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
- (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 - 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 unique identifier of the sm_destination.
- instance
Id string - 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
- (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
- 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
- (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
- (Forces new resource, 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 str
- (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 str - 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 unique identifier of the sm_destination.
- instance_
id str - 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
- (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
- 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
- (String) 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
- (Forces new resource, 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
- (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 - 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 unique identifier of the sm_destination.
- instance
Id String - 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
- (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
- 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
- (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.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
ibm
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
published on Thursday, Nov 5, 2026 by ibm-cloud