ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getResourceQuota
Explore with Pulumi AI
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.
- Max
App stringInstance Memory - (String) Defines the total memory of app instance.
- Max
Apps double - (String) Defines the total app limit.
- Max
Instances doublePer App - (String) Defines the total instances limit per app.
- Max
Service doubleInstances - (String) Defines the total service instances limit.
- Name string
- Total
App stringMemory - (String) Defines the total memory for app.
- Type string
- (String) Type of the quota.
- Vsi
Limit double - (String) Defines the VSI limit.
- Id string
- (String) The unique identifier of the quota.
- Max
App stringInstance Memory - (String) Defines the total memory of app instance.
- Max
Apps float64 - (String) Defines the total app limit.
- Max
Instances float64Per App - (String) Defines the total instances limit per app.
- Max
Service float64Instances - (String) Defines the total service instances limit.
- Name string
- Total
App stringMemory - (String) Defines the total memory for app.
- Type string
- (String) Type of the quota.
- Vsi
Limit float64 - (String) Defines the VSI limit.
- id String
- (String) The unique identifier of the quota.
- max
App StringInstance Memory - (String) Defines the total memory of app instance.
- max
Apps Double - (String) Defines the total app limit.
- max
Instances DoublePer App - (String) Defines the total instances limit per app.
- max
Service DoubleInstances - (String) Defines the total service instances limit.
- name String
- total
App StringMemory - (String) Defines the total memory for app.
- type String
- (String) Type of the quota.
- vsi
Limit Double - (String) Defines the VSI limit.
- id string
- (String) The unique identifier of the quota.
- max
App stringInstance Memory - (String) Defines the total memory of app instance.
- max
Apps number - (String) Defines the total app limit.
- max
Instances numberPer App - (String) Defines the total instances limit per app.
- max
Service numberInstances - (String) Defines the total service instances limit.
- name string
- total
App stringMemory - (String) Defines the total memory for app.
- type string
- (String) Type of the quota.
- vsi
Limit number - (String) Defines the VSI limit.
- id str
- (String) The unique identifier of the quota.
- max_
app_ strinstance_ memory - (String) Defines the total memory of app instance.
- max_
apps float - (String) Defines the total app limit.
- max_
instances_ floatper_ app - (String) Defines the total instances limit per app.
- max_
service_ floatinstances - (String) Defines the total service instances limit.
- name str
- total_
app_ strmemory - (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.
- max
App StringInstance Memory - (String) Defines the total memory of app instance.
- max
Apps Number - (String) Defines the total app limit.
- max
Instances NumberPer App - (String) Defines the total instances limit per app.
- max
Service NumberInstances - (String) Defines the total service instances limit.
- name String
- total
App StringMemory - (String) Defines the total memory for app.
- type String
- (String) Type of the quota.
- vsi
Limit 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.