Oracle Cloud Infrastructure

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

getLimitValues

This data source provides the list of Limit Values in Oracle Cloud Infrastructure Limits service.

Includes a full list of resource limits belonging to a given service.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLimitValues = Output.Create(Oci.Limits.GetLimitValues.InvokeAsync(new Oci.Limits.GetLimitValuesArgs
        {
            CompartmentId = @var.Tenancy_ocid,
            ServiceName = oci_limits_service.Test_service.Name,
            AvailabilityDomain = @var.Limit_value_availability_domain,
            Name = @var.Limit_value_name,
            ScopeType = @var.Limit_value_scope_type,
        }));
    }

}
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.GetLimitValues(ctx, &limits.GetLimitValuesArgs{
			CompartmentId:      _var.Tenancy_ocid,
			ServiceName:        oci_limits_service.Test_service.Name,
			AvailabilityDomain: pulumi.StringRef(_var.Limit_value_availability_domain),
			Name:               pulumi.StringRef(_var.Limit_value_name),
			ScopeType:          pulumi.StringRef(_var.Limit_value_scope_type),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_limit_values = oci.Limits.get_limit_values(compartment_id=var["tenancy_ocid"],
    service_name=oci_limits_service["test_service"]["name"],
    availability_domain=var["limit_value_availability_domain"],
    name=var["limit_value_name"],
    scope_type=var["limit_value_scope_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLimitValues = oci.Limits.getLimitValues({
    compartmentId: _var.tenancy_ocid,
    serviceName: oci_limits_service.test_service.name,
    availabilityDomain: _var.limit_value_availability_domain,
    name: _var.limit_value_name,
    scopeType: _var.limit_value_scope_type,
});

Coming soon!

Using getLimitValues

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 getLimitValues(args: GetLimitValuesArgs, opts?: InvokeOptions): Promise<GetLimitValuesResult>
function getLimitValuesOutput(args: GetLimitValuesOutputArgs, opts?: InvokeOptions): Output<GetLimitValuesResult>
def get_limit_values(availability_domain: Optional[str] = None,
                     compartment_id: Optional[str] = None,
                     filters: Optional[Sequence[_limits.GetLimitValuesFilter]] = None,
                     name: Optional[str] = None,
                     scope_type: Optional[str] = None,
                     service_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetLimitValuesResult
def get_limit_values_output(availability_domain: Optional[pulumi.Input[str]] = None,
                     compartment_id: Optional[pulumi.Input[str]] = None,
                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_limits.GetLimitValuesFilterArgs]]]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     scope_type: Optional[pulumi.Input[str]] = None,
                     service_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetLimitValuesResult]
func GetLimitValues(ctx *Context, args *GetLimitValuesArgs, opts ...InvokeOption) (*GetLimitValuesResult, error)
func GetLimitValuesOutput(ctx *Context, args *GetLimitValuesOutputArgs, opts ...InvokeOption) GetLimitValuesResultOutput

> Note: This function is named GetLimitValues in the Go SDK.

