1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsSnapshotClones
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsSnapshotClones

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Import the details of an existing IBM Cloud infrastructure snapshot’s clone collection as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax, see viewing snapshots.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dsSnapshotclones = ibm.getIsSnapshotClones({
        snapshot: "6284-8230x-1234-33ae",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_snapshotclones = ibm.get_is_snapshot_clones(snapshot="6284-8230x-1234-33ae")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetIsSnapshotClones(ctx, &ibm.GetIsSnapshotClonesArgs{
    			Snapshot: "6284-8230x-1234-33ae",
    		}, 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 dsSnapshotclones = Ibm.GetIsSnapshotClones.Invoke(new()
        {
            Snapshot = "6284-8230x-1234-33ae",
        });
    
    });
    
    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.GetIsSnapshotClonesArgs;
    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 dsSnapshotclones = IbmFunctions.getIsSnapshotClones(GetIsSnapshotClonesArgs.builder()
                .snapshot("6284-8230x-1234-33ae")
                .build());
    
        }
    }
    
    variables:
      dsSnapshotclones:
        fn::invoke:
          function: ibm:getIsSnapshotClones
          arguments:
            snapshot: 6284-8230x-1234-33ae
    

    Using getIsSnapshotClones

    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 getIsSnapshotClones(args: GetIsSnapshotClonesArgs, opts?: InvokeOptions): Promise<GetIsSnapshotClonesResult>
    function getIsSnapshotClonesOutput(args: GetIsSnapshotClonesOutputArgs, opts?: InvokeOptions): Output<GetIsSnapshotClonesResult>
    def get_is_snapshot_clones(id: Optional[str] = None,
                               snapshot: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetIsSnapshotClonesResult
    def get_is_snapshot_clones_output(id: Optional[pulumi.Input[str]] = None,
                               snapshot: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetIsSnapshotClonesResult]
    func GetIsSnapshotClones(ctx *Context, args *GetIsSnapshotClonesArgs, opts ...InvokeOption) (*GetIsSnapshotClonesResult, error)
    func GetIsSnapshotClonesOutput(ctx *Context, args *GetIsSnapshotClonesOutputArgs, opts ...InvokeOption) GetIsSnapshotClonesResultOutput

    > Note: This function is named GetIsSnapshotClones in the Go SDK.

    public static class GetIsSnapshotClones 
    {
        public static Task<GetIsSnapshotClonesResult> InvokeAsync(GetIsSnapshotClonesArgs args, InvokeOptions? opts = null)
        public static Output<GetIsSnapshotClonesResult> Invoke(GetIsSnapshotClonesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsSnapshotClonesResult> getIsSnapshotClones(GetIsSnapshotClonesArgs args, InvokeOptions options)
    public static Output<GetIsSnapshotClonesResult> getIsSnapshotClones(GetIsSnapshotClonesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsSnapshotClones:getIsSnapshotClones
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Snapshot string
    The unique identifier of the snapshot.
    Id string
    Snapshot string
    The unique identifier of the snapshot.
    Id string
    snapshot String
    The unique identifier of the snapshot.
    id String
    snapshot string
    The unique identifier of the snapshot.
    id string
    snapshot str
    The unique identifier of the snapshot.
    id str
    snapshot String
    The unique identifier of the snapshot.
    id String

    getIsSnapshotClones Result

    The following output properties are available:

    Clones List<GetIsSnapshotClonesClone>
    (List) List of snapshots in the IBM Cloud Infrastructure.
    Id string
    Snapshot string
    Clones []GetIsSnapshotClonesClone
    (List) List of snapshots in the IBM Cloud Infrastructure.
    Id string
    Snapshot string
    clones List<GetIsSnapshotClonesClone>
    (List) List of snapshots in the IBM Cloud Infrastructure.
    id String
    snapshot String
    clones GetIsSnapshotClonesClone[]
    (List) List of snapshots in the IBM Cloud Infrastructure.
    id string
    snapshot string
    clones Sequence[GetIsSnapshotClonesClone]
    (List) List of snapshots in the IBM Cloud Infrastructure.
    id str
    snapshot str
    clones List<Property Map>
    (List) List of snapshots in the IBM Cloud Infrastructure.
    id String
    snapshot String

    Supporting Types

    GetIsSnapshotClonesClone

    Available bool
    (Bool) Indicates whether this snapshot clone is available for use.
    CreatedAt string
    (String) The date and time that this snapshot clone was created.
    Zone string
    (String) The zone this snapshot clone resides in.
    Available bool
    (Bool) Indicates whether this snapshot clone is available for use.
    CreatedAt string
    (String) The date and time that this snapshot clone was created.
    Zone string
    (String) The zone this snapshot clone resides in.
    available Boolean
    (Bool) Indicates whether this snapshot clone is available for use.
    createdAt String
    (String) The date and time that this snapshot clone was created.
    zone String
    (String) The zone this snapshot clone resides in.
    available boolean
    (Bool) Indicates whether this snapshot clone is available for use.
    createdAt string
    (String) The date and time that this snapshot clone was created.
    zone string
    (String) The zone this snapshot clone resides in.
    available bool
    (Bool) Indicates whether this snapshot clone is available for use.
    created_at str
    (String) The date and time that this snapshot clone was created.
    zone str
    (String) The zone this snapshot clone resides in.
    available Boolean
    (Bool) Indicates whether this snapshot clone is available for use.
    createdAt String
    (String) The date and time that this snapshot clone was created.
    zone String
    (String) The zone this snapshot clone resides in.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud