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

ibm.getPiStorageTiers

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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>",
    });
    
    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>")
    
    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
    	})
    }
    
    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>",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      piStorageTiers:
        fn::invoke:
          function: ibm:getPiStorageTiers
          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 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>
    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]
    func GetPiStorageTiers(ctx *Context, args *GetPiStorageTiersArgs, opts ...InvokeOption) (*GetPiStorageTiersResult, error)
    func GetPiStorageTiersOutput(ctx *Context, args *GetPiStorageTiersOutputArgs, opts ...InvokeOption) GetPiStorageTiersResultOutput

    > 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)
    }
    public static CompletableFuture<GetPiStorageTiersResult> getPiStorageTiers(GetPiStorageTiersArgs args, InvokeOptions options)
    public static Output<GetPiStorageTiersResult> getPiStorageTiers(GetPiStorageTiersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiStorageTiers:getPiStorageTiers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    Id string
    (String) The unique identifier of the storage tiers.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    Id string
    (String) The unique identifier of the storage tiers.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    id String
    (String) The unique identifier of the storage tiers.
    piCloudInstanceId 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 str
    The GUID of the service instance associated with an account.
    id str
    (String) The unique identifier of the storage tiers.
    piCloudInstanceId 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 string
    (String) Description of the storage tier label.
    Name string
    (String) Name of the storage tier.
    State string
    (String) State of the storage tier, active or inactive.
    Description string
    (String) Description of the storage tier label.
    Name string
    (String) Name of the storage tier.
    State string
    (String) State of the storage tier, active or inactive.
    description String
    (String) Description of the storage tier label.
    name String
    (String) Name of the storage tier.
    state String
    (String) State of the storage tier, active or inactive.
    description string
    (String) Description of the storage tier label.
    name string
    (String) Name of the storage tier.
    state string
    (String) State of the storage tier, active or inactive.
    description str
    (String) Description of the storage tier label.
    name str
    (String) Name of the storage tier.
    state str
    (String) State of the storage tier, active or inactive.
    description String
    (String) Description of the storage tier label.
    name String
    (String) Name of the storage tier.
    state 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud