1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPiVolumeGroupDetails
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getPiVolumeGroupDetails

Explore with Pulumi AI

Retrieves information about a volume group with details. For more information, about managing a volume group, see moving data to the cloud.

Example Usage

The following example retrieves information about the volume group with details that is present in Power Systems Virtual Server.

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const dsVolumeGroupDetails = ibm.getPiVolumeGroupDetails({
    piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    piVolumeGroupId: "810b5fde-e054-4577-ab5e-3f866a1f6f66",
});
Copy
import pulumi
import pulumi_ibm as ibm

ds_volume_group_details = ibm.get_pi_volume_group_details(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    pi_volume_group_id="810b5fde-e054-4577-ab5e-3f866a1f6f66")
Copy
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.GetPiVolumeGroupDetails(ctx, &ibm.GetPiVolumeGroupDetailsArgs{
			PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
			PiVolumeGroupId:   "810b5fde-e054-4577-ab5e-3f866a1f6f66",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var dsVolumeGroupDetails = Ibm.GetPiVolumeGroupDetails.Invoke(new()
    {
        PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
        PiVolumeGroupId = "810b5fde-e054-4577-ab5e-3f866a1f6f66",
    });

});
Copy
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.GetPiVolumeGroupDetailsArgs;
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 dsVolumeGroupDetails = IbmFunctions.getPiVolumeGroupDetails(GetPiVolumeGroupDetailsArgs.builder()
            .piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
            .piVolumeGroupId("810b5fde-e054-4577-ab5e-3f866a1f6f66")
            .build());

    }
}
Copy
variables:
  dsVolumeGroupDetails:
    fn::invoke:
      function: ibm:getPiVolumeGroupDetails
      arguments:
        piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
        piVolumeGroupId: 810b5fde-e054-4577-ab5e-3f866a1f6f66
