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

ibm.getPiStorageTypesCapacity

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 all available storage types 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 types = ibm.getPiStorageTypesCapacity({
        piCloudInstanceId: "<value of the cloud_instance_id>",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    types = ibm.get_pi_storage_types_capacity(pi_cloud_instance_id="<value of the cloud_instance_id>")
    
    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.GetPiStorageTypesCapacity(ctx, &ibm.GetPiStorageTypesCapacityArgs{
    			PiCloudInstanceId: "<value of the cloud_instance_id>",
    		}, 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 types = Ibm.GetPiStorageTypesCapacity.Invoke(new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
        });
    
    });
    
    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.GetPiStorageTypesCapacityArgs;
    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 types = IbmFunctions.getPiStorageTypesCapacity(GetPiStorageTypesCapacityArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .build());
    
        }
    }
    
    variables:
      types:
        fn::invoke:
          function: ibm:getPiStorageTypesCapacity
          arguments:
            piCloudInstanceId: <value of the cloud_instance_id>
    

    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 getPiStorageTypesCapacity

    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 getPiStorageTypesCapacity(args: GetPiStorageTypesCapacityArgs, opts?: InvokeOptions): Promise<GetPiStorageTypesCapacityResult>
    function getPiStorageTypesCapacityOutput(args: GetPiStorageTypesCapacityOutputArgs, opts?: InvokeOptions): Output<GetPiStorageTypesCapacityResult>
    def get_pi_storage_types_capacity(id: Optional[str] = None,
                                      pi_cloud_instance_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPiStorageTypesCapacityResult
    def get_pi_storage_types_capacity_output(id: Optional[pulumi.Input[str]] = None,
                                      pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPiStorageTypesCapacityResult]
    func GetPiStorageTypesCapacity(ctx *Context, args *GetPiStorageTypesCapacityArgs, opts ...InvokeOption) (*GetPiStorageTypesCapacityResult, error)
    func GetPiStorageTypesCapacityOutput(ctx *Context, args *GetPiStorageTypesCapacityOutputArgs, opts ...InvokeOption) GetPiStorageTypesCapacityResultOutput

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

    public static class GetPiStorageTypesCapacity 
    {
        public static Task<GetPiStorageTypesCapacityResult> InvokeAsync(GetPiStorageTypesCapacityArgs args, InvokeOptions? opts = null)
        public static Output<GetPiStorageTypesCapacityResult> Invoke(GetPiStorageTypesCapacityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiStorageTypesCapacityResult> getPiStorageTypesCapacity(GetPiStorageTypesCapacityArgs args, InvokeOptions options)
    public static Output<GetPiStorageTypesCapacityResult> getPiStorageTypesCapacity(GetPiStorageTypesCapacityArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiStorageTypesCapacity:getPiStorageTypesCapacity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    Id string
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    Id string
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    id String
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    id string
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    id str
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    id String

    getPiStorageTypesCapacity Result

    The following output properties are available:

    Id string
    MaxStorageAllocation Dictionary<string, string>
    PiCloudInstanceId string
    StorageTypesCapacities List<GetPiStorageTypesCapacityStorageTypesCapacity>
    (List) List of storage types capacity.
    id string
    maxStorageAllocation {[key: string]: string}
    piCloudInstanceId string
    storageTypesCapacities GetPiStorageTypesCapacityStorageTypesCapacity[]
    (List) List of storage types capacity.
    id String
    maxStorageAllocation Map<String>
    piCloudInstanceId String
    storageTypesCapacities List<Property Map>
    (List) List of storage types capacity.

    Supporting Types

    GetPiStorageTypesCapacityStorageTypesCapacity

    MaxStorageAllocation Dictionary<string, string>
    StoragePoolsCapacities List<GetPiStorageTypesCapacityStorageTypesCapacityStoragePoolsCapacity>
    (List) List of storage pools capacity.
    StorageType string
    (String) The storage type.
    MaxStorageAllocation map[string]string
    StoragePoolsCapacities []GetPiStorageTypesCapacityStorageTypesCapacityStoragePoolsCapacity
    (List) List of storage pools capacity.
    StorageType string
    (String) The storage type.
    maxStorageAllocation Map<String,String>
    storagePoolsCapacities List<GetPiStorageTypesCapacityStorageTypesCapacityStoragePoolsCapacity>
    (List) List of storage pools capacity.
    storageType String
    (String) The storage type.
    maxStorageAllocation {[key: string]: string}
    storagePoolsCapacities GetPiStorageTypesCapacityStorageTypesCapacityStoragePoolsCapacity[]
    (List) List of storage pools capacity.
    storageType string
    (String) The storage type.
    maxStorageAllocation Map<String>
    storagePoolsCapacities List<Property Map>
    (List) List of storage pools capacity.
    storageType String
    (String) The storage type.

    GetPiStorageTypesCapacityStorageTypesCapacityStoragePoolsCapacity

    MaxAllocationSize double
    (Integer) Maximum allocation storage size (GB).
    PoolName string
    (String) The pool name.
    StorageType string
    (String) The storage type.
    TotalCapacity double
    (Integer) Total pool capacity (GB).
    MaxAllocationSize float64
    (Integer) Maximum allocation storage size (GB).
    PoolName string
    (String) The pool name.
    StorageType string
    (String) The storage type.
    TotalCapacity float64
    (Integer) Total pool capacity (GB).
    maxAllocationSize Double
    (Integer) Maximum allocation storage size (GB).
    poolName String
    (String) The pool name.
    storageType String
    (String) The storage type.
    totalCapacity Double
    (Integer) Total pool capacity (GB).
    maxAllocationSize number
    (Integer) Maximum allocation storage size (GB).
    poolName string
    (String) The pool name.
    storageType string
    (String) The storage type.
    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) The storage type.
    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) The storage type.
    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