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

ibm.getPiPvmSnapshots

Explore with Pulumi AI

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

    Retrieve information about a Power Systems Virtual Server instance snapshots. For more information, about Power Virtual Server PVM instance snapshots, see getting started with IBM Power Systems Virtual Servers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dsPvmSnapshots = ibm.getPiPvmSnapshots({
        piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
        piInstanceName: "terraform-test-instance",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_pvm_snapshots = ibm.get_pi_pvm_snapshots(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
        pi_instance_name="terraform-test-instance")
    
    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.GetPiPvmSnapshots(ctx, &ibm.GetPiPvmSnapshotsArgs{
    			PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    			PiInstanceName:    "terraform-test-instance",
    		}, 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 dsPvmSnapshots = Ibm.GetPiPvmSnapshots.Invoke(new()
        {
            PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
            PiInstanceName = "terraform-test-instance",
        });
    
    });
    
    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.GetPiPvmSnapshotsArgs;
    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 dsPvmSnapshots = IbmFunctions.getPiPvmSnapshots(GetPiPvmSnapshotsArgs.builder()
                .piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
                .piInstanceName("terraform-test-instance")
                .build());
    
        }
    }
    
    variables:
      dsPvmSnapshots:
        fn::invoke:
          function: ibm:getPiPvmSnapshots
          arguments:
            piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
            piInstanceName: terraform-test-instance
    

    Notes

    • Please find supported Regions for endpoints.
    • If a Power cloud instance is provisioned at lon04, The provider level attributes should be as follows:
      • region - lon
      • zone - lon04

    Example usage:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Using getPiPvmSnapshots

    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 getPiPvmSnapshots(args: GetPiPvmSnapshotsArgs, opts?: InvokeOptions): Promise<GetPiPvmSnapshotsResult>
    function getPiPvmSnapshotsOutput(args: GetPiPvmSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetPiPvmSnapshotsResult>
    def get_pi_pvm_snapshots(id: Optional[str] = None,
                             pi_cloud_instance_id: Optional[str] = None,
                             pi_instance_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPiPvmSnapshotsResult
    def get_pi_pvm_snapshots_output(id: Optional[pulumi.Input[str]] = None,
                             pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                             pi_instance_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPiPvmSnapshotsResult]
    func GetPiPvmSnapshots(ctx *Context, args *GetPiPvmSnapshotsArgs, opts ...InvokeOption) (*GetPiPvmSnapshotsResult, error)
    func GetPiPvmSnapshotsOutput(ctx *Context, args *GetPiPvmSnapshotsOutputArgs, opts ...InvokeOption) GetPiPvmSnapshotsResultOutput

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

    public static class GetPiPvmSnapshots 
    {
        public static Task<GetPiPvmSnapshotsResult> InvokeAsync(GetPiPvmSnapshotsArgs args, InvokeOptions? opts = null)
        public static Output<GetPiPvmSnapshotsResult> Invoke(GetPiPvmSnapshotsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiPvmSnapshotsResult> getPiPvmSnapshots(GetPiPvmSnapshotsArgs args, InvokeOptions options)
    public static Output<GetPiPvmSnapshotsResult> getPiPvmSnapshots(GetPiPvmSnapshotsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiPvmSnapshots:getPiPvmSnapshots
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiInstanceName string
    The unique identifier or name of the instance.
    Id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiInstanceName string
    The unique identifier or name of the instance.
    Id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piInstanceName String
    The unique identifier or name of the instance.
    id String
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piInstanceName string
    The unique identifier or name of the instance.
    id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_instance_name str
    The unique identifier or name of the instance.
    id str
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piInstanceName String
    The unique identifier or name of the instance.
    id String
    (String) The unique identifier of the Power Virtual Machine instance snapshot.

    getPiPvmSnapshots Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    PiCloudInstanceId string
    PiInstanceName string
    PvmSnapshots List<GetPiPvmSnapshotsPvmSnapshot>
    The list of Power Virtual Machine instance snapshots.
    Id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    PiCloudInstanceId string
    PiInstanceName string
    PvmSnapshots []GetPiPvmSnapshotsPvmSnapshot
    The list of Power Virtual Machine instance snapshots.
    id String
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    piCloudInstanceId String
    piInstanceName String
    pvmSnapshots List<GetPiPvmSnapshotsPvmSnapshot>
    The list of Power Virtual Machine instance snapshots.
    id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    piCloudInstanceId string
    piInstanceName string
    pvmSnapshots GetPiPvmSnapshotsPvmSnapshot[]
    The list of Power Virtual Machine instance snapshots.
    id str
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    pi_cloud_instance_id str
    pi_instance_name str
    pvm_snapshots Sequence[GetPiPvmSnapshotsPvmSnapshot]
    The list of Power Virtual Machine instance snapshots.
    id String
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    piCloudInstanceId String
    piInstanceName String
    pvmSnapshots List<Property Map>
    The list of Power Virtual Machine instance snapshots.

    Supporting Types

    GetPiPvmSnapshotsPvmSnapshot

    Action string
    (String) Action performed on the instance snapshot.
    CreationDate string
    (String) Date of snapshot creation.
    Crn string
    (String) The CRN of this resource.
    Description string
    (String) The description of the snapshot.
    Id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    LastUpdatedDate string
    (String) Date of last update.
    Name string
    (String) The name of the Power Virtual Machine instance snapshot.
    PercentComplete double
    (Integer) The snapshot completion percentage.
    Status string
    (String) The status of the Power Virtual Machine instance snapshot.
    UserTags List<string>
    (List) List of user tags attached to the resource.
    VolumeSnapshots Dictionary<string, string>
    (Map) A map of volume snapshots included in the Power Virtual Machine instance snapshot.
    Action string
    (String) Action performed on the instance snapshot.
    CreationDate string
    (String) Date of snapshot creation.
    Crn string
    (String) The CRN of this resource.
    Description string
    (String) The description of the snapshot.
    Id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    LastUpdatedDate string
    (String) Date of last update.
    Name string
    (String) The name of the Power Virtual Machine instance snapshot.
    PercentComplete float64
    (Integer) The snapshot completion percentage.
    Status string
    (String) The status of the Power Virtual Machine instance snapshot.
    UserTags []string
    (List) List of user tags attached to the resource.
    VolumeSnapshots map[string]string
    (Map) A map of volume snapshots included in the Power Virtual Machine instance snapshot.
    action String
    (String) Action performed on the instance snapshot.
    creationDate String
    (String) Date of snapshot creation.
    crn String
    (String) The CRN of this resource.
    description String
    (String) The description of the snapshot.
    id String
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    lastUpdatedDate String
    (String) Date of last update.
    name String
    (String) The name of the Power Virtual Machine instance snapshot.
    percentComplete Double
    (Integer) The snapshot completion percentage.
    status String
    (String) The status of the Power Virtual Machine instance snapshot.
    userTags List<String>
    (List) List of user tags attached to the resource.
    volumeSnapshots Map<String,String>
    (Map) A map of volume snapshots included in the Power Virtual Machine instance snapshot.
    action string
    (String) Action performed on the instance snapshot.
    creationDate string
    (String) Date of snapshot creation.
    crn string
    (String) The CRN of this resource.
    description string
    (String) The description of the snapshot.
    id string
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    lastUpdatedDate string
    (String) Date of last update.
    name string
    (String) The name of the Power Virtual Machine instance snapshot.
    percentComplete number
    (Integer) The snapshot completion percentage.
    status string
    (String) The status of the Power Virtual Machine instance snapshot.
    userTags string[]
    (List) List of user tags attached to the resource.
    volumeSnapshots {[key: string]: string}
    (Map) A map of volume snapshots included in the Power Virtual Machine instance snapshot.
    action str
    (String) Action performed on the instance snapshot.
    creation_date str
    (String) Date of snapshot creation.
    crn str
    (String) The CRN of this resource.
    description str
    (String) The description of the snapshot.
    id str
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    last_updated_date str
    (String) Date of last update.
    name str
    (String) The name of the Power Virtual Machine instance snapshot.
    percent_complete float
    (Integer) The snapshot completion percentage.
    status str
    (String) The status of the Power Virtual Machine instance snapshot.
    user_tags Sequence[str]
    (List) List of user tags attached to the resource.
    volume_snapshots Mapping[str, str]
    (Map) A map of volume snapshots included in the Power Virtual Machine instance snapshot.
    action String
    (String) Action performed on the instance snapshot.
    creationDate String
    (String) Date of snapshot creation.
    crn String
    (String) The CRN of this resource.
    description String
    (String) The description of the snapshot.
    id String
    (String) The unique identifier of the Power Virtual Machine instance snapshot.
    lastUpdatedDate String
    (String) Date of last update.
    name String
    (String) The name of the Power Virtual Machine instance snapshot.
    percentComplete Number
    (Integer) The snapshot completion percentage.
    status String
    (String) The status of the Power Virtual Machine instance snapshot.
    userTags List<String>
    (List) List of user tags attached to the resource.
    volumeSnapshots Map<String>
    (Map) A map of volume snapshots included in the Power Virtual Machine instance snapshot.

    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