public static class GetLimitValues 
{
    public static Task<GetLimitValuesResult> InvokeAsync(GetLimitValuesArgs args, InvokeOptions? opts = null)
    public static Output<GetLimitValuesResult> Invoke(GetLimitValuesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLimitValuesResult> getLimitValues(GetLimitValuesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Limits/getLimitValues:getLimitValues
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

ServiceName string

The target service name.

AvailabilityDomain string

Filter entries by availability domain. This implies that only AD-specific values are returned.

Filters List<GetLimitValuesFilter>
Name string

Optional field, can be used to see a specific resource limit value.

ScopeType string

Filter entries by scope type.

CompartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

ServiceName string

The target service name.

AvailabilityDomain string

Filter entries by availability domain. This implies that only AD-specific values are returned.

Filters []GetLimitValuesFilter
Name string

Optional field, can be used to see a specific resource limit value.

ScopeType string

Filter entries by scope type.

compartmentId String

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

serviceName String

The target service name.

availabilityDomain String

Filter entries by availability domain. This implies that only AD-specific values are returned.

filters List<GetLimitValuesFilter>
name String

Optional field, can be used to see a specific resource limit value.

scopeType String

Filter entries by scope type.

compartmentId string

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

serviceName string

The target service name.

availabilityDomain string

Filter entries by availability domain. This implies that only AD-specific values are returned.

filters GetLimitValuesFilter[]
name string

Optional field, can be used to see a specific resource limit value.

scopeType string

Filter entries by scope type.

compartment_id str

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

service_name str

The target service name.

availability_domain str

Filter entries by availability domain. This implies that only AD-specific values are returned.

filters GetLimitValuesFilter]
name str

Optional field, can be used to see a specific resource limit value.

scope_type str

Filter entries by scope type.

compartmentId String

The OCID of the parent compartment (remember that the tenancy is simply the root compartment).

serviceName String

The target service name.

availabilityDomain String

Filter entries by availability domain. This implies that only AD-specific values are returned.

filters List<Property Map>
name String

Optional field, can be used to see a specific resource limit value.

scopeType String

Filter entries by scope type.

getLimitValues Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

LimitValues List<GetLimitValuesLimitValue>

The list of limit_values.

ServiceName string
AvailabilityDomain string

If present, the returned value is only specific to this availability domain.

Filters List<GetLimitValuesFilter>
Name string

The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.

ScopeType string

The scope type of the limit.

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

LimitValues []GetLimitValuesLimitValue

The list of limit_values.

ServiceName string
AvailabilityDomain string

If present, the returned value is only specific to this availability domain.

Filters []GetLimitValuesFilter
Name string

The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.

ScopeType string

The scope type of the limit.

compartmentId String
id String

The provider-assigned unique ID for this managed resource.

limitValues List<GetLimitValuesLimitValue>

The list of limit_values.

serviceName String
availabilityDomain String

If present, the returned value is only specific to this availability domain.

filters List<GetLimitValuesFilter>
name String

The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.

scopeType String

The scope type of the limit.

compartmentId string
id string

The provider-assigned unique ID for this managed resource.

limitValues GetLimitValuesLimitValue[]

The list of limit_values.

serviceName string
availabilityDomain string

If present, the returned value is only specific to this availability domain.

filters GetLimitValuesFilter[]
name string

The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.

scopeType string

The scope type of the limit.

compartment_id str
id str

The provider-assigned unique ID for this managed resource.

limit_values GetLimitValuesLimitValue]

The list of limit_values.

service_name str
availability_domain str

If present, the returned value is only specific to this availability domain.

filters GetLimitValuesFilter]
name str

The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.

scope_type str

The scope type of the limit.

compartmentId String
id String

The provider-assigned unique ID for this managed resource.

limitValues List<Property Map>

The list of limit_values.

serviceName String
availabilityDomain String

If present, the returned value is only specific to this availability domain.

filters List<Property Map>
name String

The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.

scopeType String

The scope type of the limit.

Supporting Types

GetLimitValuesFilter

Name string

Optional field, can be used to see a specific resource limit value.

Values List<string>
Regex bool
Name string

Optional field, can be used to see a specific resource limit value.

Values []string
Regex bool
name String

Optional field, can be used to see a specific resource limit value.

values List<String>
regex Boolean
name string

Optional field, can be used to see a specific resource limit value.

values string[]
regex boolean
name str

Optional field, can be used to see a specific resource limit value.

values Sequence[str]
regex bool
name String

Optional field, can be used to see a specific resource limit value.

values List<String>
regex Boolean

GetLimitValuesLimitValue

AvailabilityDomain string

Filter entries by availability domain. This implies that only AD-specific values are returned.

Name string

Optional field, can be used to see a specific resource limit value.

ScopeType string

Filter entries by scope type.

Value string

The resource limit value.

AvailabilityDomain string

Filter entries by availability domain. This implies that only AD-specific values are returned.

Name string

Optional field, can be used to see a specific resource limit value.

ScopeType string

Filter entries by scope type.

Value string

The resource limit value.

availabilityDomain String

Filter entries by availability domain. This implies that only AD-specific values are returned.

name String

Optional field, can be used to see a specific resource limit value.

scopeType String

Filter entries by scope type.

value String

The resource limit value.

availabilityDomain string

Filter entries by availability domain. This implies that only AD-specific values are returned.

name string

Optional field, can be used to see a specific resource limit value.

scopeType string

Filter entries by scope type.

value string

The resource limit value.

availability_domain str

Filter entries by availability domain. This implies that only AD-specific values are returned.

name str

Optional field, can be used to see a specific resource limit value.

scope_type str

Filter entries by scope type.

value str

The resource limit value.

availabilityDomain String

Filter entries by availability domain. This implies that only AD-specific values are returned.

name String

Optional field, can be used to see a specific resource limit value.

scopeType String

Filter entries by scope type.

value String

The resource limit value.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.