ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiVolumeSnapshot
Explore with Pulumi AI
Retrieve information about a volume snapshot.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.GetPiVolumeSnapshotArgs;
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 snapshot = IbmFunctions.getPiVolumeSnapshot(GetPiVolumeSnapshotArgs.builder()
.piCloudInstanceId("<value of the cloud_instance_id>")
.piSnapshotId("snapshot_id")
.build());
}
}
variables:
snapshot:
fn::invoke:
function: ibm:getPiVolumeSnapshot
arguments:
piCloudInstanceId: <value of the cloud_instance_id>
piSnapshotId: snapshot_id
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 getPiVolumeSnapshot
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 getPiVolumeSnapshot(args: GetPiVolumeSnapshotArgs, opts?: InvokeOptions): Promise<GetPiVolumeSnapshotResult>
function getPiVolumeSnapshotOutput(args: GetPiVolumeSnapshotOutputArgs, opts?: InvokeOptions): Output<GetPiVolumeSnapshotResult>
def get_pi_volume_snapshot(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_volume_snapshot_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiVolumeSnapshotResult
def get_pi_volume_snapshot_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
pi_volume_snapshot_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiVolumeSnapshotResult]
func GetPiVolumeSnapshot(ctx *Context, args *GetPiVolumeSnapshotArgs, opts ...InvokeOption) (*GetPiVolumeSnapshotResult, error)
func GetPiVolumeSnapshotOutput(ctx *Context, args *GetPiVolumeSnapshotOutputArgs, opts ...InvokeOption) GetPiVolumeSnapshotResultOutput
> Note: This function is named GetPiVolumeSnapshot
in the Go SDK.
public static class GetPiVolumeSnapshot
{
public static Task<GetPiVolumeSnapshotResult> InvokeAsync(GetPiVolumeSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetPiVolumeSnapshotResult> Invoke(GetPiVolumeSnapshotInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiVolumeSnapshotResult> getPiVolumeSnapshot(GetPiVolumeSnapshotArgs args, InvokeOptions options)
public static Output<GetPiVolumeSnapshotResult> getPiVolumeSnapshot(GetPiVolumeSnapshotArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiVolumeSnapshot:getPiVolumeSnapshot
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Volume stringSnapshot Id - Id string
- (String) The unique identifier of the volume snapshot.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Volume stringSnapshot Id - Id string
- (String) The unique identifier of the volume snapshot.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume StringSnapshot Id - id String
- (String) The unique identifier of the volume snapshot.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume stringSnapshot Id - id string
- (String) The unique identifier of the volume snapshot.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
volume_ strsnapshot_ id - id str
- (String) The unique identifier of the volume snapshot.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume StringSnapshot Id - id String
- (String) The unique identifier of the volume snapshot.
getPiVolumeSnapshot Result
The following output properties are available:
- Creation
Date string - (String) The date and time when the volume snapshot was created.
- Crn string
- (Deprecated, String) The CRN for this resource.
- Id string
- (String) The unique identifier of the volume snapshot.
- Name string
- (String) The volume snapshot name.
- Pi
Cloud stringInstance Id - Pi
Volume stringSnapshot Id - Size double
- (Float) The size of the volume snapshot, in gibibytes (GiB).
- Status string
- (String) The status for the volume snapshot.
- Updated
Date string - (String) The date and time when the volume snapshot was last updated.
- Volume
Id string - (String) The volume UUID associated with the snapshot.
- Creation
Date string - (String) The date and time when the volume snapshot was created.
- Crn string
- (Deprecated, String) The CRN for this resource.
- Id string
- (String) The unique identifier of the volume snapshot.
- Name string
- (String) The volume snapshot name.
- Pi
Cloud stringInstance Id - Pi
Volume stringSnapshot Id - Size float64
- (Float) The size of the volume snapshot, in gibibytes (GiB).
- Status string
- (String) The status for the volume snapshot.
- Updated
Date string - (String) The date and time when the volume snapshot was last updated.
- Volume
Id string - (String) The volume UUID associated with the snapshot.
- creation
Date String - (String) The date and time when the volume snapshot was created.
- crn String
- (Deprecated, String) The CRN for this resource.
- id String
- (String) The unique identifier of the volume snapshot.
- name String
- (String) The volume snapshot name.
- pi
Cloud StringInstance Id - pi
Volume StringSnapshot Id - size Double
- (Float) The size of the volume snapshot, in gibibytes (GiB).
- status String
- (String) The status for the volume snapshot.
- updated
Date String - (String) The date and time when the volume snapshot was last updated.
- volume
Id String - (String) The volume UUID associated with the snapshot.
- creation
Date string - (String) The date and time when the volume snapshot was created.
- crn string
- (Deprecated, String) The CRN for this resource.
- id string
- (String) The unique identifier of the volume snapshot.
- name string
- (String) The volume snapshot name.
- pi
Cloud stringInstance Id - pi
Volume stringSnapshot Id - size number
- (Float) The size of the volume snapshot, in gibibytes (GiB).
- status string
- (String) The status for the volume snapshot.
- updated
Date string - (String) The date and time when the volume snapshot was last updated.
- volume
Id string - (String) The volume UUID associated with the snapshot.
- creation_
date str - (String) The date and time when the volume snapshot was created.
- crn str
- (Deprecated, String) The CRN for this resource.
- id str
- (String) The unique identifier of the volume snapshot.
- name str
- (String) The volume snapshot name.
- pi_
cloud_ strinstance_ id - pi_
volume_ strsnapshot_ id - size float
- (Float) The size of the volume snapshot, in gibibytes (GiB).
- status str
- (String) The status for the volume snapshot.
- updated_
date str - (String) The date and time when the volume snapshot was last updated.
- volume_
id str - (String) The volume UUID associated with the snapshot.
- creation
Date String - (String) The date and time when the volume snapshot was created.
- crn String
- (Deprecated, String) The CRN for this resource.
- id String
- (String) The unique identifier of the volume snapshot.
- name String
- (String) The volume snapshot name.
- pi
Cloud StringInstance Id - pi
Volume StringSnapshot Id - size Number
- (Float) The size of the volume snapshot, in gibibytes (GiB).
- status String
- (String) The status for the volume snapshot.
- updated
Date String - (String) The date and time when the volume snapshot was last updated.
- volume
Id String - (String) The volume UUID associated with the snapshot.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.