Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.UsageProxy.getResourceQuotas
Explore with Pulumi AI
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/v2/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[_usageproxy.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[_usageproxy.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 dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the root compartment.
- Service
Name This property is required. string - Service Name.
- Filters
Changes to this property will trigger replacement.
Resource Quotas Filter> - Service
Entitlement string - Service entitlement Id.
- Compartment
Id This property is required. string - The OCID of the root compartment.
- Service
Name This property is required. string - Service Name.
- Filters
Changes to this property will trigger replacement.
Resource Quotas Filter - Service
Entitlement string - Service entitlement Id.
- compartment
Id This property is required. String - The OCID of the root compartment.
- service
Name This property is required. String - Service Name.
- filters
Changes to this property will trigger replacement.
Resource Quotas Filter> - service
Entitlement String - Service entitlement Id.
- compartment
Id This property is required. string - The OCID of the root compartment.
- service
Name This property is required. string - Service Name.
- filters
Changes to this property will trigger replacement.
Resource Quotas Filter[] - service
Entitlement string - Service entitlement Id.
- compartment_
id This property is required. str - The OCID of the root compartment.
- service_
name This property is required. str - Service Name.
- filters
Changes to this property will trigger replacement.
Get Resource Quotas Filter] - service_
entitlement str - Service entitlement Id.
- compartment
Id This property is required. String - The OCID of the root compartment.
- service
Name This property is required. String - Service Name.
- filters
Changes to this property will trigger replacement.
- 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[usageproxy.collections Get Resource Quotas Resource Quotum Collection] - The list of resource_quotum_collection.
- service_
name str - filters
Sequence[usageproxy.
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 This property is required. bool - Used to indicate if further quota consumption isAllowed.
- Items
This property is required. List<GetResource Quotas Resource Quotum Collection Item> - The list of resource quota details.
- Is
Allowed This property is required. bool - Used to indicate if further quota consumption isAllowed.
- Items
This property is required. []GetResource Quotas Resource Quotum Collection Item - The list of resource quota details.
- is
Allowed This property is required. Boolean - Used to indicate if further quota consumption isAllowed.
- items
This property is required. List<GetResource Quotas Resource Quotum Collection Item> - The list of resource quota details.
- is
Allowed This property is required. boolean - Used to indicate if further quota consumption isAllowed.
- items
This property is required. GetResource Quotas Resource Quotum Collection Item[] - The list of resource quota details.
- is_
allowed This property is required. bool - Used to indicate if further quota consumption isAllowed.
- items
This property is required. Sequence[usageproxy.Get Resource Quotas Resource Quotum Collection Item] - The list of resource quota details.
- is
Allowed This property is required. Boolean - Used to indicate if further quota consumption isAllowed.
- items
This property is required. List<Property Map> - The list of resource quota details.
GetResourceQuotasResourceQuotumCollectionItem
- Affected
Resource This property is required. string - The affected resource name.
- Balance
This property is required. double - The quota balance.
- Is
Allowed This property is required. bool - Used to indicate if further quota consumption isAllowed.
- Is
Dependency This property is required. bool - Used to indicate any resource dependencies.
- Is
Overage This property is required. bool - Used to indicate if overages are incurred.
- Name
This property is required. string - The resource name.
- Purchased
Limit This property is required. double - The purchased quota limit.
- Service
This property is required. string - The service name.
- Affected
Resource This property is required. string - The affected resource name.
- Balance
This property is required. float64 - The quota balance.
- Is
Allowed This property is required. bool - Used to indicate if further quota consumption isAllowed.
- Is
Dependency This property is required. bool - Used to indicate any resource dependencies.
- Is
Overage This property is required. bool - Used to indicate if overages are incurred.
- Name
This property is required. string - The resource name.
- Purchased
Limit This property is required. float64 - The purchased quota limit.
- Service
This property is required. string - The service name.
- affected
Resource This property is required. String - The affected resource name.
- balance
This property is required. Double - The quota balance.
- is
Allowed This property is required. Boolean - Used to indicate if further quota consumption isAllowed.
- is
Dependency This property is required. Boolean - Used to indicate any resource dependencies.
- is
Overage This property is required. Boolean - Used to indicate if overages are incurred.
- name
This property is required. String - The resource name.
- purchased
Limit This property is required. Double - The purchased quota limit.
- service
This property is required. String - The service name.
- affected
Resource This property is required. string - The affected resource name.
- balance
This property is required. number - The quota balance.
- is
Allowed This property is required. boolean - Used to indicate if further quota consumption isAllowed.
- is
Dependency This property is required. boolean - Used to indicate any resource dependencies.
- is
Overage This property is required. boolean - Used to indicate if overages are incurred.
- name
This property is required. string - The resource name.
- purchased
Limit This property is required. number - The purchased quota limit.
- service
This property is required. string - The service name.
- affected_
resource This property is required. str - The affected resource name.
- balance
This property is required. float - The quota balance.
- is_
allowed This property is required. bool - Used to indicate if further quota consumption isAllowed.
- is_
dependency This property is required. bool - Used to indicate any resource dependencies.
- is_
overage This property is required. bool - Used to indicate if overages are incurred.
- name
This property is required. str - The resource name.
- purchased_
limit This property is required. float - The purchased quota limit.
- service
This property is required. str - The service name.
- affected
Resource This property is required. String - The affected resource name.
- balance
This property is required. Number - The quota balance.
- is
Allowed This property is required. Boolean - Used to indicate if further quota consumption isAllowed.
- is
Dependency This property is required. Boolean - Used to indicate any resource dependencies.
- is
Overage This property is required. Boolean - Used to indicate if overages are incurred.
- name
This property is required. String - The resource name.
- purchased
Limit This property is required. Number - The purchased quota limit.
- service
This property is required. String - The service name.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.