1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPiInstanceVpmemVolumes
ibm 1.87.0-beta1 published on Monday, Dec 22, 2025 by ibm-cloud
ibm logo
ibm 1.87.0-beta1 published on Monday, Dec 22, 2025 by ibm-cloud

    Retrieves information about a power virtual machine instance vPMEM volumes.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const instanceVpmemVolumes = ibm.getPiInstanceVpmemVolumes({
        piCloudInstanceId: "098f6bcd-2f7e-470a-a1ab-664e61882371",
        piPvmInstanceId: "11223344-5566-7788-99ab-cdef01234567",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    instance_vpmem_volumes = ibm.get_pi_instance_vpmem_volumes(pi_cloud_instance_id="098f6bcd-2f7e-470a-a1ab-664e61882371",
        pi_pvm_instance_id="11223344-5566-7788-99ab-cdef01234567")
    
    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.LookupPiInstanceVpmemVolumes(ctx, &ibm.LookupPiInstanceVpmemVolumesArgs{
    			PiCloudInstanceId: "098f6bcd-2f7e-470a-a1ab-664e61882371",
    			PiPvmInstanceId:   "11223344-5566-7788-99ab-cdef01234567",
    		}, 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 instanceVpmemVolumes = Ibm.GetPiInstanceVpmemVolumes.Invoke(new()
        {
            PiCloudInstanceId = "098f6bcd-2f7e-470a-a1ab-664e61882371",
            PiPvmInstanceId = "11223344-5566-7788-99ab-cdef01234567",
        });
    
    });
    
    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.GetPiInstanceVpmemVolumesArgs;
    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 instanceVpmemVolumes = IbmFunctions.getPiInstanceVpmemVolumes(GetPiInstanceVpmemVolumesArgs.builder()
                .piCloudInstanceId("098f6bcd-2f7e-470a-a1ab-664e61882371")
                .piPvmInstanceId("11223344-5566-7788-99ab-cdef01234567")
                .build());
    
        }
    }
    
    variables:
      instanceVpmemVolumes:
        fn::invoke:
          function: ibm:getPiInstanceVpmemVolumes
          arguments:
            piCloudInstanceId: 098f6bcd-2f7e-470a-a1ab-664e61882371
            piPvmInstanceId: 11223344-5566-7788-99ab-cdef01234567
    

    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 getPiInstanceVpmemVolumes

    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 getPiInstanceVpmemVolumes(args: GetPiInstanceVpmemVolumesArgs, opts?: InvokeOptions): Promise<GetPiInstanceVpmemVolumesResult>
    function getPiInstanceVpmemVolumesOutput(args: GetPiInstanceVpmemVolumesOutputArgs, opts?: InvokeOptions): Output<GetPiInstanceVpmemVolumesResult>
    def get_pi_instance_vpmem_volumes(id: Optional[str] = None,
                                      pi_cloud_instance_id: Optional[str] = None,
                                      pi_pvm_instance_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPiInstanceVpmemVolumesResult
    def get_pi_instance_vpmem_volumes_output(id: Optional[pulumi.Input[str]] = None,
                                      pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                      pi_pvm_instance_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPiInstanceVpmemVolumesResult]
    func LookupPiInstanceVpmemVolumes(ctx *Context, args *LookupPiInstanceVpmemVolumesArgs, opts ...InvokeOption) (*LookupPiInstanceVpmemVolumesResult, error)
    func LookupPiInstanceVpmemVolumesOutput(ctx *Context, args *LookupPiInstanceVpmemVolumesOutputArgs, opts ...InvokeOption) LookupPiInstanceVpmemVolumesResultOutput

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

    public static class GetPiInstanceVpmemVolumes 
    {
        public static Task<GetPiInstanceVpmemVolumesResult> InvokeAsync(GetPiInstanceVpmemVolumesArgs args, InvokeOptions? opts = null)
        public static Output<GetPiInstanceVpmemVolumesResult> Invoke(GetPiInstanceVpmemVolumesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiInstanceVpmemVolumesResult> getPiInstanceVpmemVolumes(GetPiInstanceVpmemVolumesArgs args, InvokeOptions options)
    public static Output<GetPiInstanceVpmemVolumesResult> getPiInstanceVpmemVolumes(GetPiInstanceVpmemVolumesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiInstanceVpmemVolumes:getPiInstanceVpmemVolumes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiPvmInstanceId string
    PCloud PVM instance ID.
    Id string
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiPvmInstanceId string
    PCloud PVM instance ID.
    Id string
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piPvmInstanceId String
    PCloud PVM instance ID.
    id String
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piPvmInstanceId string
    PCloud PVM instance ID.
    id string
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_pvm_instance_id str
    PCloud PVM instance ID.
    id str
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piPvmInstanceId String
    PCloud PVM instance ID.
    id String
    (String) The unique identifier of the pi_instance_vpmem_volumes.

    getPiInstanceVpmemVolumes Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    PiCloudInstanceId string
    PiPvmInstanceId string
    Volumes List<GetPiInstanceVpmemVolumesVolume>
    (List) List of vPMEM volumes. Nested schema for volumes:
    Id string
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    PiCloudInstanceId string
    PiPvmInstanceId string
    Volumes []GetPiInstanceVpmemVolumesVolume
    (List) List of vPMEM volumes. Nested schema for volumes:
    id String
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    piCloudInstanceId String
    piPvmInstanceId String
    volumes List<GetPiInstanceVpmemVolumesVolume>
    (List) List of vPMEM volumes. Nested schema for volumes:
    id string
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    piCloudInstanceId string
    piPvmInstanceId string
    volumes GetPiInstanceVpmemVolumesVolume[]
    (List) List of vPMEM volumes. Nested schema for volumes:
    id str
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    pi_cloud_instance_id str
    pi_pvm_instance_id str
    volumes Sequence[GetPiInstanceVpmemVolumesVolume]
    (List) List of vPMEM volumes. Nested schema for volumes:
    id String
    (String) The unique identifier of the pi_instance_vpmem_volumes.
    piCloudInstanceId String
    piPvmInstanceId String
    volumes List<Property Map>
    (List) List of vPMEM volumes. Nested schema for volumes:

    Supporting Types

    GetPiInstanceVpmemVolumesVolume

    CreationDate string
    (String) The date and time when the volume was created.
    Crn string
    (String) The CRN for this resource.
    ErrorCode string
    (String) Error code for the vPMEM volume.
    Href string
    (String) Link to vPMEM volume resource.
    Name string
    (String) Volume Name.
    PvmInstanceId string
    (String) PVM Instance ID which the volume is attached to.
    Reason string
    (String) Reason for error.
    Size double
    (Float) Volume Size (GB).
    Status string
    (String) Status of the volume.
    UpdatedDate string
    (String) The date and time when the volume was updated.
    UserTags List<string>
    (List) List of user tags.
    VolumeId string
    (String) Volume ID.
    CreationDate string
    (String) The date and time when the volume was created.
    Crn string
    (String) The CRN for this resource.
    ErrorCode string
    (String) Error code for the vPMEM volume.
    Href string
    (String) Link to vPMEM volume resource.
    Name string
    (String) Volume Name.
    PvmInstanceId string
    (String) PVM Instance ID which the volume is attached to.
    Reason string
    (String) Reason for error.
    Size float64
    (Float) Volume Size (GB).
    Status string
    (String) Status of the volume.
    UpdatedDate string
    (String) The date and time when the volume was updated.
    UserTags []string
    (List) List of user tags.
    VolumeId string
    (String) Volume ID.
    creationDate String
    (String) The date and time when the volume was created.
    crn String
    (String) The CRN for this resource.
    errorCode String
    (String) Error code for the vPMEM volume.
    href String
    (String) Link to vPMEM volume resource.
    name String
    (String) Volume Name.
    pvmInstanceId String
    (String) PVM Instance ID which the volume is attached to.
    reason String
    (String) Reason for error.
    size Double
    (Float) Volume Size (GB).
    status String
    (String) Status of the volume.
    updatedDate String
    (String) The date and time when the volume was updated.
    userTags List<String>
    (List) List of user tags.
    volumeId String
    (String) Volume ID.
    creationDate string
    (String) The date and time when the volume was created.
    crn string
    (String) The CRN for this resource.
    errorCode string
    (String) Error code for the vPMEM volume.
    href string
    (String) Link to vPMEM volume resource.
    name string
    (String) Volume Name.
    pvmInstanceId string
    (String) PVM Instance ID which the volume is attached to.
    reason string
    (String) Reason for error.
    size number
    (Float) Volume Size (GB).
    status string
    (String) Status of the volume.
    updatedDate string
    (String) The date and time when the volume was updated.
    userTags string[]
    (List) List of user tags.
    volumeId string
    (String) Volume ID.
    creation_date str
    (String) The date and time when the volume was created.
    crn str
    (String) The CRN for this resource.
    error_code str
    (String) Error code for the vPMEM volume.
    href str
    (String) Link to vPMEM volume resource.
    name str
    (String) Volume Name.
    pvm_instance_id str
    (String) PVM Instance ID which the volume is attached to.
    reason str
    (String) Reason for error.
    size float
    (Float) Volume Size (GB).
    status str
    (String) Status of the volume.
    updated_date str
    (String) The date and time when the volume was updated.
    user_tags Sequence[str]
    (List) List of user tags.
    volume_id str
    (String) Volume ID.
    creationDate String
    (String) The date and time when the volume was created.
    crn String
    (String) The CRN for this resource.
    errorCode String
    (String) Error code for the vPMEM volume.
    href String
    (String) Link to vPMEM volume resource.
    name String
    (String) Volume Name.
    pvmInstanceId String
    (String) PVM Instance ID which the volume is attached to.
    reason String
    (String) Reason for error.
    size Number
    (Float) Volume Size (GB).
    status String
    (String) Status of the volume.
    updatedDate String
    (String) The date and time when the volume was updated.
    userTags List<String>
    (List) List of user tags.
    volumeId String
    (String) Volume ID.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.87.0-beta1 published on Monday, Dec 22, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate