ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiStoragePoolCapacity
Explore with Pulumi AI
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:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Storage stringPool - The storage pool name.
- Id string
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Storage stringPool - The storage pool name.
- Id string
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Storage StringPool - The storage pool name.
- id String
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Storage stringPool - The storage pool name.
- id string
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
storage_ strpool - The storage pool name.
- id str
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Storage StringPool - The storage pool name.
- id String
getPiStoragePoolCapacity Result
The following output properties are available:
- Id string
- Max
Allocation doubleSize - (Integer) Maximum allocation storage size (GB).
- Pi
Cloud stringInstance Id - Pi
Storage stringPool - Replication
Enabled bool - (Boolean) Replication status of the storage pool.
- Storage
Type string - (String) Storage type of the storage pool.
- Total
Capacity double - (Integer) Total pool capacity (GB).
- Id string
- Max
Allocation float64Size - (Integer) Maximum allocation storage size (GB).
- Pi
Cloud stringInstance Id - Pi
Storage stringPool - Replication
Enabled bool - (Boolean) Replication status of the storage pool.
- Storage
Type string - (String) Storage type of the storage pool.
- Total
Capacity float64 - (Integer) Total pool capacity (GB).
- id String
- max
Allocation DoubleSize - (Integer) Maximum allocation storage size (GB).
- pi
Cloud StringInstance Id - pi
Storage StringPool - replication
Enabled Boolean - (Boolean) Replication status of the storage pool.
- storage
Type String - (String) Storage type of the storage pool.
- total
Capacity Double - (Integer) Total pool capacity (GB).
- id string
- max
Allocation numberSize - (Integer) Maximum allocation storage size (GB).
- pi
Cloud stringInstance Id - pi
Storage stringPool - replication
Enabled boolean - (Boolean) Replication status of the storage pool.
- storage
Type string - (String) Storage type of the storage pool.
- total
Capacity number - (Integer) Total pool capacity (GB).
- id str
- max_
allocation_ floatsize - (Integer) Maximum allocation storage size (GB).
- pi_
cloud_ strinstance_ id - pi_
storage_ strpool - 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
- max
Allocation NumberSize - (Integer) Maximum allocation storage size (GB).
- pi
Cloud StringInstance Id - pi
Storage StringPool - replication
Enabled Boolean - (Boolean) Replication status of the storage pool.
- 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.