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

ibm.getPiStorageTypeCapacity

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 type 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 type = ibm.getPiStorageTypeCapacity({
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piStorageType: "tier3",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    type = ibm.get_pi_storage_type_capacity(pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_storage_type="tier3")
    
    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.GetPiStorageTypeCapacity(ctx, &ibm.GetPiStorageTypeCapacityArgs{
    			PiCloudInstanceId: "<value of the cloud_instance_id>",
    			PiStorageType:     "tier3",
    		}, 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 type = Ibm.GetPiStorageTypeCapacity.Invoke(new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiStorageType = "tier3",
        });
    
    });
    
    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.GetPiStorageTypeCapacityArgs;
    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 type = IbmFunctions.getPiStorageTypeCapacity(GetPiStorageTypeCapacityArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piStorageType("tier3")
                .build());
    
        }
    }
    
    variables:
      type:
        fn::invoke:
          function: ibm:getPiStorageTypeCapacity
          arguments:
            piCloudInstanceId: <value of the cloud_instance_id>
            piStorageType: tier3
    

    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 getPiStorageTypeCapacity

    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 getPiStorageTypeCapacity(args: GetPiStorageTypeCapacityArgs, opts?: InvokeOptions): Promise<GetPiStorageTypeCapacityResult>
    function getPiStorageTypeCapacityOutput(args: GetPiStorageTypeCapacityOutputArgs, opts?: InvokeOptions): Output<GetPiStorageTypeCapacityResult>
    def get_pi_storage_type_capacity(id: Optional[str] = None,
                                     pi_cloud_instance_id: Optional[str] = None,
                                     pi_storage_type: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetPiStorageTypeCapacityResult
    def get_pi_storage_type_capacity_output(id: Optional[pulumi.Input[str]] = None,
                                     pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                     pi_storage_type: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetPiStorageTypeCapacityResult]
    func GetPiStorageTypeCapacity(ctx *Context, args *GetPiStorageTypeCapacityArgs, opts ...InvokeOption) (*GetPiStorageTypeCapacityResult, error)
    func GetPiStorageTypeCapacityOutput(ctx *Context, args *GetPiStorageTypeCapacityOutputArgs, opts ...InvokeOption) GetPiStorageTypeCapacityResultOutput

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

    public static class GetPiStorageTypeCapacity 
    {
        public static Task<GetPiStorageTypeCapacityResult> InvokeAsync(GetPiStorageTypeCapacityArgs args, InvokeOptions? opts = null)
        public static Output<GetPiStorageTypeCapacityResult> Invoke(GetPiStorageTypeCapacityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiStorageTypeCapacityResult> getPiStorageTypeCapacity(GetPiStorageTypeCapacityArgs args, InvokeOptions options)
    public static Output<GetPiStorageTypeCapacityResult> getPiStorageTypeCapacity(GetPiStorageTypeCapacityArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiStorageTypeCapacity:getPiStorageTypeCapacity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiStorageType string
    The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
    Id string
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiStorageType string
    The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
    Id string
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piStorageType String
    The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
    id String
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piStorageType string
    The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
    id string
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_storage_type str
    The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
    id str
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piStorageType String
    The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
    id String

    getPiStorageTypeCapacity Result

    The following output properties are available:

    Id string
    MaxStorageAllocation Dictionary<string, string>
    PiCloudInstanceId string
    PiStorageType string
    StoragePoolsCapacities List<GetPiStorageTypeCapacityStoragePoolsCapacity>
    (List) List of storage pools capacity.
    id string
    maxStorageAllocation {[key: string]: string}
    piCloudInstanceId string
    piStorageType string
    storagePoolsCapacities GetPiStorageTypeCapacityStoragePoolsCapacity[]
    (List) List of storage pools capacity.
    id String
    maxStorageAllocation Map<String>
    piCloudInstanceId String
    piStorageType String
    storagePoolsCapacities List<Property Map>
    (List) List of storage pools capacity.

    Supporting Types

    GetPiStorageTypeCapacityStoragePoolsCapacity

    MaxAllocationSize double
    (Integer) Maximum allocation storage size (GB).
    PoolName string
    (String) The pool name.
    StorageType string
    (String) Storage type of the storage pool.
    TotalCapacity double
    (Integer) Total pool capacity (GB).
    MaxAllocationSize float64
    (Integer) Maximum allocation storage size (GB).
    PoolName string
    (String) The pool name.
    StorageType string
    (String) Storage type of the storage pool.
    TotalCapacity float64
    (Integer) Total pool capacity (GB).
    maxAllocationSize Double
    (Integer) Maximum allocation storage size (GB).
    poolName String
    (String) The pool name.
    storageType String
    (String) Storage type of the storage pool.
    totalCapacity Double
    (Integer) Total pool capacity (GB).
    maxAllocationSize number
    (Integer) Maximum allocation storage size (GB).
    poolName string
    (String) The pool name.
    storageType string
    (String) Storage type of the storage pool.
    totalCapacity number
    (Integer) Total pool capacity (GB).
    max_allocation_size float
    (Integer) Maximum allocation storage size (GB).
    pool_name str
    (String) The pool name.
    storage_type str
    (String) Storage type of the storage pool.
    total_capacity float
    (Integer) Total pool capacity (GB).
    maxAllocationSize Number
    (Integer) Maximum allocation storage size (GB).
    poolName String
    (String) The pool name.
    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