ibm.getPiVolume
Explore with Pulumi AI
Retrieves information about a persistent storage volume that is mounted to a Power Systems Virtual Server instance. For more information, about managin a volume, see moving data to the cloud.
Example Usage
The following example retrieves information about the volume_1
volume that is mounted to the Power Systems Virtual Server instance with the ID.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const dsVolume = ibm.getPiVolume({
piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
piVolumeName: "volume_1",
});
import pulumi
import pulumi_ibm as ibm
ds_volume = ibm.get_pi_volume(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
pi_volume_name="volume_1")
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.LookupPiVolume(ctx, &ibm.LookupPiVolumeArgs{
PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
PiVolumeName: "volume_1",
}, 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.GetPiVolume.Invoke(new()
{
PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
PiVolumeName = "volume_1",
});
});
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.GetPiVolumeArgs;
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.getPiVolume(GetPiVolumeArgs.builder()
.piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
.piVolumeName("volume_1")
.build());
}
}
variables:
dsVolume:
fn::invoke:
function: ibm:getPiVolume
arguments:
piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
piVolumeName: volume_1
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 getPiVolume
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 getPiVolume(args: GetPiVolumeArgs, opts?: InvokeOptions): Promise<GetPiVolumeResult>
function getPiVolumeOutput(args: GetPiVolumeOutputArgs, opts?: InvokeOptions): Output<GetPiVolumeResult>
def get_pi_volume(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_volume_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiVolumeResult
def get_pi_volume_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
pi_volume_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiVolumeResult]
func LookupPiVolume(ctx *Context, args *LookupPiVolumeArgs, opts ...InvokeOption) (*LookupPiVolumeResult, error)
func LookupPiVolumeOutput(ctx *Context, args *LookupPiVolumeOutputArgs, opts ...InvokeOption) LookupPiVolumeResultOutput
> Note: This function is named LookupPiVolume
in the Go SDK.
public static class GetPiVolume
{
public static Task<GetPiVolumeResult> InvokeAsync(GetPiVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetPiVolumeResult> Invoke(GetPiVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiVolumeResult> getPiVolume(GetPiVolumeArgs args, InvokeOptions options)
public static Output<GetPiVolumeResult> getPiVolume(GetPiVolumeArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiVolume:getPiVolume
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Volume stringName - The name of the volume for which you want to retrieve detailed information.
- Id string
- (String) The unique identifier of the volume.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Volume stringName - The name of the volume for which you want to retrieve detailed information.
- Id string
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume StringName - The name of the volume for which you want to retrieve detailed information.
- id String
- (String) The unique identifier of the volume.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume stringName - The name of the volume for which you want to retrieve detailed information.
- id string
- (String) The unique identifier of the volume.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
volume_ strname - The name of the volume for which you want to retrieve detailed information.
- id str
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume StringName - The name of the volume for which you want to retrieve detailed information.
- id String
- (String) The unique identifier of the volume.
getPiVolume Result
The following output properties are available:
- 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.
- Pi
Cloud stringInstance Id - Pi
Volume stringName - Primary
Role string - (String) Indicates whether
master
/auxiliary
volume 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,
metro
orglobal
. - 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) Volume pool, name of storage pool where the volume is located.
- 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.
- Pi
Cloud stringInstance Id - Pi
Volume stringName - Primary
Role string - (String) Indicates whether
master
/auxiliary
volume 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,
metro
orglobal
. - 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) Volume pool, name of storage pool where the volume is located.
- 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.
- pi
Cloud StringInstance Id - pi
Volume StringName - primary
Role String - (String) Indicates whether
master
/auxiliary
volume 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,
metro
orglobal
. - 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) Volume pool, name of storage pool where the volume is located.
- 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.
- pi
Cloud stringInstance Id - pi
Volume stringName - primary
Role string - (String) Indicates whether
master
/auxiliary
volume 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,
metro
orglobal
. - 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) Volume pool, name of storage pool where the volume is located.
- 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.
- pi_
cloud_ strinstance_ id - pi_
volume_ strname - primary_
role str - (String) Indicates whether
master
/auxiliary
volume 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,
metro
orglobal
. - 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) Volume pool, name of storage pool where the volume is located.
- 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.
- pi
Cloud StringInstance Id - pi
Volume StringName - primary
Role String - (String) Indicates whether
master
/auxiliary
volume 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,
metro
orglobal
. - 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) Volume pool, name of storage pool where the volume is located.
- 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
ibm
Terraform Provider.