Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.UsageProxy.getResourceQuotas
Start a Neo task
Explain and create an oci.UsageProxy.getResourceQuotas resource
This data source provides the list of Resource Quotas in Oracle Cloud Infrastructure Usage Proxy service.
Returns the resource quota details under a tenancy
Important: Calls to this API will only succeed against the endpoint in the home region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testResourceQuotas = oci.UsageProxy.getResourceQuotas({
compartmentId: compartmentId,
serviceName: testService.name,
serviceEntitlement: resourceQuotaServiceEntitlement,
});
import pulumi
import pulumi_oci as oci
test_resource_quotas = oci.UsageProxy.get_resource_quotas(compartment_id=compartment_id,
service_name=test_service["name"],
service_entitlement=resource_quota_service_entitlement)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/usageproxy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := usageproxy.GetResourceQuotas(ctx, &usageproxy.GetResourceQuotasArgs{
CompartmentId: compartmentId,
ServiceName: testService.Name,
ServiceEntitlement: pulumi.StringRef(resourceQuotaServiceEntitlement),
}, 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 testResourceQuotas = Oci.UsageProxy.GetResourceQuotas.Invoke(new()
{
CompartmentId = compartmentId,
ServiceName = testService.Name,
ServiceEntitlement = resourceQuotaServiceEntitlement,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.UsageProxy.UsageProxyFunctions;
import com.pulumi.oci.UsageProxy.inputs.GetResourceQuotasArgs;
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 testResourceQuotas = UsageProxyFunctions.getResourceQuotas(GetResourceQuotasArgs.builder()
.compartmentId(compartmentId)
.serviceName(testService.name())
.serviceEntitlement(resourceQuotaServiceEntitlement)
.build());
}
}
variables:
testResourceQuotas:
fn::invoke:
function: oci:UsageProxy:getResourceQuotas
arguments:
compartmentId: ${compartmentId}
serviceName: ${testService.name}
serviceEntitlement: ${resourceQuotaServiceEntitlement}
Using getResourceQuotas
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 getResourceQuotas(args: GetResourceQuotasArgs, opts?: InvokeOptions): Promise<GetResourceQuotasResult>
function getResourceQuotasOutput(args: GetResourceQuotasOutputArgs, opts?: InvokeOptions): Output<GetResourceQuotasResult>def get_resource_quotas(compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetResourceQuotasFilter]] = None,
service_entitlement: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourceQuotasResult
def get_resource_quotas_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetResourceQuotasFilterArgs]]]] = None,
service_entitlement: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResourceQuotasResult]func GetResourceQuotas(ctx *Context, args *GetResourceQuotasArgs, opts ...InvokeOption) (*GetResourceQuotasResult, error)
func GetResourceQuotasOutput(ctx *Context, args *GetResourceQuotasOutputArgs, opts ...InvokeOption) GetResourceQuotasResultOutput> Note: This function is named GetResourceQuotas in the Go SDK.
public static class GetResourceQuotas
{
public static Task<GetResourceQuotasResult> InvokeAsync(GetResourceQuotasArgs args, InvokeOptions? opts = null)
public static Output<GetResourceQuotasResult> Invoke(GetResourceQuotasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourceQuotasResult> getResourceQuotas(GetResourceQuotasArgs args, InvokeOptions options)
public static Output<GetResourceQuotasResult> getResourceQuotas(GetResourceQuotasArgs args, InvokeOptions options)
fn::invoke:
function: oci:UsageProxy/getResourceQuotas:getResourceQuotas
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the root compartment.
- Service
Name string - Service Name.
- Filters
List<Get
Resource Quotas Filter> - Service
Entitlement string - Service entitlement Id.
- Compartment
Id string - The OCID of the root compartment.
- Service
Name string - Service Name.
- Filters
[]Get
Resource Quotas Filter - Service
Entitlement string - Service entitlement Id.
- compartment
Id String - The OCID of the root compartment.
- service
Name String - Service Name.
- filters
List<Get
Resource Quotas Filter> - service
Entitlement String - Service entitlement Id.
- compartment
Id string - The OCID of the root compartment.
- service
Name string - Service Name.
- filters
Get
Resource Quotas Filter[] - service
Entitlement string - Service entitlement Id.
- compartment_
id str - The OCID of the root compartment.
- service_
name str - Service Name.
- filters
Sequence[Get
Resource Quotas Filter] - service_
entitlement str - Service entitlement Id.
- compartment
Id String - The OCID of the root compartment.
- service
Name String - Service Name.
- filters List<Property Map>
- service
Entitlement String - Service entitlement Id.
getResourceQuotas Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Quotum List<GetCollections Resource Quotas Resource Quotum Collection> - The list of resource_quotum_collection.
- Service
Name string - Filters
List<Get
Resource Quotas Filter> - Service
Entitlement string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Quotum []GetCollections Resource Quotas Resource Quotum Collection - The list of resource_quotum_collection.
- Service
Name string - Filters
[]Get
Resource Quotas Filter - Service
Entitlement string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- resource
Quotum List<GetCollections Resource Quotas Resource Quotum Collection> - The list of resource_quotum_collection.
- service
Name String - filters
List<Get
Resource Quotas Filter> - service
Entitlement String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- resource
Quotum GetCollections Resource Quotas Resource Quotum Collection[] - The list of resource_quotum_collection.
- service
Name string - filters
Get
Resource Quotas Filter[] - service
Entitlement string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- resource_
quotum_ Sequence[Getcollections Resource Quotas Resource Quotum Collection] - The list of resource_quotum_collection.
- service_
name str - filters
Sequence[Get
Resource Quotas Filter] - service_
entitlement str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- resource
Quotum List<Property Map>Collections - The list of resource_quotum_collection.
- service
Name String - filters List<Property Map>
- service
Entitlement String
Supporting Types
GetResourceQuotasFilter
GetResourceQuotasResourceQuotumCollection
- Is
Allowed bool - Used to indicate if further quota consumption isAllowed.
- Items
List<Get
Resource Quotas Resource Quotum Collection Item> - The list of resource quota details.
- Is
Allowed bool - Used to indicate if further quota consumption isAllowed.
- Items
[]Get
Resource Quotas Resource Quotum Collection Item - The list of resource quota details.
- is
Allowed Boolean - Used to indicate if further quota consumption isAllowed.
- items
List<Get
Resource Quotas Resource Quotum Collection Item> - The list of resource quota details.
- is
Allowed boolean - Used to indicate if further quota consumption isAllowed.
- items
Get
Resource Quotas Resource Quotum Collection Item[] - The list of resource quota details.
- is_
allowed bool - Used to indicate if further quota consumption isAllowed.
- items
Sequence[Get
Resource Quotas Resource Quotum Collection Item] - The list of resource quota details.
- is
Allowed Boolean - Used to indicate if further quota consumption isAllowed.
- items List<Property Map>
- The list of resource quota details.
GetResourceQuotasResourceQuotumCollectionItem
- Affected
Resource string - The affected resource name.
- Balance double
- The quota balance.
- Is
Allowed bool - Used to indicate if further quota consumption isAllowed.
- Is
Dependency bool - Used to indicate any resource dependencies.
- Is
Overage bool - Used to indicate if overages are incurred.
- Name string
- The resource name.
- Purchased
Limit double - The purchased quota limit.
- Service string
- The service name.
- Affected
Resource string - The affected resource name.
- Balance float64
- The quota balance.
- Is
Allowed bool - Used to indicate if further quota consumption isAllowed.
- Is
Dependency bool - Used to indicate any resource dependencies.
- Is
Overage bool - Used to indicate if overages are incurred.
- Name string
- The resource name.
- Purchased
Limit float64 - The purchased quota limit.
- Service string
- The service name.
- affected
Resource String - The affected resource name.
- balance Double
- The quota balance.
- is
Allowed Boolean - Used to indicate if further quota consumption isAllowed.
- is
Dependency Boolean - Used to indicate any resource dependencies.
- is
Overage Boolean - Used to indicate if overages are incurred.
- name String
- The resource name.
- purchased
Limit Double - The purchased quota limit.
- service String
- The service name.
- affected
Resource string - The affected resource name.
- balance number
- The quota balance.
- is
Allowed boolean - Used to indicate if further quota consumption isAllowed.
- is
Dependency boolean - Used to indicate any resource dependencies.
- is
Overage boolean - Used to indicate if overages are incurred.
- name string
- The resource name.
- purchased
Limit number - The purchased quota limit.
- service string
- The service name.
- affected_
resource str - The affected resource name.
- balance float
- The quota balance.
- is_
allowed bool - Used to indicate if further quota consumption isAllowed.
- is_
dependency bool - Used to indicate any resource dependencies.
- is_
overage bool - Used to indicate if overages are incurred.
- name str
- The resource name.
- purchased_
limit float - The purchased quota limit.
- service str
- The service name.
- affected
Resource String - The affected resource name.
- balance Number
- The quota balance.
- is
Allowed Boolean - Used to indicate if further quota consumption isAllowed.
- is
Dependency Boolean - Used to indicate any resource dependencies.
- is
Overage Boolean - Used to indicate if overages are incurred.
- name String
- The resource name.
- purchased
Limit Number - The purchased quota limit.
- service String
- The service name.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
