1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Limits
  5. getQuota
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Limits.getQuota

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides details about a specific Quota resource in Oracle Cloud Infrastructure Limits service.

Gets the quota for the OCID specified.

Example Usage

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

const testQuota = oci.Limits.getQuota({
    quotaId: testQuotaOciLimitsQuota.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_quota = oci.Limits.get_quota(quota_id=test_quota_oci_limits_quota["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/limits"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := limits.GetQuota(ctx, &limits.GetQuotaArgs{
			QuotaId: testQuotaOciLimitsQuota.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testQuota = Oci.Limits.GetQuota.Invoke(new()
    {
        QuotaId = testQuotaOciLimitsQuota.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Limits.LimitsFunctions;
import com.pulumi.oci.Limits.inputs.GetQuotaArgs;
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 testQuota = LimitsFunctions.getQuota(GetQuotaArgs.builder()
            .quotaId(testQuotaOciLimitsQuota.id())
            .build());

    }
}
Copy
variables:
  testQuota:
    fn::invoke:
      function: oci:Limits:getQuota
      arguments:
        quotaId: ${testQuotaOciLimitsQuota.id}
Copy

Using getQuota

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 getQuota(args: GetQuotaArgs, opts?: InvokeOptions): Promise<GetQuotaResult>
function getQuotaOutput(args: GetQuotaOutputArgs, opts?: InvokeOptions): Output<GetQuotaResult>
Copy
def get_quota(quota_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetQuotaResult
def get_quota_output(quota_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetQuotaResult]
Copy
func GetQuota(ctx *Context, args *GetQuotaArgs, opts ...InvokeOption) (*GetQuotaResult, error)
func GetQuotaOutput(ctx *Context, args *GetQuotaOutputArgs, opts ...InvokeOption) GetQuotaResultOutput
Copy

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

public static class GetQuota 
{
    public static Task<GetQuotaResult> InvokeAsync(GetQuotaArgs args, InvokeOptions? opts = null)
    public static Output<GetQuotaResult> Invoke(GetQuotaInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetQuotaResult> getQuota(GetQuotaArgs args, InvokeOptions options)
public static Output<GetQuotaResult> getQuota(GetQuotaArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Limits/getQuota:getQuota
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

QuotaId This property is required. string
The OCID of the quota.
QuotaId This property is required. string
The OCID of the quota.
quotaId This property is required. String
The OCID of the quota.
quotaId This property is required. string
The OCID of the quota.
quota_id This property is required. str
The OCID of the quota.
quotaId This property is required. String
The OCID of the quota.

getQuota Result

The following output properties are available:

CompartmentId string
The OCID of the compartment containing the resource this quota applies to.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
The description you assign to the quota.
FreeformTags Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
The OCID of the quota.
IsLockOverride bool
Locks List<GetQuotaLock>
Locks associated with this resource.
Name string
The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
QuotaId string
State string
The quota's current state.
Statements List<string>
An array of one or more quota statements written in the declarative quota statement language.
TimeCreated string
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
CompartmentId string
The OCID of the compartment containing the resource this quota applies to.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
The description you assign to the quota.
FreeformTags map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
The OCID of the quota.
IsLockOverride bool
Locks []GetQuotaLock
Locks associated with this resource.
Name string
The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
QuotaId string
State string
The quota's current state.
Statements []string
An array of one or more quota statements written in the declarative quota statement language.
TimeCreated string
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartmentId String
The OCID of the compartment containing the resource this quota applies to.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
The description you assign to the quota.
freeformTags Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
The OCID of the quota.
isLockOverride Boolean
locks List<GetQuotaLock>
Locks associated with this resource.
name String
The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
quotaId String
state String
The quota's current state.
statements List<String>
An array of one or more quota statements written in the declarative quota statement language.
timeCreated String
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartmentId string
The OCID of the compartment containing the resource this quota applies to.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description string
The description you assign to the quota.
freeformTags {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id string
The OCID of the quota.
isLockOverride boolean
locks GetQuotaLock[]
Locks associated with this resource.
name string
The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
quotaId string
state string
The quota's current state.
statements string[]
An array of one or more quota statements written in the declarative quota statement language.
timeCreated string
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartment_id str
The OCID of the compartment containing the resource this quota applies to.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description str
The description you assign to the quota.
freeform_tags Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id str
The OCID of the quota.
is_lock_override bool
locks Sequence[limits.GetQuotaLock]
Locks associated with this resource.
name str
The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
quota_id str
state str
The quota's current state.
statements Sequence[str]
An array of one or more quota statements written in the declarative quota statement language.
time_created str
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartmentId String
The OCID of the compartment containing the resource this quota applies to.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
The description you assign to the quota.
freeformTags Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
The OCID of the quota.
isLockOverride Boolean
locks List<Property Map>
Locks associated with this resource.
name String
The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
quotaId String
state String
The quota's current state.
statements List<String>
An array of one or more quota statements written in the declarative quota statement language.
timeCreated String
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

Supporting Types

GetQuotaLock

Message This property is required. string
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
RelatedResourceId This property is required. string
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
TimeCreated This property is required. string
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
Type This property is required. string
Lock type.
Message This property is required. string
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
RelatedResourceId This property is required. string
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
TimeCreated This property is required. string
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
Type This property is required. string
Lock type.
message This property is required. String
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
relatedResourceId This property is required. String
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
timeCreated This property is required. String
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
type This property is required. String
Lock type.
message This property is required. string
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
relatedResourceId This property is required. string
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
timeCreated This property is required. string
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
type This property is required. string
Lock type.
message This property is required. str
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
related_resource_id This property is required. str
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
time_created This property is required. str
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
type This property is required. str
Lock type.
message This property is required. String
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
relatedResourceId This property is required. String
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
timeCreated This property is required. String
Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
type This property is required. String
Lock type.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi