ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiStorageTypesCapacity
Explore with Pulumi AI
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:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
getPiStorageTypesCapacity Result
The following output properties are available:
- Id string
- Max
Storage Dictionary<string, string>Allocation - Pi
Cloud stringInstance Id - Storage
Types List<GetCapacities Pi Storage Types Capacity Storage Types Capacity> - (List) List of storage types capacity.
- Id string
- Max
Storage map[string]stringAllocation - Pi
Cloud stringInstance Id - Storage
Types []GetCapacities Pi Storage Types Capacity Storage Types Capacity - (List) List of storage types capacity.
- id String
- max
Storage Map<String,String>Allocation - pi
Cloud StringInstance Id - storage
Types List<GetCapacities Pi Storage Types Capacity Storage Types Capacity> - (List) List of storage types capacity.
- id string
- max
Storage {[key: string]: string}Allocation - pi
Cloud stringInstance Id - storage
Types GetCapacities Pi Storage Types Capacity Storage Types Capacity[] - (List) List of storage types capacity.
- id str
- max_
storage_ Mapping[str, str]allocation - pi_
cloud_ strinstance_ id - storage_
types_ Sequence[Getcapacities Pi Storage Types Capacity Storage Types Capacity] - (List) List of storage types capacity.
- id String
- max
Storage Map<String>Allocation - pi
Cloud StringInstance Id - storage
Types List<Property Map>Capacities - (List) List of storage types capacity.
Supporting Types
GetPiStorageTypesCapacityStorageTypesCapacity
- Max
Storage Dictionary<string, string>Allocation - Storage
Pools List<GetCapacities Pi Storage Types Capacity Storage Types Capacity Storage Pools Capacity> - (List) List of storage pools capacity.
- Storage
Type string - (String) The storage type.
- Max
Storage map[string]stringAllocation - Storage
Pools []GetCapacities Pi Storage Types Capacity Storage Types Capacity Storage Pools Capacity - (List) List of storage pools capacity.
- Storage
Type string - (String) The storage type.
- max
Storage Map<String,String>Allocation - storage
Pools List<GetCapacities Pi Storage Types Capacity Storage Types Capacity Storage Pools Capacity> - (List) List of storage pools capacity.
- storage
Type String - (String) The storage type.
- max
Storage {[key: string]: string}Allocation - storage
Pools GetCapacities Pi Storage Types Capacity Storage Types Capacity Storage Pools Capacity[] - (List) List of storage pools capacity.
- storage
Type string - (String) The storage type.
- max_
storage_ Mapping[str, str]allocation - storage_
pools_ Sequence[Getcapacities Pi Storage Types Capacity Storage Types Capacity Storage Pools Capacity] - (List) List of storage pools capacity.
- storage_
type str - (String) The storage type.
- max
Storage Map<String>Allocation - storage
Pools List<Property Map>Capacities - (List) List of storage pools capacity.
- storage
Type String - (String) The storage type.
GetPiStorageTypesCapacityStorageTypesCapacityStoragePoolsCapacity
- Max
Allocation doubleSize - (Integer) Maximum allocation storage size (GB).
- Pool
Name string - (String) The pool name.
- Storage
Type string - (String) The storage type.
- Total
Capacity double - (Integer) Total pool capacity (GB).
- Max
Allocation float64Size - (Integer) Maximum allocation storage size (GB).
- Pool
Name string - (String) The pool name.
- Storage
Type string - (String) The storage type.
- Total
Capacity float64 - (Integer) Total pool capacity (GB).
- max
Allocation DoubleSize - (Integer) Maximum allocation storage size (GB).
- pool
Name String - (String) The pool name.
- storage
Type String - (String) The storage type.
- total
Capacity Double - (Integer) Total pool capacity (GB).
- max
Allocation numberSize - (Integer) Maximum allocation storage size (GB).
- pool
Name string - (String) The pool name.
- storage
Type string - (String) The storage type.
- total
Capacity number - (Integer) Total pool capacity (GB).
- max_
allocation_ floatsize - (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).
- max
Allocation NumberSize - (Integer) Maximum allocation storage size (GB).
- pool
Name String - (String) The pool name.
- storage
Type String - (String) The storage type.
- total
Capacity 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.