Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Limits.getQuotas
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testQuotas = oci.Limits.getQuotas({
compartmentId: tenancyOcid,
name: quotaName,
state: quotaState,
});
import pulumi
import pulumi_oci as oci
test_quotas = oci.Limits.get_quotas(compartment_id=tenancy_ocid,
name=quota_name,
state=quota_state)
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.GetQuotas(ctx, &limits.GetQuotasArgs{
CompartmentId: tenancyOcid,
Name: pulumi.StringRef(quotaName),
State: pulumi.StringRef(quotaState),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testQuotas = Oci.Limits.GetQuotas.Invoke(new()
{
CompartmentId = tenancyOcid,
Name = quotaName,
State = quotaState,
});
});
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.GetQuotasArgs;
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 testQuotas = LimitsFunctions.getQuotas(GetQuotasArgs.builder()
.compartmentId(tenancyOcid)
.name(quotaName)
.state(quotaState)
.build());
}
}
variables:
testQuotas:
fn::invoke:
Function: oci:Limits:getQuotas
Arguments:
compartmentId: ${tenancyOcid}
name: ${quotaName}
state: ${quotaState}
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:
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
List<Get
Quotas Filter> - Name string
- name
- State string
- Filters returned quotas based on the given state.
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
[]Get
Quotas Filter - Name string
- name
- State string
- Filters returned quotas based on the given state.
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
List<Get
Quotas Filter> - name String
- name
- state String
- Filters returned quotas based on the given state.
- compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
Get
Quotas Filter[] - 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
Sequence[limits.
Get Quotas Filter] - name str
- name
- state str
- Filters returned quotas based on the given state.
- compartment
Id 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:
- Compartment
Id 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<Get
Quotas Quota> - The list of quotas.
- Filters
List<Get
Quotas Filter> - 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 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
[]Get
Quotas Quota - The list of quotas.
- Filters
[]Get
Quotas Filter - 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 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<Get
Quotas Quota> - The list of quotas.
- filters
List<Get
Quotas Filter> - 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 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
Get
Quotas Quota[] - The list of quotas.
- filters
Get
Quotas Filter[] - 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
Sequence[limits.
Get Quotas Quota] - The list of quotas.
- filters
Sequence[limits.
Get Quotas Filter] - 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.
- compartment
Id 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
GetQuotasQuota
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- 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.
- 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.
- Is
Lock boolOverride - Locks
List<Get
Quotas Quota Lock> - Locks associated with this resource.
- 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.
- Time
Created string - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- 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.
- 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.
- Is
Lock boolOverride - Locks
[]Get
Quotas Quota Lock - Locks associated with this resource.
- 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.
- Time
Created string - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- 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.
- 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.
- is
Lock BooleanOverride - locks
List<Get
Quotas Quota Lock> - Locks associated with this resource.
- 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.
- time
Created String - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- {[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.
- {[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.
- is
Lock booleanOverride - locks
Get
Quotas Quota Lock[] - Locks associated with this resource.
- 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.
- time
Created 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).
- 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.
- 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_ booloverride - locks
Sequence[limits.
Get Quotas Quota Lock] - Locks associated with this resource.
- 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
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- 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.
- 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.
- is
Lock BooleanOverride - locks List<Property Map>
- Locks associated with this resource.
- 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.
- time
Created String - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
GetQuotasQuotaLock
- Message string
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- string
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- Time
Created string - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Type string
- Lock type.
- Message string
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- string
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- Time
Created string - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Type string
- Lock type.
- message String
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- String
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time
Created String - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- type String
- Lock type.
- message string
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- string
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time
Created string - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- type string
- Lock type.
- message str
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- str
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time_
created str - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- type str
- Lock type.
- message String
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- String
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time
Created String - Date and time the quota was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- type 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.