1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPiStoragePoolCapacity
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getPiStoragePoolCapacity

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about storages capacity for a storage pool in a region. For more information, see getting started with IBM Power Systems Virtual Servers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const pool = ibm.getPiStoragePoolCapacity({
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piStoragePool: "Tier3-Flash-1",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pool = ibm.get_pi_storage_pool_capacity(pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_storage_pool="Tier3-Flash-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.GetPiStoragePoolCapacity(ctx, &ibm.GetPiStoragePoolCapacityArgs{
    			PiCloudInstanceId: "<value of the cloud_instance_id>",
    			PiStoragePool:     "Tier3-Flash-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 pool = Ibm.GetPiStoragePoolCapacity.Invoke(new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiStoragePool = "Tier3-Flash-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.GetPiStoragePoolCapacityArgs;
    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 pool = IbmFunctions.getPiStoragePoolCapacity(GetPiStoragePoolCapacityArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piStoragePool("Tier3-Flash-1")
                .build());
    
        }
    }
    
    variables:
      pool:
        fn::invoke:
          function: ibm:getPiStoragePoolCapacity
          arguments:
            piCloudInstanceId: <value of the cloud_instance_id>
            piStoragePool: Tier3-Flash-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 getPiStoragePoolCapacity

    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 getPiStoragePoolCapacity(args: GetPiStoragePoolCapacityArgs, opts?: InvokeOptions): Promise<GetPiStoragePoolCapacityResult>
    function getPiStoragePoolCapacityOutput(args: GetPiStoragePoolCapacityOutputArgs, opts?: InvokeOptions): Output<GetPiStoragePoolCapacityResult>
    def get_pi_storage_pool_capacity(id: Optional[str] = None,
                                     pi_cloud_instance_id: Optional[str] = None,
                                     pi_storage_pool: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetPiStoragePoolCapacityResult
    def get_pi_storage_pool_capacity_output(id: Optional[pulumi.Input[str]] = None,
                                     pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                     pi_storage_pool: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetPiStoragePoolCapacityResult]
    func GetPiStoragePoolCapacity(ctx *Context, args *GetPiStoragePoolCapacityArgs, opts ...InvokeOption) (*GetPiStoragePoolCapacityResult, error)
    func GetPiStoragePoolCapacityOutput(ctx *Context, args *GetPiStoragePoolCapacityOutputArgs, opts ...InvokeOption) GetPiStoragePoolCapacityResultOutput

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

    public static class GetPiStoragePoolCapacity 
    {
        public static Task<GetPiStoragePoolCapacityResult> InvokeAsync(GetPiStoragePoolCapacityArgs args, InvokeOptions? opts = null)
        public static Output<GetPiStoragePoolCapacityResult> Invoke(GetPiStoragePoolCapacityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiStoragePoolCapacityResult> getPiStoragePoolCapacity(GetPiStoragePoolCapacityArgs args, InvokeOptions options)
    public static Output<GetPiStoragePoolCapacityResult> getPiStoragePoolCapacity(GetPiStoragePoolCapacityArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiStoragePoolCapacity:getPiStoragePoolCapacity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiStoragePool string
    The storage pool name.
    Id string
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiStoragePool string
    The storage pool name.
    Id string
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piStoragePool String
    The storage pool name.
    id String
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piStoragePool string
    The storage pool name.
    id string
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_storage_pool str
    The storage pool name.
    id str
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piStoragePool String
    The storage pool name.
    id String

    getPiStoragePoolCapacity Result

    The following output properties are available:

    Id string
    MaxAllocationSize double
    (Integer) Maximum allocation storage size (GB).
    PiCloudInstanceId string
    PiStoragePool string
    ReplicationEnabled bool
    (Boolean) Replication status of the storage pool.
    StorageType string
    (String) Storage type of the storage pool.
    TotalCapacity double
    (Integer) Total pool capacity (GB).
    Id string
    MaxAllocationSize float64
    (Integer) Maximum allocation storage size (GB).
    PiCloudInstanceId string
    PiStoragePool string
    ReplicationEnabled bool
    (Boolean) Replication status of the storage pool.
    StorageType string
    (String) Storage type of the storage pool.
    TotalCapacity float64
    (Integer) Total pool capacity (GB).
    id String
    maxAllocationSize Double
    (Integer) Maximum allocation storage size (GB).
    piCloudInstanceId String
    piStoragePool String
    replicationEnabled Boolean
    (Boolean) Replication status of the storage pool.
    storageType String
    (String) Storage type of the storage pool.
    totalCapacity Double
    (Integer) Total pool capacity (GB).
    id string
    maxAllocationSize number
    (Integer) Maximum allocation storage size (GB).
    piCloudInstanceId string
    piStoragePool string
    replicationEnabled boolean
    (Boolean) Replication status of the storage pool.
    storageType string
    (String) Storage type of the storage pool.
    totalCapacity number
    (Integer) Total pool capacity (GB).
    id str
    max_allocation_size float
    (Integer) Maximum allocation storage size (GB).
    pi_cloud_instance_id str
    pi_storage_pool str
    replication_enabled bool
    (Boolean) Replication status of the storage pool.
    storage_type str
    (String) Storage type of the storage pool.
    total_capacity float
    (Integer) Total pool capacity (GB).
    id String
    maxAllocationSize Number
    (Integer) Maximum allocation storage size (GB).
    piCloudInstanceId String
    piStoragePool String
    replicationEnabled Boolean
    (Boolean) Replication status of the storage pool.
    storageType String
    (String) Storage type of the storage pool.
    totalCapacity Number
    (Integer) Total pool capacity (GB).

    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.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud