ibm 1.85.0 published on Sunday, Nov 9, 2025 by ibm-cloud
ibm 1.85.0 published on Sunday, Nov 9, 2025 by ibm-cloud
Retrieves information about all persistent storage volumes that in a Power Systems Virtual Server workspace. For more information, about managing volumes, see moving data to the cloud.
Example Usage
The following example retrieves information about all volumes present in a Power Systems Virtual Server workspace.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const dsVolume = ibm.getPiVolumes({
piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
});
import pulumi
import pulumi_ibm as ibm
ds_volume = ibm.get_pi_volumes(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.GetPiVolumes(ctx, &ibm.GetPiVolumesArgs{
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 dsVolume = Ibm.GetPiVolumes.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.GetPiVolumesArgs;
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 dsVolume = IbmFunctions.getPiVolumes(GetPiVolumesArgs.builder()
.piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
.build());
}
}
variables:
dsVolume:
fn::invoke:
function: ibm:getPiVolumes
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-lonzone-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 getPiVolumes
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 getPiVolumes(args: GetPiVolumesArgs, opts?: InvokeOptions): Promise<GetPiVolumesResult>
function getPiVolumesOutput(args: GetPiVolumesOutputArgs, opts?: InvokeOptions): Output<GetPiVolumesResult>def get_pi_volumes(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiVolumesResult
def get_pi_volumes_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiVolumesResult]func GetPiVolumes(ctx *Context, args *GetPiVolumesArgs, opts ...InvokeOption) (*GetPiVolumesResult, error)
func GetPiVolumesOutput(ctx *Context, args *GetPiVolumesOutputArgs, opts ...InvokeOption) GetPiVolumesResultOutput> Note: This function is named GetPiVolumes in the Go SDK.
public static class GetPiVolumes
{
public static Task<GetPiVolumesResult> InvokeAsync(GetPiVolumesArgs args, InvokeOptions? opts = null)
public static Output<GetPiVolumesResult> Invoke(GetPiVolumesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPiVolumesResult> getPiVolumes(GetPiVolumesArgs args, InvokeOptions options)
public static Output<GetPiVolumesResult> getPiVolumes(GetPiVolumesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiVolumes:getPiVolumes
arguments:
# arguments dictionaryThe 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 volume.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the volume.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- (String) The unique identifier of the volume.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the volume.
getPiVolumes Result
The following output properties are available:
- Id string
- (String) The unique identifier of the volume.
- Pi
Cloud stringInstance Id - Volumes
List<Get
Pi Volumes Volume> - (List) The list of volumes.
- Id string
- (String) The unique identifier of the volume.
- Pi
Cloud stringInstance Id - Volumes
[]Get
Pi Volumes Volume - (List) The list of volumes.
- id String
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - volumes
List<Get
Pi Volumes Volume> - (List) The list of volumes.
- id string
- (String) The unique identifier of the volume.
- pi
Cloud stringInstance Id - volumes
Get
Pi Volumes Volume[] - (List) The list of volumes.
- id str
- (String) The unique identifier of the volume.
- pi_
cloud_ strinstance_ id - volumes
Sequence[Get
Pi Volumes Volume] - (List) The list of volumes.
- id String
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - volumes List<Property Map>
- (List) The list of volumes.
Supporting Types
GetPiVolumesVolume
- Auxiliary bool
- (Boolean) Indicates if the volume is auxiliary.
- Auxiliary
Volume stringName - (String) The auxiliary volume name.
- Bootable bool
- (Boolean) Indicates if the volume is boot capable.
- Consistency
Group stringName - (String) Consistency group name if volume is a part of volume group.
- Creation
Date string - (String) Date of volume creation.
- Crn string
- (String) The CRN of this resource.
- Disk
Type string - (String) The disk type that is used for the volume.
- Freeze
Time string - (String) Time of remote copy relationship.
- Group
Id string - (String) The volume group id in which the volume belongs.
- Id string
- (String) The unique identifier of the volume.
- Io
Throttle stringRate - (String) Amount of iops assigned to the volume.
- Last
Update stringDate - (String) The date when the volume last updated.
- Master
Volume stringName - (String) The master volume name.
- Mirroring
State string - (String) Mirroring state for replication enabled volume.
- Name string
- (String) The name of the volume.
- Out
Of boolBand Deleted - (Bool) Indicates if the volume does not exist on storage controller.
- Primary
Role string - (String) Indicates whether
master/auxiliaryvolume is playing the primary role. - Replication
Enabled bool - (Boolean) Indicates if the volume should be replication enabled or not.
- Replication
Sites List<string> - (List) List of replication sites for volume replication.
- Replication
Status string - (String) The replication status of the volume.
- Replication
Type string - (String) The replication type of the volume,
metroorglobal. - Shreable bool
- Size double
- (Integer) The size of the volume in GB.
- State string
- (String) The state of the volume.
- List<string>
- (List) List of user tags attached to the resource.
- Volume
Pool string - (String) The name of storage pool where the volume is located.
- Volume
Type string - (String) The name of storage template used to create the volume.
- Wwn string
- (String) The world wide name of the volume.
- Auxiliary bool
- (Boolean) Indicates if the volume is auxiliary.
- Auxiliary
Volume stringName - (String) The auxiliary volume name.
- Bootable bool
- (Boolean) Indicates if the volume is boot capable.
- Consistency
Group stringName - (String) Consistency group name if volume is a part of volume group.
- Creation
Date string - (String) Date of volume creation.
- Crn string
- (String) The CRN of this resource.
- Disk
Type string - (String) The disk type that is used for the volume.
- Freeze
Time string - (String) Time of remote copy relationship.
- Group
Id string - (String) The volume group id in which the volume belongs.
- Id string
- (String) The unique identifier of the volume.
- Io
Throttle stringRate - (String) Amount of iops assigned to the volume.
- Last
Update stringDate - (String) The date when the volume last updated.
- Master
Volume stringName - (String) The master volume name.
- Mirroring
State string - (String) Mirroring state for replication enabled volume.
- Name string
- (String) The name of the volume.
- Out
Of boolBand Deleted - (Bool) Indicates if the volume does not exist on storage controller.
- Primary
Role string - (String) Indicates whether
master/auxiliaryvolume is playing the primary role. - Replication
Enabled bool - (Boolean) Indicates if the volume should be replication enabled or not.
- Replication
Sites []string - (List) List of replication sites for volume replication.
- Replication
Status string - (String) The replication status of the volume.
- Replication
Type string - (String) The replication type of the volume,
metroorglobal. - Shreable bool
- Size float64
- (Integer) The size of the volume in GB.
- State string
- (String) The state of the volume.
- []string
- (List) List of user tags attached to the resource.
- Volume
Pool string - (String) The name of storage pool where the volume is located.
- Volume
Type string - (String) The name of storage template used to create the volume.
- Wwn string
- (String) The world wide name of the volume.
- auxiliary Boolean
- (Boolean) Indicates if the volume is auxiliary.
- auxiliary
Volume StringName - (String) The auxiliary volume name.
- bootable Boolean
- (Boolean) Indicates if the volume is boot capable.
- consistency
Group StringName - (String) Consistency group name if volume is a part of volume group.
- creation
Date String - (String) Date of volume creation.
- crn String
- (String) The CRN of this resource.
- disk
Type String - (String) The disk type that is used for the volume.
- freeze
Time String - (String) Time of remote copy relationship.
- group
Id String - (String) The volume group id in which the volume belongs.
- id String
- (String) The unique identifier of the volume.
- io
Throttle StringRate - (String) Amount of iops assigned to the volume.
- last
Update StringDate - (String) The date when the volume last updated.
- master
Volume StringName - (String) The master volume name.
- mirroring
State String - (String) Mirroring state for replication enabled volume.
- name String
- (String) The name of the volume.
- out
Of BooleanBand Deleted - (Bool) Indicates if the volume does not exist on storage controller.
- primary
Role String - (String) Indicates whether
master/auxiliaryvolume is playing the primary role. - replication
Enabled Boolean - (Boolean) Indicates if the volume should be replication enabled or not.
- replication
Sites List<String> - (List) List of replication sites for volume replication.
- replication
Status String - (String) The replication status of the volume.
- replication
Type String - (String) The replication type of the volume,
metroorglobal. - shreable Boolean
- size Double
- (Integer) The size of the volume in GB.
- state String
- (String) The state of the volume.
- List<String>
- (List) List of user tags attached to the resource.
- volume
Pool String - (String) The name of storage pool where the volume is located.
- volume
Type String - (String) The name of storage template used to create the volume.
- wwn String
- (String) The world wide name of the volume.
- auxiliary boolean
- (Boolean) Indicates if the volume is auxiliary.
- auxiliary
Volume stringName - (String) The auxiliary volume name.
- bootable boolean
- (Boolean) Indicates if the volume is boot capable.
- consistency
Group stringName - (String) Consistency group name if volume is a part of volume group.
- creation
Date string - (String) Date of volume creation.
- crn string
- (String) The CRN of this resource.
- disk
Type string - (String) The disk type that is used for the volume.
- freeze
Time string - (String) Time of remote copy relationship.
- group
Id string - (String) The volume group id in which the volume belongs.
- id string
- (String) The unique identifier of the volume.
- io
Throttle stringRate - (String) Amount of iops assigned to the volume.
- last
Update stringDate - (String) The date when the volume last updated.
- master
Volume stringName - (String) The master volume name.
- mirroring
State string - (String) Mirroring state for replication enabled volume.
- name string
- (String) The name of the volume.
- out
Of booleanBand Deleted - (Bool) Indicates if the volume does not exist on storage controller.
- primary
Role string - (String) Indicates whether
master/auxiliaryvolume is playing the primary role. - replication
Enabled boolean - (Boolean) Indicates if the volume should be replication enabled or not.
- replication
Sites string[] - (List) List of replication sites for volume replication.
- replication
Status string - (String) The replication status of the volume.
- replication
Type string - (String) The replication type of the volume,
metroorglobal. - shreable boolean
- size number
- (Integer) The size of the volume in GB.
- state string
- (String) The state of the volume.
- string[]
- (List) List of user tags attached to the resource.
- volume
Pool string - (String) The name of storage pool where the volume is located.
- volume
Type string - (String) The name of storage template used to create the volume.
- wwn string
- (String) The world wide name of the volume.
- auxiliary bool
- (Boolean) Indicates if the volume is auxiliary.
- auxiliary_
volume_ strname - (String) The auxiliary volume name.
- bootable bool
- (Boolean) Indicates if the volume is boot capable.
- consistency_
group_ strname - (String) Consistency group name if volume is a part of volume group.
- creation_
date str - (String) Date of volume creation.
- crn str
- (String) The CRN of this resource.
- disk_
type str - (String) The disk type that is used for the volume.
- freeze_
time str - (String) Time of remote copy relationship.
- group_
id str - (String) The volume group id in which the volume belongs.
- id str
- (String) The unique identifier of the volume.
- io_
throttle_ strrate - (String) Amount of iops assigned to the volume.
- last_
update_ strdate - (String) The date when the volume last updated.
- master_
volume_ strname - (String) The master volume name.
- mirroring_
state str - (String) Mirroring state for replication enabled volume.
- name str
- (String) The name of the volume.
- out_
of_ boolband_ deleted - (Bool) Indicates if the volume does not exist on storage controller.
- primary_
role str - (String) Indicates whether
master/auxiliaryvolume is playing the primary role. - replication_
enabled bool - (Boolean) Indicates if the volume should be replication enabled or not.
- replication_
sites Sequence[str] - (List) List of replication sites for volume replication.
- replication_
status str - (String) The replication status of the volume.
- replication_
type str - (String) The replication type of the volume,
metroorglobal. - shreable bool
- size float
- (Integer) The size of the volume in GB.
- state str
- (String) The state of the volume.
- Sequence[str]
- (List) List of user tags attached to the resource.
- volume_
pool str - (String) The name of storage pool where the volume is located.
- volume_
type str - (String) The name of storage template used to create the volume.
- wwn str
- (String) The world wide name of the volume.
- auxiliary Boolean
- (Boolean) Indicates if the volume is auxiliary.
- auxiliary
Volume StringName - (String) The auxiliary volume name.
- bootable Boolean
- (Boolean) Indicates if the volume is boot capable.
- consistency
Group StringName - (String) Consistency group name if volume is a part of volume group.
- creation
Date String - (String) Date of volume creation.
- crn String
- (String) The CRN of this resource.
- disk
Type String - (String) The disk type that is used for the volume.
- freeze
Time String - (String) Time of remote copy relationship.
- group
Id String - (String) The volume group id in which the volume belongs.
- id String
- (String) The unique identifier of the volume.
- io
Throttle StringRate - (String) Amount of iops assigned to the volume.
- last
Update StringDate - (String) The date when the volume last updated.
- master
Volume StringName - (String) The master volume name.
- mirroring
State String - (String) Mirroring state for replication enabled volume.
- name String
- (String) The name of the volume.
- out
Of BooleanBand Deleted - (Bool) Indicates if the volume does not exist on storage controller.
- primary
Role String - (String) Indicates whether
master/auxiliaryvolume is playing the primary role. - replication
Enabled Boolean - (Boolean) Indicates if the volume should be replication enabled or not.
- replication
Sites List<String> - (List) List of replication sites for volume replication.
- replication
Status String - (String) The replication status of the volume.
- replication
Type String - (String) The replication type of the volume,
metroorglobal. - shreable Boolean
- size Number
- (Integer) The size of the volume in GB.
- state String
- (String) The state of the volume.
- List<String>
- (List) List of user tags attached to the resource.
- volume
Pool String - (String) The name of storage pool where the volume is located.
- volume
Type String - (String) The name of storage template used to create the volume.
- wwn String
- (String) The world wide name of the volume.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
ibm 1.85.0 published on Sunday, Nov 9, 2025 by ibm-cloud
