Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getQuotas

This data source provides the list of Quotas in Oracle Cloud Infrastructure Limits service.

Lists all quotas on resources from the given compartment.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testQuotas = Output.Create(Oci.Limits.GetQuotas.InvokeAsync(new Oci.Limits.GetQuotasArgs
        {
            CompartmentId = @var.Tenancy_ocid,
            Name = @var.Quota_name,
            State = @var.Quota_state,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Limits.GetQuotas(ctx, &limits.GetQuotasArgs{
			CompartmentId: _var.Tenancy_ocid,
			Name:          pulumi.StringRef(_var.Quota_name),
			State:         pulumi.StringRef(_var.Quota_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_quotas = oci.Limits.get_quotas(compartment_id=var["tenancy_ocid"],
    name=var["quota_name"],
    state=var["quota_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testQuotas = oci.Limits.getQuotas({
    compartmentId: _var.tenancy_ocid,
    name: _var.quota_name,
    state: _var.quota_state,
});

Coming soon!

Using getQuotas

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 getQuotas(args: GetQuotasArgs, opts?: InvokeOptions): Promise<GetQuotasResult>
function getQuotasOutput(args: GetQuotasOutputArgs, opts?: InvokeOptions): Output<GetQuotasResult>
def get_quotas(compartment_id: Optional[str] = None,
               filters: Optional[Sequence[_limits.GetQuotasFilter]] = None,
               name: Optional[str] = None,
               state: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetQuotasResult
def get_quotas_output(compartment_id: Optional[pulumi.Input[str]] = None,
               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_limits.GetQuotasFilterArgs]]]] = None,
               name: Optional[pulumi.Input[str]] = None,
               state: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetQuotasResult]
func GetQuotas(ctx *Context, args *GetQuotasArgs, opts ...InvokeOption) (*GetQuotasResult, error)
func GetQuotasOutput(ctx *Context, args *GetQuotasOutputArgs, opts ...InvokeOption) GetQuotasResultOutput

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

public static class GetQuotas 
{
    public static Task<GetQuotasResult> InvokeAsync(GetQuotasArgs args, InvokeOptions? opts = null)
    public static Output<GetQuotasResult> Invoke(GetQuotasInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQuotasResult> getQuotas(GetQuotasArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Limits/getQuotas:getQuotas
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

Filters List<GetQuotasFilter>
Name string

name

State string

Filters returned quotas based on the given state.

CompartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

Filters []GetQuotasFilter
Name string

name

State string

Filters returned quotas based on the given state.

compartmentId String

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

filters List<GetQuotasFilter>
name String

name

state String

Filters returned quotas based on the given state.

compartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

filters GetQuotasFilter[]
name string

name

state string

Filters returned quotas based on the given state.

compartment_id str

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

filters GetQuotasFilter]
name str

name

state str

Filters returned quotas based on the given state.

compartmentId String

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

filters List<Property Map>
name String

name

state String

Filters returned quotas based on the given state.

getQuotas Result

The following output properties are available:

CompartmentId string

The OCID of the compartment containing the resource this quota applies to.

Id string

The provider-assigned unique ID for this managed resource.

Quotas List<GetQuotasQuota>

The list of quotas.

Filters List<GetQuotasFilter>
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.

State string

The quota's current state.

CompartmentId string

The OCID of the compartment containing the resource this quota applies to.

Id string

The provider-assigned unique ID for this managed resource.

Quotas []GetQuotasQuota

The list of quotas.

Filters []GetQuotasFilter
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.

State string

The quota's current state.

compartmentId String

The OCID of the compartment containing the resource this quota applies to.

id String

The provider-assigned unique ID for this managed resource.

quotas List<GetQuotasQuota>

The list of quotas.

filters List<GetQuotasFilter>
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.

state String

The quota's current state.

compartmentId string

The OCID of the compartment containing the resource this quota applies to.

id string

The provider-assigned unique ID for this managed resource.

quotas GetQuotasQuota[]

The list of quotas.

filters GetQuotasFilter[]
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.

state string

The quota's current state.

compartment_id str

The OCID of the compartment containing the resource this quota applies to.

id str

The provider-assigned unique ID for this managed resource.

quotas GetQuotasQuota]

The list of quotas.

filters GetQuotasFilter]
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.

state str

The quota's current state.

compartmentId String

The OCID of the compartment containing the resource this quota applies to.

id String

The provider-assigned unique ID for this managed resource.

quotas List<Property Map>

The list of quotas.

filters List<Property Map>
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.

state String

The quota's current state.

Supporting Types

GetQuotasFilter

Name string

name

Values List<string>
Regex bool
Name string

name

Values []string
Regex bool
name String

name

values List<String>
regex Boolean
name string

name

values string[]
regex boolean
name str

name

values Sequence[str]
regex bool
name String

name

values List<String>
regex Boolean

GetQuotasQuota

CompartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

DefinedTags Dictionary<string, object>

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, object>

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.

Name string

name

State string

Filters returned quotas based on the given 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 parent compartment (remember that the tenancy is simply the root compartment).

DefinedTags map[string]interface{}

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]interface{}

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.

Name string

name

State string

Filters returned quotas based on the given 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 parent compartment (remember that the tenancy is simply the root compartment).

definedTags Map<String,Object>

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,Object>

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.

name String

name

state String

Filters returned quotas based on the given 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 parent compartment (remember that the tenancy is simply the root compartment).

definedTags {[key: string]: any}

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]: any}

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.

name string

name

state string

Filters returned quotas based on the given 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 parent compartment (remember that the tenancy is simply the root compartment).

defined_tags Mapping[str, Any]

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, Any]

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.

name str

name

state str

Filters returned quotas based on the given 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 parent compartment (remember that the tenancy is simply the root compartment).

definedTags Map<Any>

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<Any>

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.

name String

name

state String

Filters returned quotas based on the given 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

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.