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

ibm.PiInstanceSnapshot

Explore with Pulumi AI

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

    Manages instance snapshots in the Power Virtual Server Cloud. For more information, about snapshots in the Power Virutal Server, see snapshots for PVM Instance.

    Example Usage

    The following example enables you to create a snapshot:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const testaccSnapshot = new ibm.PiInstanceSnapshot("testaccSnapshot", {
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piDescription: "Testing snapshot for instance",
        piInstanceName: "test-instance",
        piSnapshotName: "test-snapshot",
        piVolumeIds: [
            "volumeid1",
            "volumeid2",
        ],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    testacc_snapshot = ibm.PiInstanceSnapshot("testaccSnapshot",
        pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_description="Testing snapshot for instance",
        pi_instance_name="test-instance",
        pi_snapshot_name="test-snapshot",
        pi_volume_ids=[
            "volumeid1",
            "volumeid2",
        ])
    
    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.NewPiInstanceSnapshot(ctx, "testaccSnapshot", &ibm.PiInstanceSnapshotArgs{
    			PiCloudInstanceId: pulumi.String("<value of the cloud_instance_id>"),
    			PiDescription:     pulumi.String("Testing snapshot for instance"),
    			PiInstanceName:    pulumi.String("test-instance"),
    			PiSnapshotName:    pulumi.String("test-snapshot"),
    			PiVolumeIds: pulumi.StringArray{
    				pulumi.String("volumeid1"),
    				pulumi.String("volumeid2"),
    			},
    		})
    		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 testaccSnapshot = new Ibm.PiInstanceSnapshot("testaccSnapshot", new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiDescription = "Testing snapshot for instance",
            PiInstanceName = "test-instance",
            PiSnapshotName = "test-snapshot",
            PiVolumeIds = new[]
            {
                "volumeid1",
                "volumeid2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.PiInstanceSnapshot;
    import com.pulumi.ibm.PiInstanceSnapshotArgs;
    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 testaccSnapshot = new PiInstanceSnapshot("testaccSnapshot", PiInstanceSnapshotArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piDescription("Testing snapshot for instance")
                .piInstanceName("test-instance")
                .piSnapshotName("test-snapshot")
                .piVolumeIds(            
                    "volumeid1",
                    "volumeid2")
                .build());
    
        }
    }
    
    resources:
      testaccSnapshot:
        type: ibm:PiInstanceSnapshot
        properties:
          piCloudInstanceId: <value of the cloud_instance_id>
          piDescription: Testing snapshot for instance
          piInstanceName: test-instance
          piSnapshotName: test-snapshot
          piVolumeIds:
            - volumeid1
            - volumeid2
    

    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) {
        }
    }
    
    {}
    

    Create PiInstanceSnapshot Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PiInstanceSnapshot(name: string, args: PiInstanceSnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def PiInstanceSnapshot(resource_name: str,
                           args: PiInstanceSnapshotArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def PiInstanceSnapshot(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           pi_cloud_instance_id: Optional[str] = None,
                           pi_instance_name: Optional[str] = None,
                           pi_snapshot_name: Optional[str] = None,
                           pi_description: Optional[str] = None,
                           pi_instance_snapshot_id: Optional[str] = None,
                           pi_user_tags: Optional[Sequence[str]] = None,
                           pi_volume_ids: Optional[Sequence[str]] = None,
                           timeouts: Optional[PiInstanceSnapshotTimeoutsArgs] = None)
    func NewPiInstanceSnapshot(ctx *Context, name string, args PiInstanceSnapshotArgs, opts ...ResourceOption) (*PiInstanceSnapshot, error)
    public PiInstanceSnapshot(string name, PiInstanceSnapshotArgs args, CustomResourceOptions? opts = null)
    public PiInstanceSnapshot(String name, PiInstanceSnapshotArgs args)
    public PiInstanceSnapshot(String name, PiInstanceSnapshotArgs args, CustomResourceOptions options)
    
    type: ibm:PiInstanceSnapshot
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PiInstanceSnapshotArgs
    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 PiInstanceSnapshotArgs
    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 PiInstanceSnapshotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PiInstanceSnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PiInstanceSnapshotArgs
    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 piInstanceSnapshotResource = new Ibm.PiInstanceSnapshot("piInstanceSnapshotResource", new()
    {
        PiCloudInstanceId = "string",
        PiInstanceName = "string",
        PiSnapshotName = "string",
        PiDescription = "string",
        PiInstanceSnapshotId = "string",
        PiUserTags = new[]
        {
            "string",
        },
        PiVolumeIds = new[]
        {
            "string",
        },
        Timeouts = new Ibm.Inputs.PiInstanceSnapshotTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewPiInstanceSnapshot(ctx, "piInstanceSnapshotResource", &ibm.PiInstanceSnapshotArgs{
    	PiCloudInstanceId:    pulumi.String("string"),
    	PiInstanceName:       pulumi.String("string"),
    	PiSnapshotName:       pulumi.String("string"),
    	PiDescription:        pulumi.String("string"),
    	PiInstanceSnapshotId: pulumi.String("string"),
    	PiUserTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PiVolumeIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &ibm.PiInstanceSnapshotTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var piInstanceSnapshotResource = new PiInstanceSnapshot("piInstanceSnapshotResource", PiInstanceSnapshotArgs.builder()
        .piCloudInstanceId("string")
        .piInstanceName("string")
        .piSnapshotName("string")
        .piDescription("string")
        .piInstanceSnapshotId("string")
        .piUserTags("string")
        .piVolumeIds("string")
        .timeouts(PiInstanceSnapshotTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    pi_instance_snapshot_resource = ibm.PiInstanceSnapshot("piInstanceSnapshotResource",
        pi_cloud_instance_id="string",
        pi_instance_name="string",
        pi_snapshot_name="string",
        pi_description="string",
        pi_instance_snapshot_id="string",
        pi_user_tags=["string"],
        pi_volume_ids=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const piInstanceSnapshotResource = new ibm.PiInstanceSnapshot("piInstanceSnapshotResource", {
        piCloudInstanceId: "string",
        piInstanceName: "string",
        piSnapshotName: "string",
        piDescription: "string",
        piInstanceSnapshotId: "string",
        piUserTags: ["string"],
        piVolumeIds: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:PiInstanceSnapshot
    properties:
        piCloudInstanceId: string
        piDescription: string
        piInstanceName: string
        piInstanceSnapshotId: string
        piSnapshotName: string
        piUserTags:
            - string
        piVolumeIds:
            - string
        timeouts:
            create: string
            delete: string
            update: string
    

    PiInstanceSnapshot 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 PiInstanceSnapshot resource accepts the following input properties:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiInstanceName string
    The name of the instance you want to take a snapshot of.
    PiSnapshotName string
    The unique name of the snapshot.
    PiDescription string
    Description of the PVM instance snapshot.
    PiInstanceSnapshotId string
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    PiUserTags List<string>
    The user tags attached to this resource.
    PiVolumeIds List<string>
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    Timeouts PiInstanceSnapshotTimeouts
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiInstanceName string
    The name of the instance you want to take a snapshot of.
    PiSnapshotName string
    The unique name of the snapshot.
    PiDescription string
    Description of the PVM instance snapshot.
    PiInstanceSnapshotId string
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    PiUserTags []string
    The user tags attached to this resource.
    PiVolumeIds []string
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    Timeouts PiInstanceSnapshotTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piInstanceName String
    The name of the instance you want to take a snapshot of.
    piSnapshotName String
    The unique name of the snapshot.
    piDescription String
    Description of the PVM instance snapshot.
    piInstanceSnapshotId String
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    piUserTags List<String>
    The user tags attached to this resource.
    piVolumeIds List<String>
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    timeouts PiInstanceSnapshotTimeouts
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piInstanceName string
    The name of the instance you want to take a snapshot of.
    piSnapshotName string
    The unique name of the snapshot.
    piDescription string
    Description of the PVM instance snapshot.
    piInstanceSnapshotId string
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    piUserTags string[]
    The user tags attached to this resource.
    piVolumeIds string[]
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    timeouts PiInstanceSnapshotTimeouts
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_instance_name str
    The name of the instance you want to take a snapshot of.
    pi_snapshot_name str
    The unique name of the snapshot.
    pi_description str
    Description of the PVM instance snapshot.
    pi_instance_snapshot_id str
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    pi_user_tags Sequence[str]
    The user tags attached to this resource.
    pi_volume_ids Sequence[str]
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    timeouts PiInstanceSnapshotTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piInstanceName String
    The name of the instance you want to take a snapshot of.
    piSnapshotName String
    The unique name of the snapshot.
    piDescription String
    Description of the PVM instance snapshot.
    piInstanceSnapshotId String
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    piUserTags List<String>
    The user tags attached to this resource.
    piVolumeIds List<String>
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PiInstanceSnapshot resource produces the following output properties:

    CreationDate string
    (String) Creation date of the snapshot.
    Crn string
    (String) The CRN of this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdateDate string
    (String) The last updated date of the snapshot.
    SnapshotId string
    (String) ID of the PVM instance snapshot.
    Status string
    (String) Status of the PVM instance snapshot.
    VolumeSnapshots Dictionary<string, string>
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    CreationDate string
    (String) Creation date of the snapshot.
    Crn string
    (String) The CRN of this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdateDate string
    (String) The last updated date of the snapshot.
    SnapshotId string
    (String) ID of the PVM instance snapshot.
    Status string
    (String) Status of the PVM instance snapshot.
    VolumeSnapshots map[string]string
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creationDate String
    (String) Creation date of the snapshot.
    crn String
    (String) The CRN of this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdateDate String
    (String) The last updated date of the snapshot.
    snapshotId String
    (String) ID of the PVM instance snapshot.
    status String
    (String) Status of the PVM instance snapshot.
    volumeSnapshots Map<String,String>
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creationDate string
    (String) Creation date of the snapshot.
    crn string
    (String) The CRN of this resource.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdateDate string
    (String) The last updated date of the snapshot.
    snapshotId string
    (String) ID of the PVM instance snapshot.
    status string
    (String) Status of the PVM instance snapshot.
    volumeSnapshots {[key: string]: string}
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creation_date str
    (String) Creation date of the snapshot.
    crn str
    (String) The CRN of this resource.
    id str
    The provider-assigned unique ID for this managed resource.
    last_update_date str
    (String) The last updated date of the snapshot.
    snapshot_id str
    (String) ID of the PVM instance snapshot.
    status str
    (String) Status of the PVM instance snapshot.
    volume_snapshots Mapping[str, str]
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creationDate String
    (String) Creation date of the snapshot.
    crn String
    (String) The CRN of this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdateDate String
    (String) The last updated date of the snapshot.
    snapshotId String
    (String) ID of the PVM instance snapshot.
    status String
    (String) Status of the PVM instance snapshot.
    volumeSnapshots Map<String>
    (Map) A map of volume snapshots included in the PVM instance snapshot.

    Look up Existing PiInstanceSnapshot Resource

    Get an existing PiInstanceSnapshot 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?: PiInstanceSnapshotState, opts?: CustomResourceOptions): PiInstanceSnapshot
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_date: Optional[str] = None,
            crn: Optional[str] = None,
            last_update_date: Optional[str] = None,
            pi_cloud_instance_id: Optional[str] = None,
            pi_description: Optional[str] = None,
            pi_instance_name: Optional[str] = None,
            pi_instance_snapshot_id: Optional[str] = None,
            pi_snapshot_name: Optional[str] = None,
            pi_user_tags: Optional[Sequence[str]] = None,
            pi_volume_ids: Optional[Sequence[str]] = None,
            snapshot_id: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[PiInstanceSnapshotTimeoutsArgs] = None,
            volume_snapshots: Optional[Mapping[str, str]] = None) -> PiInstanceSnapshot
    func GetPiInstanceSnapshot(ctx *Context, name string, id IDInput, state *PiInstanceSnapshotState, opts ...ResourceOption) (*PiInstanceSnapshot, error)
    public static PiInstanceSnapshot Get(string name, Input<string> id, PiInstanceSnapshotState? state, CustomResourceOptions? opts = null)
    public static PiInstanceSnapshot get(String name, Output<String> id, PiInstanceSnapshotState state, CustomResourceOptions options)
    resources:  _:    type: ibm:PiInstanceSnapshot    get:      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.
    The following state arguments are supported:
    CreationDate string
    (String) Creation date of the snapshot.
    Crn string
    (String) The CRN of this resource.
    LastUpdateDate string
    (String) The last updated date of the snapshot.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiDescription string
    Description of the PVM instance snapshot.
    PiInstanceName string
    The name of the instance you want to take a snapshot of.
    PiInstanceSnapshotId string
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    PiSnapshotName string
    The unique name of the snapshot.
    PiUserTags List<string>
    The user tags attached to this resource.
    PiVolumeIds List<string>
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    SnapshotId string
    (String) ID of the PVM instance snapshot.
    Status string
    (String) Status of the PVM instance snapshot.
    Timeouts PiInstanceSnapshotTimeouts
    VolumeSnapshots Dictionary<string, string>
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    CreationDate string
    (String) Creation date of the snapshot.
    Crn string
    (String) The CRN of this resource.
    LastUpdateDate string
    (String) The last updated date of the snapshot.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiDescription string
    Description of the PVM instance snapshot.
    PiInstanceName string
    The name of the instance you want to take a snapshot of.
    PiInstanceSnapshotId string
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    PiSnapshotName string
    The unique name of the snapshot.
    PiUserTags []string
    The user tags attached to this resource.
    PiVolumeIds []string
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    SnapshotId string
    (String) ID of the PVM instance snapshot.
    Status string
    (String) Status of the PVM instance snapshot.
    Timeouts PiInstanceSnapshotTimeoutsArgs
    VolumeSnapshots map[string]string
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creationDate String
    (String) Creation date of the snapshot.
    crn String
    (String) The CRN of this resource.
    lastUpdateDate String
    (String) The last updated date of the snapshot.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piDescription String
    Description of the PVM instance snapshot.
    piInstanceName String
    The name of the instance you want to take a snapshot of.
    piInstanceSnapshotId String
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    piSnapshotName String
    The unique name of the snapshot.
    piUserTags List<String>
    The user tags attached to this resource.
    piVolumeIds List<String>
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    snapshotId String
    (String) ID of the PVM instance snapshot.
    status String
    (String) Status of the PVM instance snapshot.
    timeouts PiInstanceSnapshotTimeouts
    volumeSnapshots Map<String,String>
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creationDate string
    (String) Creation date of the snapshot.
    crn string
    (String) The CRN of this resource.
    lastUpdateDate string
    (String) The last updated date of the snapshot.
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piDescription string
    Description of the PVM instance snapshot.
    piInstanceName string
    The name of the instance you want to take a snapshot of.
    piInstanceSnapshotId string
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    piSnapshotName string
    The unique name of the snapshot.
    piUserTags string[]
    The user tags attached to this resource.
    piVolumeIds string[]
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    snapshotId string
    (String) ID of the PVM instance snapshot.
    status string
    (String) Status of the PVM instance snapshot.
    timeouts PiInstanceSnapshotTimeouts
    volumeSnapshots {[key: string]: string}
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creation_date str
    (String) Creation date of the snapshot.
    crn str
    (String) The CRN of this resource.
    last_update_date str
    (String) The last updated date of the snapshot.
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_description str
    Description of the PVM instance snapshot.
    pi_instance_name str
    The name of the instance you want to take a snapshot of.
    pi_instance_snapshot_id str
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    pi_snapshot_name str
    The unique name of the snapshot.
    pi_user_tags Sequence[str]
    The user tags attached to this resource.
    pi_volume_ids Sequence[str]
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    snapshot_id str
    (String) ID of the PVM instance snapshot.
    status str
    (String) Status of the PVM instance snapshot.
    timeouts PiInstanceSnapshotTimeoutsArgs
    volume_snapshots Mapping[str, str]
    (Map) A map of volume snapshots included in the PVM instance snapshot.
    creationDate String
    (String) Creation date of the snapshot.
    crn String
    (String) The CRN of this resource.
    lastUpdateDate String
    (String) The last updated date of the snapshot.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piDescription String
    Description of the PVM instance snapshot.
    piInstanceName String
    The name of the instance you want to take a snapshot of.
    piInstanceSnapshotId String
    (String) The unique identifier of the snapshot. The ID is composed of <pi_cloud_instance_id>/<snapshot_id>.
    piSnapshotName String
    The unique name of the snapshot.
    piUserTags List<String>
    The user tags attached to this resource.
    piVolumeIds List<String>
    A list of volume IDs of the instance that will be part of the snapshot. If none are provided, then all the volumes of the instance will be part of the snapshot.
    snapshotId String
    (String) ID of the PVM instance snapshot.
    status String
    (String) Status of the PVM instance snapshot.
    timeouts Property Map
    volumeSnapshots Map<String>
    (Map) A map of volume snapshots included in the PVM instance snapshot.

    Supporting Types

    PiInstanceSnapshotTimeouts, PiInstanceSnapshotTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Example

    bash

    $ pulumi import ibm:index/piInstanceSnapshot:PiInstanceSnapshot example d7bec597-4726-451f-8a63-e62e6f19c32c/cea6651a-bc0a-4438-9f8a-a0770bbf3ebb
    

    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 ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud