ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIsSnapshotClones
Explore with Pulumi AI
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:
getIsSnapshotClones Result
The following output properties are available:
- Clones
List<Get
Is Snapshot Clones Clone> - (List) List of snapshots in the IBM Cloud Infrastructure.
- Id string
- Snapshot string
- Clones
[]Get
Is Snapshot Clones Clone - (List) List of snapshots in the IBM Cloud Infrastructure.
- Id string
- Snapshot string
- clones
List<Get
Is Snapshot Clones Clone> - (List) List of snapshots in the IBM Cloud Infrastructure.
- id String
- snapshot String
- clones
Get
Is Snapshot Clones Clone[] - (List) List of snapshots in the IBM Cloud Infrastructure.
- id string
- snapshot string
- clones
Sequence[Get
Is Snapshot Clones Clone] - (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.
- created_
at str - (String) The date and time that this snapshot clone was created.
- zone str
- (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.