Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Limits.getLimitValues
Explore with Pulumi AI
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. If subscription Id is provided, limit value for subscription will be returned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLimitValues = oci.Limits.getLimitValues({
compartmentId: tenancyOcid,
serviceName: testService.name,
availabilityDomain: limitValueAvailabilityDomain,
name: limitValueName,
scopeType: limitValueScopeType,
subscriptionId: subscriptionOcid,
});
import pulumi
import pulumi_oci as oci
test_limit_values = oci.Limits.get_limit_values(compartment_id=tenancy_ocid,
service_name=test_service["name"],
availability_domain=limit_value_availability_domain,
name=limit_value_name,
scope_type=limit_value_scope_type,
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.GetLimitValues(ctx, &limits.GetLimitValuesArgs{
CompartmentId: tenancyOcid,
ServiceName: testService.Name,
AvailabilityDomain: pulumi.StringRef(limitValueAvailabilityDomain),
Name: pulumi.StringRef(limitValueName),
ScopeType: pulumi.StringRef(limitValueScopeType),
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 testLimitValues = Oci.Limits.GetLimitValues.Invoke(new()
{
CompartmentId = tenancyOcid,
ServiceName = testService.Name,
AvailabilityDomain = limitValueAvailabilityDomain,
Name = limitValueName,
ScopeType = limitValueScopeType,
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.GetLimitValuesArgs;
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 testLimitValues = LimitsFunctions.getLimitValues(GetLimitValuesArgs.builder()
.compartmentId(tenancyOcid)
.serviceName(testService.name())
.availabilityDomain(limitValueAvailabilityDomain)
.name(limitValueName)
.scopeType(limitValueScopeType)
.subscriptionId(subscriptionOcid)
.build());
}
}
variables:
testLimitValues:
fn::invoke:
Function: oci:Limits:getLimitValues
Arguments:
compartmentId: ${tenancyOcid}
serviceName: ${testService.name}
availabilityDomain: ${limitValueAvailabilityDomain}
name: ${limitValueName}
scopeType: ${limitValueScopeType}
subscriptionId: ${subscriptionOcid}
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,
subscription_id: 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,
subscription_id: 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:
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Service
Name string - The target service name.
- Availability
Domain string - Filter entries by availability domain. This implies that only AD-specific values are returned.
- Filters
List<Get
Limit Values Filter> - Name string
- Optional field, can be used to see a specific resource limit value.
- Scope
Type string - Filter entries by scope type.
- 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).
- Service
Name string - The target service name.
- Availability
Domain string - Filter entries by availability domain. This implies that only AD-specific values are returned.
- Filters
[]Get
Limit Values Filter - Name string
- Optional field, can be used to see a specific resource limit value.
- Scope
Type string - Filter entries by scope type.
- 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).
- service
Name String - The target service name.
- availability
Domain String - Filter entries by availability domain. This implies that only AD-specific values are returned.
- filters
List<Get
Limit Values Filter> - name String
- Optional field, can be used to see a specific resource limit value.
- scope
Type String - Filter entries by scope type.
- 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).
- service
Name string - The target service name.
- availability
Domain string - Filter entries by availability domain. This implies that only AD-specific values are returned.
- filters
Get
Limit Values Filter[] - name string
- Optional field, can be used to see a specific resource limit value.
- scope
Type string - Filter entries by scope type.
- 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).
- 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
Sequence[limits.
Get Limit Values Filter] - name str
- Optional field, can be used to see a specific resource limit value.
- scope_
type str - Filter entries by scope type.
- 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).
- service
Name String - The target service name.
- availability
Domain 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.
- scope
Type String - Filter entries by scope type.
- subscription
Id String - The OCID of the subscription assigned to tenant
getLimitValues Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Limit
Values List<GetLimit Values Limit Value> - The list of limit_values.
- Service
Name string - Availability
Domain string - If present, the returned value is only specific to this availability domain.
- Filters
List<Get
Limit Values Filter> - Name string
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- Scope
Type string - The scope type of the limit.
- Subscription
Id string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Limit
Values []GetLimit Values Limit Value - The list of limit_values.
- Service
Name string - Availability
Domain string - If present, the returned value is only specific to this availability domain.
- Filters
[]Get
Limit Values Filter - Name string
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- Scope
Type string - The scope type of the limit.
- Subscription
Id string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- limit
Values List<GetLimit Values Limit Value> - The list of limit_values.
- service
Name String - availability
Domain String - If present, the returned value is only specific to this availability domain.
- filters
List<Get
Limit Values Filter> - name String
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- scope
Type String - The scope type of the limit.
- subscription
Id String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- limit
Values GetLimit Values Limit Value[] - The list of limit_values.
- service
Name string - availability
Domain string - If present, the returned value is only specific to this availability domain.
- filters
Get
Limit Values Filter[] - name string
- The resource limit name. To be used for writing policies (in case of quotas) or other programmatic calls.
- scope
Type string - The scope type of the limit.
- subscription
Id string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- limit_
values Sequence[limits.Get Limit Values Limit Value] - The list of limit_values.
- service_
name str - availability_
domain str - If present, the returned value is only specific to this availability domain.
- filters
Sequence[limits.
Get Limit Values Filter] - 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.
- subscription_
id str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- limit
Values List<Property Map> - The list of limit_values.
- service
Name String - availability
Domain 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.
- scope
Type String - The scope type of the limit.
- subscription
Id String
Supporting Types
GetLimitValuesFilter
GetLimitValuesLimitValue
- Availability
Domain 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.
- Scope
Type string - Filter entries by scope type.
- Value string
- The resource limit value.
- Availability
Domain 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.
- Scope
Type string - Filter entries by scope type.
- Value string
- The resource limit value.
- availability
Domain 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.
- scope
Type String - Filter entries by scope type.
- value String
- The resource limit value.
- availability
Domain 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.
- scope
Type 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.
- availability
Domain 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.
- scope
Type String - Filter entries by scope type.
- value String
- The resource limit value.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.