oci.Limits.getLimitDefinitions
Explore with Pulumi AI
This data source provides the list of Limit Definitions in Oracle Cloud Infrastructure Limits service.
Includes a list of resource limits that are currently supported. If subscription Id is provided, then only resource limits supported by subscription will be returned If the ‘areQuotasSupported’ property is true, you can create quota policies on top of this limit at the compartment level.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLimitDefinitions = oci.Limits.getLimitDefinitions({
compartmentId: tenancyOcid,
name: limitDefinitionName,
serviceName: testService.name,
subscriptionId: subscriptionOcid,
});
import pulumi
import pulumi_oci as oci
test_limit_definitions = oci.Limits.get_limit_definitions(compartment_id=tenancy_ocid,
name=limit_definition_name,
service_name=test_service["name"],
subscription_id=subscription_ocid)
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.GetLimitDefinitions(ctx, &limits.GetLimitDefinitionsArgs{
CompartmentId: tenancyOcid,
Name: pulumi.StringRef(limitDefinitionName),
ServiceName: pulumi.StringRef(testService.Name),
SubscriptionId: pulumi.StringRef(subscriptionOcid),
}, 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 testLimitDefinitions = Oci.Limits.GetLimitDefinitions.Invoke(new()
{
CompartmentId = tenancyOcid,
Name = limitDefinitionName,
ServiceName = testService.Name,
SubscriptionId = subscriptionOcid,
});
});
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.GetLimitDefinitionsArgs;
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 testLimitDefinitions = LimitsFunctions.getLimitDefinitions(GetLimitDefinitionsArgs.builder()
.compartmentId(tenancyOcid)
.name(limitDefinitionName)
.serviceName(testService.name())
.subscriptionId(subscriptionOcid)
.build());
}
}
variables:
testLimitDefinitions:
fn::invoke:
Function: oci:Limits:getLimitDefinitions
Arguments:
compartmentId: ${tenancyOcid}
name: ${limitDefinitionName}
serviceName: ${testService.name}
subscriptionId: ${subscriptionOcid}
Using getLimitDefinitions
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 getLimitDefinitions(args: GetLimitDefinitionsArgs, opts?: InvokeOptions): Promise<GetLimitDefinitionsResult>
function getLimitDefinitionsOutput(args: GetLimitDefinitionsOutputArgs, opts?: InvokeOptions): Output<GetLimitDefinitionsResult>
def get_limit_definitions(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_limits.GetLimitDefinitionsFilter]] = None,
name: Optional[str] = None,
service_name: Optional[str] = None,
subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLimitDefinitionsResult
def get_limit_definitions_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_limits.GetLimitDefinitionsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLimitDefinitionsResult]
func GetLimitDefinitions(ctx *Context, args *GetLimitDefinitionsArgs, opts ...InvokeOption) (*GetLimitDefinitionsResult, error)
func GetLimitDefinitionsOutput(ctx *Context, args *GetLimitDefinitionsOutputArgs, opts ...InvokeOption) GetLimitDefinitionsResultOutput
> Note: This function is named GetLimitDefinitions
in the Go SDK.
public static class GetLimitDefinitions
{
public static Task<GetLimitDefinitionsResult> InvokeAsync(GetLimitDefinitionsArgs args, InvokeOptions? opts = null)
public static Output<GetLimitDefinitionsResult> Invoke(GetLimitDefinitionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLimitDefinitionsResult> getLimitDefinitions(GetLimitDefinitionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Limits/getLimitDefinitions:getLimitDefinitions
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
Limit Definitions Filter> - Name string
- Optional field, filter for a specific resource limit.
- Service
Name string - The target service name.
- Subscription
Id string - The OCID of the subscription assigned to tenant
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
[]Get
Limit Definitions Filter - Name string
- Optional field, filter for a specific resource limit.
- Service
Name string - The target service name.
- Subscription
Id string - The OCID of the subscription assigned to tenant
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
List<Get
Limit Definitions Filter> - name String
- Optional field, filter for a specific resource limit.
- service
Name String - The target service name.
- subscription
Id String - The OCID of the subscription assigned to tenant
- compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
Get
Limit Definitions Filter[] - name string
- Optional field, filter for a specific resource limit.
- service
Name string - The target service name.
- subscription
Id string - The OCID of the subscription assigned to tenant
- compartment_
id str - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
Sequence[limits.
Get Limit Definitions Filter] - name str
- Optional field, filter for a specific resource limit.
- service_
name str - The target service name.
- subscription_
id str - The OCID of the subscription assigned to tenant
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters List<Property Map>
- name String
- Optional field, filter for a specific resource limit.
- service
Name String - The target service name.
- subscription
Id String - The OCID of the subscription assigned to tenant
getLimitDefinitions Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Limit
Definitions List<GetLimit Definitions Limit Definition> - The list of limit_definitions.
- Filters
List<Get
Limit Definitions Filter> - Name string
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- Service
Name string - The service name of the limit.
- Subscription
Id string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Limit
Definitions []GetLimit Definitions Limit Definition - The list of limit_definitions.
- Filters
[]Get
Limit Definitions Filter - Name string
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- Service
Name string - The service name of the limit.
- Subscription
Id string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- limit
Definitions List<GetLimit Definitions Limit Definition> - The list of limit_definitions.
- filters
List<Get
Limit Definitions Filter> - name String
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- service
Name String - The service name of the limit.
- subscription
Id String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- limit
Definitions GetLimit Definitions Limit Definition[] - The list of limit_definitions.
- filters
Get
Limit Definitions Filter[] - name string
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- service
Name string - The service name of the limit.
- subscription
Id string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- limit_
definitions Sequence[limits.Get Limit Definitions Limit Definition] - The list of limit_definitions.
- filters
Sequence[limits.
Get Limit Definitions Filter] - name str
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- service_
name str - The service name of the limit.
- subscription_
id str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- limit
Definitions List<Property Map> - The list of limit_definitions.
- filters List<Property Map>
- name String
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- service
Name String - The service name of the limit.
- subscription
Id String
Supporting Types
GetLimitDefinitionsFilter
GetLimitDefinitionsLimitDefinition
- Are
Quotas boolSupported - If true, quota policies can be created on top of this resource limit.
- Description string
- The limit description.
- Is
Deprecated bool - Indicates if the limit has been deprecated.
- Is
Dynamic bool - The limit for this resource has a dynamic value that is based on consumption across all Oracle Cloud Infrastructure services.
- Is
Eligible boolFor Limit Increase - Indicates if the customer can request a limit increase for this resource.
- Is
Resource boolAvailability Supported - Reflects whether or not the GetResourceAvailability API is supported for this limit. If not, the API returns an empty JSON response.
- Name string
- Optional field, filter for a specific resource limit.
- Scope
Type string - Reflects the scope of the resource limit, whether Global (across all regions), regional, or availability domain-specific.
- Service
Name string - The target service name.
- Supported
Quota List<string>Families - Supported quota family names for creation of quota policy.
- Supported
Subscriptions List<string> - An array of subscription types supported by the limit. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
- Are
Quotas boolSupported - If true, quota policies can be created on top of this resource limit.
- Description string
- The limit description.
- Is
Deprecated bool - Indicates if the limit has been deprecated.
- Is
Dynamic bool - The limit for this resource has a dynamic value that is based on consumption across all Oracle Cloud Infrastructure services.
- Is
Eligible boolFor Limit Increase - Indicates if the customer can request a limit increase for this resource.
- Is
Resource boolAvailability Supported - Reflects whether or not the GetResourceAvailability API is supported for this limit. If not, the API returns an empty JSON response.
- Name string
- Optional field, filter for a specific resource limit.
- Scope
Type string - Reflects the scope of the resource limit, whether Global (across all regions), regional, or availability domain-specific.
- Service
Name string - The target service name.
- Supported
Quota []stringFamilies - Supported quota family names for creation of quota policy.
- Supported
Subscriptions []string - An array of subscription types supported by the limit. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
- are
Quotas BooleanSupported - If true, quota policies can be created on top of this resource limit.
- description String
- The limit description.
- is
Deprecated Boolean - Indicates if the limit has been deprecated.
- is
Dynamic Boolean - The limit for this resource has a dynamic value that is based on consumption across all Oracle Cloud Infrastructure services.
- is
Eligible BooleanFor Limit Increase - Indicates if the customer can request a limit increase for this resource.
- is
Resource BooleanAvailability Supported - Reflects whether or not the GetResourceAvailability API is supported for this limit. If not, the API returns an empty JSON response.
- name String
- Optional field, filter for a specific resource limit.
- scope
Type String - Reflects the scope of the resource limit, whether Global (across all regions), regional, or availability domain-specific.
- service
Name String - The target service name.
- supported
Quota List<String>Families - Supported quota family names for creation of quota policy.
- supported
Subscriptions List<String> - An array of subscription types supported by the limit. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
- are
Quotas booleanSupported - If true, quota policies can be created on top of this resource limit.
- description string
- The limit description.
- is
Deprecated boolean - Indicates if the limit has been deprecated.
- is
Dynamic boolean - The limit for this resource has a dynamic value that is based on consumption across all Oracle Cloud Infrastructure services.
- is
Eligible booleanFor Limit Increase - Indicates if the customer can request a limit increase for this resource.
- is
Resource booleanAvailability Supported - Reflects whether or not the GetResourceAvailability API is supported for this limit. If not, the API returns an empty JSON response.
- name string
- Optional field, filter for a specific resource limit.
- scope
Type string - Reflects the scope of the resource limit, whether Global (across all regions), regional, or availability domain-specific.
- service
Name string - The target service name.
- supported
Quota string[]Families - Supported quota family names for creation of quota policy.
- supported
Subscriptions string[] - An array of subscription types supported by the limit. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
- are_
quotas_ boolsupported - If true, quota policies can be created on top of this resource limit.
- description str
- The limit description.
- is_
deprecated bool - Indicates if the limit has been deprecated.
- is_
dynamic bool - The limit for this resource has a dynamic value that is based on consumption across all Oracle Cloud Infrastructure services.
- is_
eligible_ boolfor_ limit_ increase - Indicates if the customer can request a limit increase for this resource.
- is_
resource_ boolavailability_ supported - Reflects whether or not the GetResourceAvailability API is supported for this limit. If not, the API returns an empty JSON response.
- name str
- Optional field, filter for a specific resource limit.
- scope_
type str - Reflects the scope of the resource limit, whether Global (across all regions), regional, or availability domain-specific.
- service_
name str - The target service name.
- supported_
quota_ Sequence[str]families - Supported quota family names for creation of quota policy.
- supported_
subscriptions Sequence[str] - An array of subscription types supported by the limit. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
- are
Quotas BooleanSupported - If true, quota policies can be created on top of this resource limit.
- description String
- The limit description.
- is
Deprecated Boolean - Indicates if the limit has been deprecated.
- is
Dynamic Boolean - The limit for this resource has a dynamic value that is based on consumption across all Oracle Cloud Infrastructure services.
- is
Eligible BooleanFor Limit Increase - Indicates if the customer can request a limit increase for this resource.
- is
Resource BooleanAvailability Supported - Reflects whether or not the GetResourceAvailability API is supported for this limit. If not, the API returns an empty JSON response.
- name String
- Optional field, filter for a specific resource limit.
- scope
Type String - Reflects the scope of the resource limit, whether Global (across all regions), regional, or availability domain-specific.
- service
Name String - The target service name.
- supported
Quota List<String>Families - Supported quota family names for creation of quota policy.
- supported
Subscriptions List<String> - An array of subscription types supported by the limit. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.