Oracle Cloud Infrastructure

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

getQuota

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testQuota = Output.Create(Oci.Limits.GetQuota.InvokeAsync(new Oci.Limits.GetQuotaArgs
        {
            QuotaId = oci_limits_quota.Test_quota.Id,
        }));
    }

}
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.GetQuota(ctx, &limits.GetQuotaArgs{
			QuotaId: oci_limits_quota.Test_quota.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_quota = oci.Limits.get_quota(quota_id=oci_limits_quota["test_quota"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testQuota = oci.Limits.getQuota({
    quotaId: oci_limits_quota.test_quota.id,
});

Coming soon!

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>
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]
func GetQuota(ctx *Context, args *GetQuotaArgs, opts ...InvokeOption) (*GetQuotaResult, error)
func GetQuotaOutput(ctx *Context, args *GetQuotaOutputArgs, opts ...InvokeOption) GetQuotaResultOutput

> 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)
}
public static CompletableFuture<GetQuotaResult> getQuota(GetQuotaArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Limits/getQuota:getQuota
  Arguments:
    # Arguments dictionary

The following arguments are supported:

QuotaId string

The OCID of the quota.

QuotaId string

The OCID of the quota.

quotaId String

The OCID of the quota.

quotaId string

The OCID of the quota.

quota_id str

The OCID of the quota.

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

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

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

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

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

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

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

Package Details

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

This Pulumi package is based on the oci Terraform Provider.