ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiInstanceSnapshots
Explore with Pulumi AI
Retrieve information about a Power Systems Virtual Server instance snapshots. For more information, about Power Virtual Server 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 dsInstanceSnapshots = ibm.getPiInstanceSnapshots({
piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
});
import pulumi
import pulumi_ibm as ibm
ds_instance_snapshots = ibm.get_pi_instance_snapshots(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b")
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.GetPiInstanceSnapshots(ctx, &ibm.GetPiInstanceSnapshotsArgs{
PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
}, 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 dsInstanceSnapshots = Ibm.GetPiInstanceSnapshots.Invoke(new()
{
PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
});
});
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.GetPiInstanceSnapshotsArgs;
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 dsInstanceSnapshots = IbmFunctions.getPiInstanceSnapshots(GetPiInstanceSnapshotsArgs.builder()
.piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
.build());
}
}
variables:
dsInstanceSnapshots:
fn::invoke:
function: ibm:getPiInstanceSnapshots
arguments:
piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
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 getPiInstanceSnapshots
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 getPiInstanceSnapshots(args: GetPiInstanceSnapshotsArgs, opts?: InvokeOptions): Promise<GetPiInstanceSnapshotsResult>
function getPiInstanceSnapshotsOutput(args: GetPiInstanceSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetPiInstanceSnapshotsResult>
def get_pi_instance_snapshots(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiInstanceSnapshotsResult
def get_pi_instance_snapshots_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiInstanceSnapshotsResult]
func GetPiInstanceSnapshots(ctx *Context, args *GetPiInstanceSnapshotsArgs, opts ...InvokeOption) (*GetPiInstanceSnapshotsResult, error)
func GetPiInstanceSnapshotsOutput(ctx *Context, args *GetPiInstanceSnapshotsOutputArgs, opts ...InvokeOption) GetPiInstanceSnapshotsResultOutput
> Note: This function is named GetPiInstanceSnapshots
in the Go SDK.
public static class GetPiInstanceSnapshots
{
public static Task<GetPiInstanceSnapshotsResult> InvokeAsync(GetPiInstanceSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetPiInstanceSnapshotsResult> Invoke(GetPiInstanceSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiInstanceSnapshotsResult> getPiInstanceSnapshots(GetPiInstanceSnapshotsArgs args, InvokeOptions options)
public static Output<GetPiInstanceSnapshotsResult> getPiInstanceSnapshots(GetPiInstanceSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiInstanceSnapshots:getPiInstanceSnapshots
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
getPiInstanceSnapshots Result
The following output properties are available:
- Id string
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- Instance
Snapshots List<GetPi Instance Snapshots Instance Snapshot> - (List) List of Power Virtual Machine instance snapshots within the given cloud instance.
- Pi
Cloud stringInstance Id
- Id string
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- Instance
Snapshots []GetPi Instance Snapshots Instance Snapshot - (List) List of Power Virtual Machine instance snapshots within the given cloud instance.
- Pi
Cloud stringInstance Id
- id String
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- instance
Snapshots List<GetPi Instance Snapshots Instance Snapshot> - (List) List of Power Virtual Machine instance snapshots within the given cloud instance.
- pi
Cloud StringInstance Id
- id string
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- instance
Snapshots GetPi Instance Snapshots Instance Snapshot[] - (List) List of Power Virtual Machine instance snapshots within the given cloud instance.
- pi
Cloud stringInstance Id
- id str
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- instance_
snapshots Sequence[GetPi Instance Snapshots Instance Snapshot] - (List) List of Power Virtual Machine instance snapshots within the given cloud instance.
- pi_
cloud_ strinstance_ id
- id String
- (String) The unique identifier of the Power Systems Virtual Machine instance snapshot.
- instance
Snapshots List<Property Map> - (List) List of Power Virtual Machine instance snapshots within the given cloud instance.
- pi
Cloud StringInstance Id
Supporting Types
GetPiInstanceSnapshotsInstanceSnapshot
- Action string
- (String) Action performed on the instance snapshot.
- Creation
Date 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 Systems Virtual Machine instance snapshot.
- Last
Updated stringDate - (String) Date of last update.
- Name string
- (String) The name of the Power Systems Virtual Machine instance snapshot.
- Percent
Complete double - (Integer) The snapshot completion percentage.
- Status string
- (String) The status of the Power Virtual Machine instance snapshot.
- List<string>
- (List) List of user tags attached to the resource.
- Volume
Snapshots 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.
- Creation
Date 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 Systems Virtual Machine instance snapshot.
- Last
Updated stringDate - (String) Date of last update.
- Name string
- (String) The name of the Power Systems Virtual Machine instance snapshot.
- Percent
Complete float64 - (Integer) The snapshot completion percentage.
- Status string
- (String) The status of the Power Virtual Machine instance snapshot.
- []string
- (List) List of user tags attached to the resource.
- Volume
Snapshots 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.
- creation
Date 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 Systems Virtual Machine instance snapshot.
- last
Updated StringDate - (String) Date of last update.
- name String
- (String) The name of the Power Systems Virtual Machine instance snapshot.
- percent
Complete Double - (Integer) The snapshot completion percentage.
- status String
- (String) The status of the Power Virtual Machine instance snapshot.
- List<String>
- (List) List of user tags attached to the resource.
- volume
Snapshots 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.
- creation
Date 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 Systems Virtual Machine instance snapshot.
- last
Updated stringDate - (String) Date of last update.
- name string
- (String) The name of the Power Systems Virtual Machine instance snapshot.
- percent
Complete number - (Integer) The snapshot completion percentage.
- status string
- (String) The status of the Power Virtual Machine instance snapshot.
- string[]
- (List) List of user tags attached to the resource.
- volume
Snapshots {[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 Systems Virtual Machine instance snapshot.
- last_
updated_ strdate - (String) Date of last update.
- name str
- (String) The name of the Power Systems Virtual Machine instance snapshot.
- percent_
complete float - (Integer) The snapshot completion percentage.
- status str
- (String) The status of the Power Virtual Machine instance snapshot.
- 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.
- creation
Date 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 Systems Virtual Machine instance snapshot.
- last
Updated StringDate - (String) Date of last update.
- name String
- (String) The name of the Power Systems Virtual Machine instance snapshot.
- percent
Complete Number - (Integer) The snapshot completion percentage.
- status String
- (String) The status of the Power Virtual Machine instance snapshot.
- List<String>
- (List) List of user tags attached to the resource.
- volume
Snapshots 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.