1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPiStorageTiers
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getPiStorageTiers

Explore with Pulumi AI

Retrieve information about supported storage tiers for a pi cloud instance. For more information, see storage tiers docs.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const piStorageTiers = ibm.getPiStorageTiers({
    piCloudInstanceId: "<value of the cloud_instance_id>",
});
Copy
import pulumi
import pulumi_ibm as ibm

pi_storage_tiers = ibm.get_pi_storage_tiers(pi_cloud_instance_id="<value of the cloud_instance_id>")
Copy
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.GetPiStorageTiers(ctx, &ibm.GetPiStorageTiersArgs{
			PiCloudInstanceId: "<value of the cloud_instance_id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var piStorageTiers = Ibm.GetPiStorageTiers.Invoke(new()
    {
        PiCloudInstanceId = "<value of the cloud_instance_id>",
    });

});
Copy
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.GetPiStorageTiersArgs;
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 piStorageTiers = IbmFunctions.getPiStorageTiers(GetPiStorageTiersArgs.builder()
            .piCloudInstanceId("<value of the cloud_instance_id>")
            .build());

    }
}
Copy
variables:
  piStorageTiers:
    fn::invoke:
      function: ibm:getPiStorageTiers
      arguments:
        piCloudInstanceId: <value of the cloud_instance_id>
Copy

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Using getPiStorageTiers

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 getPiStorageTiers(args: GetPiStorageTiersArgs, opts?: InvokeOptions): Promise<GetPiStorageTiersResult>
function getPiStorageTiersOutput(args: GetPiStorageTiersOutputArgs, opts?: InvokeOptions): Output<GetPiStorageTiersResult>
Copy
def get_pi_storage_tiers(id: Optional[str] = None,
                         pi_cloud_instance_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPiStorageTiersResult
def get_pi_storage_tiers_output(id: Optional[pulumi.Input[str]] = None,
                         pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetPiStorageTiersResult]
Copy
func GetPiStorageTiers(ctx *Context, args *GetPiStorageTiersArgs, opts ...InvokeOption) (*GetPiStorageTiersResult, error)
func GetPiStorageTiersOutput(ctx *Context, args *GetPiStorageTiersOutputArgs, opts ...InvokeOption) GetPiStorageTiersResultOutput
Copy

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

public static class GetPiStorageTiers 
{
    public static Task<GetPiStorageTiersResult> InvokeAsync(GetPiStorageTiersArgs args, InvokeOptions? opts = null)
    public static Output<GetPiStorageTiersResult> Invoke(GetPiStorageTiersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPiStorageTiersResult> getPiStorageTiers(GetPiStorageTiersArgs args, InvokeOptions options)
public static Output<GetPiStorageTiersResult> getPiStorageTiers(GetPiStorageTiersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getPiStorageTiers:getPiStorageTiers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
Id string
(String) The unique identifier of the storage tiers.
PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
Id string
(String) The unique identifier of the storage tiers.
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
id String
(String) The unique identifier of the storage tiers.
piCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
id string
(String) The unique identifier of the storage tiers.
pi_cloud_instance_id This property is required. str
The GUID of the service instance associated with an account.
id str
(String) The unique identifier of the storage tiers.
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
id String
(String) The unique identifier of the storage tiers.

getPiStorageTiers Result

The following output properties are available:

Id string
(String) The unique identifier of the storage tiers.
PiCloudInstanceId string
RegionStorageTiers List<GetPiStorageTiersRegionStorageTier>
(List) An array of storage tiers supported in a region.
Id string
(String) The unique identifier of the storage tiers.
PiCloudInstanceId string
RegionStorageTiers []GetPiStorageTiersRegionStorageTier
(List) An array of storage tiers supported in a region.
id String
(String) The unique identifier of the storage tiers.
piCloudInstanceId String
regionStorageTiers List<GetPiStorageTiersRegionStorageTier>
(List) An array of storage tiers supported in a region.
id string
(String) The unique identifier of the storage tiers.
piCloudInstanceId string
regionStorageTiers GetPiStorageTiersRegionStorageTier[]
(List) An array of storage tiers supported in a region.
id str
(String) The unique identifier of the storage tiers.
pi_cloud_instance_id str
region_storage_tiers Sequence[GetPiStorageTiersRegionStorageTier]
(List) An array of storage tiers supported in a region.
id String
(String) The unique identifier of the storage tiers.
piCloudInstanceId String
regionStorageTiers List<Property Map>
(List) An array of storage tiers supported in a region.

Supporting Types

GetPiStorageTiersRegionStorageTier

Description This property is required. string
(String) Description of the storage tier label.
Name This property is required. string
(String) Name of the storage tier.
State This property is required. string
(String) State of the storage tier, active or inactive.
Description This property is required. string
(String) Description of the storage tier label.
Name This property is required. string
(String) Name of the storage tier.
State This property is required. string
(String) State of the storage tier, active or inactive.
description This property is required. String
(String) Description of the storage tier label.
name This property is required. String
(String) Name of the storage tier.
state This property is required. String
(String) State of the storage tier, active or inactive.
description This property is required. string
(String) Description of the storage tier label.
name This property is required. string
(String) Name of the storage tier.
state This property is required. string
(String) State of the storage tier, active or inactive.
description This property is required. str
(String) Description of the storage tier label.
name This property is required. str
(String) Name of the storage tier.
state This property is required. str
(String) State of the storage tier, active or inactive.
description This property is required. String
(String) Description of the storage tier label.
name This property is required. String
(String) Name of the storage tier.
state This property is required. String
(String) State of the storage tier, active or inactive.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.