Copy

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Using getPiVolumeGroupDetails

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 getPiVolumeGroupDetails(args: GetPiVolumeGroupDetailsArgs, opts?: InvokeOptions): Promise<GetPiVolumeGroupDetailsResult>
function getPiVolumeGroupDetailsOutput(args: GetPiVolumeGroupDetailsOutputArgs, opts?: InvokeOptions): Output<GetPiVolumeGroupDetailsResult>
Copy
def get_pi_volume_group_details(id: Optional[str] = None,
                                pi_cloud_instance_id: Optional[str] = None,
                                pi_volume_group_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetPiVolumeGroupDetailsResult
def get_pi_volume_group_details_output(id: Optional[pulumi.Input[str]] = None,
                                pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                pi_volume_group_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetPiVolumeGroupDetailsResult]
Copy
func GetPiVolumeGroupDetails(ctx *Context, args *GetPiVolumeGroupDetailsArgs, opts ...InvokeOption) (*GetPiVolumeGroupDetailsResult, error)
func GetPiVolumeGroupDetailsOutput(ctx *Context, args *GetPiVolumeGroupDetailsOutputArgs, opts ...InvokeOption) GetPiVolumeGroupDetailsResultOutput
Copy

> Note: This function is named GetPiVolumeGroupDetails in the Go SDK.

public static class GetPiVolumeGroupDetails 
{
    public static Task<GetPiVolumeGroupDetailsResult> InvokeAsync(GetPiVolumeGroupDetailsArgs args, InvokeOptions? opts = null)
    public static Output<GetPiVolumeGroupDetailsResult> Invoke(GetPiVolumeGroupDetailsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPiVolumeGroupDetailsResult> getPiVolumeGroupDetails(GetPiVolumeGroupDetailsArgs args, InvokeOptions options)
public static Output<GetPiVolumeGroupDetailsResult> getPiVolumeGroupDetails(GetPiVolumeGroupDetailsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getPiVolumeGroupDetails:getPiVolumeGroupDetails
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
PiVolumeGroupId This property is required. string
The ID of the volume group.
Id string
(String) The unique identifier of the volume group.
PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
PiVolumeGroupId This property is required. string
The ID of the volume group.
Id string
(String) The unique identifier of the volume group.
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
piVolumeGroupId This property is required. String
The ID of the volume group.
id String
(String) The unique identifier of the volume group.
piCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
piVolumeGroupId This property is required. string
The ID of the volume group.
id string
(String) The unique identifier of the volume group.
pi_cloud_instance_id This property is required. str
The GUID of the service instance associated with an account.
pi_volume_group_id This property is required. str
The ID of the volume group.
id str
(String) The unique identifier of the volume group.
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
piVolumeGroupId This property is required. String
The ID of the volume group.
id String
(String) The unique identifier of the volume group.

getPiVolumeGroupDetails Result

The following output properties are available:

Auxiliary bool
(Boolean) Indicates if the volume group is auxiliary.
ConsistencyGroupName string
(String) The name of consistency group at storage controller level.
Id string
(String) The unique identifier of the volume group.
PiCloudInstanceId string
PiVolumeGroupId string
ReplicationSites List<string>
(List) Indicates the replication sites of the volume group.
ReplicationStatus string
(String) The replication status of volume group.
Status string
(String) The status of the volume group.
StatusDescriptionErrors List<GetPiVolumeGroupDetailsStatusDescriptionError>
(List) The status details of the volume group.
StoragePool string
(String) Storage pool of the volume group.
VolumeGroupName string
(String) The name of the volume group.
VolumeIds List<string>
(List) List of volume IDs, member of volume group.
Auxiliary bool
(Boolean) Indicates if the volume group is auxiliary.
ConsistencyGroupName string
(String) The name of consistency group at storage controller level.
Id string
(String) The unique identifier of the volume group.
PiCloudInstanceId string
PiVolumeGroupId string
ReplicationSites []string
(List) Indicates the replication sites of the volume group.
ReplicationStatus string
(String) The replication status of volume group.
Status string
(String) The status of the volume group.
StatusDescriptionErrors []GetPiVolumeGroupDetailsStatusDescriptionError
(List) The status details of the volume group.
StoragePool string
(String) Storage pool of the volume group.
VolumeGroupName string
(String) The name of the volume group.
VolumeIds []string
(List) List of volume IDs, member of volume group.
auxiliary Boolean
(Boolean) Indicates if the volume group is auxiliary.
consistencyGroupName String
(String) The name of consistency group at storage controller level.
id String
(String) The unique identifier of the volume group.
piCloudInstanceId String
piVolumeGroupId String
replicationSites List<String>
(List) Indicates the replication sites of the volume group.
replicationStatus String
(String) The replication status of volume group.
status String
(String) The status of the volume group.
statusDescriptionErrors List<GetPiVolumeGroupDetailsStatusDescriptionError>
(List) The status details of the volume group.
storagePool String
(String) Storage pool of the volume group.
volumeGroupName String
(String) The name of the volume group.
volumeIds List<String>
(List) List of volume IDs, member of volume group.
auxiliary boolean
(Boolean) Indicates if the volume group is auxiliary.
consistencyGroupName string
(String) The name of consistency group at storage controller level.
id string
(String) The unique identifier of the volume group.
piCloudInstanceId string
piVolumeGroupId string
replicationSites string[]
(List) Indicates the replication sites of the volume group.
replicationStatus string
(String) The replication status of volume group.
status string
(String) The status of the volume group.
statusDescriptionErrors GetPiVolumeGroupDetailsStatusDescriptionError[]
(List) The status details of the volume group.
storagePool string
(String) Storage pool of the volume group.
volumeGroupName string
(String) The name of the volume group.
volumeIds string[]
(List) List of volume IDs, member of volume group.
auxiliary bool
(Boolean) Indicates if the volume group is auxiliary.
consistency_group_name str
(String) The name of consistency group at storage controller level.
id str
(String) The unique identifier of the volume group.
pi_cloud_instance_id str
pi_volume_group_id str
replication_sites Sequence[str]
(List) Indicates the replication sites of the volume group.
replication_status str
(String) The replication status of volume group.
status str
(String) The status of the volume group.
status_description_errors Sequence[GetPiVolumeGroupDetailsStatusDescriptionError]
(List) The status details of the volume group.
storage_pool str
(String) Storage pool of the volume group.
volume_group_name str
(String) The name of the volume group.
volume_ids Sequence[str]
(List) List of volume IDs, member of volume group.
auxiliary Boolean
(Boolean) Indicates if the volume group is auxiliary.
consistencyGroupName String
(String) The name of consistency group at storage controller level.
id String
(String) The unique identifier of the volume group.
piCloudInstanceId String
piVolumeGroupId String
replicationSites List<String>
(List) Indicates the replication sites of the volume group.
replicationStatus String
(String) The replication status of volume group.
status String
(String) The status of the volume group.
statusDescriptionErrors List<Property Map>
(List) The status details of the volume group.
storagePool String
(String) Storage pool of the volume group.
volumeGroupName String
(String) The name of the volume group.
volumeIds List<String>
(List) List of volume IDs, member of volume group.

Supporting Types

GetPiVolumeGroupDetailsStatusDescriptionError

Key This property is required. string
(String) The volume group error key.
Message This property is required. string
(String) The failure message providing more details about the error key.
VolumeIds This property is required. List<string>
(List) List of volume IDs, member of volume group.
Key This property is required. string
(String) The volume group error key.
Message This property is required. string
(String) The failure message providing more details about the error key.
VolumeIds This property is required. []string
(List) List of volume IDs, member of volume group.
key This property is required. String
(String) The volume group error key.
message This property is required. String
(String) The failure message providing more details about the error key.
volumeIds This property is required. List<String>
(List) List of volume IDs, member of volume group.
key This property is required. string
(String) The volume group error key.
message This property is required. string
(String) The failure message providing more details about the error key.
volumeIds This property is required. string[]
(List) List of volume IDs, member of volume group.
key This property is required. str
(String) The volume group error key.
message This property is required. str
(String) The failure message providing more details about the error key.
volume_ids This property is required. Sequence[str]
(List) List of volume IDs, member of volume group.
key This property is required. String
(String) The volume group error key.
message This property is required. String
(String) The failure message providing more details about the error key.
volumeIds This property is required. List<String>
(List) List of volume IDs, member of volume group.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.