ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiStorageTypeCapacity
Explore with Pulumi AI
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:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Storage stringType - The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
- Id string
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Storage stringType - The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
- Id string
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Storage StringType - The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
- id String
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Storage stringType - The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
- id string
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
storage_ strtype - The storage type name. To get a list of available storage types, please use the ibm.getPiStorageTypesCapacity data source.
- id str
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Storage StringType - 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
- Max
Storage Dictionary<string, string>Allocation - Pi
Cloud stringInstance Id - Pi
Storage stringType - Storage
Pools List<GetCapacities Pi Storage Type Capacity Storage Pools Capacity> - (List) List of storage pools capacity.
- Id string
- Max
Storage map[string]stringAllocation - Pi
Cloud stringInstance Id - Pi
Storage stringType - Storage
Pools []GetCapacities Pi Storage Type Capacity Storage Pools Capacity - (List) List of storage pools capacity.
- id String
- max
Storage Map<String,String>Allocation - pi
Cloud StringInstance Id - pi
Storage StringType - storage
Pools List<GetCapacities Pi Storage Type Capacity Storage Pools Capacity> - (List) List of storage pools capacity.
- id string
- max
Storage {[key: string]: string}Allocation - pi
Cloud stringInstance Id - pi
Storage stringType - storage
Pools GetCapacities Pi Storage Type Capacity Storage Pools Capacity[] - (List) List of storage pools capacity.
- id str
- max_
storage_ Mapping[str, str]allocation - pi_
cloud_ strinstance_ id - pi_
storage_ strtype - storage_
pools_ Sequence[Getcapacities Pi Storage Type Capacity Storage Pools Capacity] - (List) List of storage pools capacity.
- id String
- max
Storage Map<String>Allocation - pi
Cloud StringInstance Id - pi
Storage StringType - storage
Pools List<Property Map>Capacities - (List) List of storage pools capacity.
Supporting Types
GetPiStorageTypeCapacityStoragePoolsCapacity
- Max
Allocation doubleSize - (Integer) Maximum allocation storage size (GB).
- Pool
Name string - (String) The pool name.
- Storage
Type string - (String) Storage type of the storage pool.
- 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) Storage type of the storage pool.
- 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) Storage type of the storage pool.
- 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) Storage type of the storage pool.
- 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) Storage type of the storage pool.
- 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) Storage type of the storage pool.
- 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.