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

ibm.getResourceQuota

Explore with Pulumi AI

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

    Retrieve information for an existing quota for an IBM Cloud as a read-only data source. For more information, about resource quote, see ibmcloud resource quota.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const rsquotadata = ibm.getResourceQuota({
        name: "Trial Quota",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    rsquotadata = ibm.get_resource_quota(name="Trial Quota")
    
    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.GetResourceQuota(ctx, &ibm.GetResourceQuotaArgs{
    			Name: "Trial Quota",
    		}, 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 rsquotadata = Ibm.GetResourceQuota.Invoke(new()
        {
            Name = "Trial Quota",
        });
    
    });
    
    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.GetResourceQuotaArgs;
    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 rsquotadata = IbmFunctions.getResourceQuota(GetResourceQuotaArgs.builder()
                .name("Trial Quota")
                .build());
    
        }
    }
    
    variables:
      rsquotadata:
        fn::invoke:
          function: ibm:getResourceQuota
          arguments:
            name: Trial Quota
    

    Using getResourceQuota

    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 getResourceQuota(args: GetResourceQuotaArgs, opts?: InvokeOptions): Promise<GetResourceQuotaResult>
    function getResourceQuotaOutput(args: GetResourceQuotaOutputArgs, opts?: InvokeOptions): Output<GetResourceQuotaResult>
    def get_resource_quota(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetResourceQuotaResult
    def get_resource_quota_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetResourceQuotaResult]
    func GetResourceQuota(ctx *Context, args *GetResourceQuotaArgs, opts ...InvokeOption) (*GetResourceQuotaResult, error)
    func GetResourceQuotaOutput(ctx *Context, args *GetResourceQuotaOutputArgs, opts ...InvokeOption) GetResourceQuotaResultOutput

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

    public static class GetResourceQuota 
    {
        public static Task<GetResourceQuotaResult> InvokeAsync(GetResourceQuotaArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceQuotaResult> Invoke(GetResourceQuotaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceQuotaResult> getResourceQuota(GetResourceQuotaArgs args, InvokeOptions options)
    public static Output<GetResourceQuotaResult> getResourceQuota(GetResourceQuotaArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getResourceQuota:getResourceQuota
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the quota for the IBM Cloud resource. You can retrieve the value by executing the ibmcloud resource quotas command in the IBM Cloud CLI.
    Id string
    (String) The unique identifier of the quota.
    Name string
    The name of the quota for the IBM Cloud resource. You can retrieve the value by executing the ibmcloud resource quotas command in the IBM Cloud CLI.
    Id string
    (String) The unique identifier of the quota.
    name String
    The name of the quota for the IBM Cloud resource. You can retrieve the value by executing the ibmcloud resource quotas command in the IBM Cloud CLI.
    id String
    (String) The unique identifier of the quota.
    name string
    The name of the quota for the IBM Cloud resource. You can retrieve the value by executing the ibmcloud resource quotas command in the IBM Cloud CLI.
    id string
    (String) The unique identifier of the quota.
    name str
    The name of the quota for the IBM Cloud resource. You can retrieve the value by executing the ibmcloud resource quotas command in the IBM Cloud CLI.
    id str
    (String) The unique identifier of the quota.
    name String
    The name of the quota for the IBM Cloud resource. You can retrieve the value by executing the ibmcloud resource quotas command in the IBM Cloud CLI.
    id String
    (String) The unique identifier of the quota.

    getResourceQuota Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the quota.
    MaxAppInstanceMemory string
    (String) Defines the total memory of app instance.
    MaxApps double
    (String) Defines the total app limit.
    MaxInstancesPerApp double
    (String) Defines the total instances limit per app.
    MaxServiceInstances double
    (String) Defines the total service instances limit.
    Name string
    TotalAppMemory string
    (String) Defines the total memory for app.
    Type string
    (String) Type of the quota.
    VsiLimit double
    (String) Defines the VSI limit.
    Id string
    (String) The unique identifier of the quota.
    MaxAppInstanceMemory string
    (String) Defines the total memory of app instance.
    MaxApps float64
    (String) Defines the total app limit.
    MaxInstancesPerApp float64
    (String) Defines the total instances limit per app.
    MaxServiceInstances float64
    (String) Defines the total service instances limit.
    Name string
    TotalAppMemory string
    (String) Defines the total memory for app.
    Type string
    (String) Type of the quota.
    VsiLimit float64
    (String) Defines the VSI limit.
    id String
    (String) The unique identifier of the quota.
    maxAppInstanceMemory String
    (String) Defines the total memory of app instance.
    maxApps Double
    (String) Defines the total app limit.
    maxInstancesPerApp Double
    (String) Defines the total instances limit per app.
    maxServiceInstances Double
    (String) Defines the total service instances limit.
    name String
    totalAppMemory String
    (String) Defines the total memory for app.
    type String
    (String) Type of the quota.
    vsiLimit Double
    (String) Defines the VSI limit.
    id string
    (String) The unique identifier of the quota.
    maxAppInstanceMemory string
    (String) Defines the total memory of app instance.
    maxApps number
    (String) Defines the total app limit.
    maxInstancesPerApp number
    (String) Defines the total instances limit per app.
    maxServiceInstances number
    (String) Defines the total service instances limit.
    name string
    totalAppMemory string
    (String) Defines the total memory for app.
    type string
    (String) Type of the quota.
    vsiLimit number
    (String) Defines the VSI limit.
    id str
    (String) The unique identifier of the quota.
    max_app_instance_memory str
    (String) Defines the total memory of app instance.
    max_apps float
    (String) Defines the total app limit.
    max_instances_per_app float
    (String) Defines the total instances limit per app.
    max_service_instances float
    (String) Defines the total service instances limit.
    name str
    total_app_memory str
    (String) Defines the total memory for app.
    type str
    (String) Type of the quota.
    vsi_limit float
    (String) Defines the VSI limit.
    id String
    (String) The unique identifier of the quota.
    maxAppInstanceMemory String
    (String) Defines the total memory of app instance.
    maxApps Number
    (String) Defines the total app limit.
    maxInstancesPerApp Number
    (String) Defines the total instances limit per app.
    maxServiceInstances Number
    (String) Defines the total service instances limit.
    name String
    totalAppMemory String
    (String) Defines the total memory for app.
    type String
    (String) Type of the quota.
    vsiLimit Number
    (String) Defines the VSI limit.

    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