Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.UsageProxy.getUsagelimits
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Usagelimits in Oracle Cloud Infrastructure Usage Proxy service.
Returns the list of usage limit for the subscription ID and tenant ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testUsagelimits = oci.UsageProxy.getUsagelimits({
compartmentId: compartmentId,
subscriptionId: testSubscription.id,
limitType: usagelimitLimitType,
resourceType: usagelimitResourceType,
serviceType: usagelimitServiceType,
});
import pulumi
import pulumi_oci as oci
test_usagelimits = oci.UsageProxy.get_usagelimits(compartment_id=compartment_id,
subscription_id=test_subscription["id"],
limit_type=usagelimit_limit_type,
resource_type=usagelimit_resource_type,
service_type=usagelimit_service_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/UsageProxy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := UsageProxy.GetUsagelimits(ctx, &usageproxy.GetUsagelimitsArgs{
CompartmentId: compartmentId,
SubscriptionId: testSubscription.Id,
LimitType: pulumi.StringRef(usagelimitLimitType),
ResourceType: pulumi.StringRef(usagelimitResourceType),
ServiceType: pulumi.StringRef(usagelimitServiceType),
}, 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 testUsagelimits = Oci.UsageProxy.GetUsagelimits.Invoke(new()
{
CompartmentId = compartmentId,
SubscriptionId = testSubscription.Id,
LimitType = usagelimitLimitType,
ResourceType = usagelimitResourceType,
ServiceType = usagelimitServiceType,
});
});
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.GetUsagelimitsArgs;
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 testUsagelimits = UsageProxyFunctions.getUsagelimits(GetUsagelimitsArgs.builder()
.compartmentId(compartmentId)
.subscriptionId(testSubscription.id())
.limitType(usagelimitLimitType)
.resourceType(usagelimitResourceType)
.serviceType(usagelimitServiceType)
.build());
}
}
variables:
testUsagelimits:
fn::invoke:
Function: oci:UsageProxy:getUsagelimits
Arguments:
compartmentId: ${compartmentId}
subscriptionId: ${testSubscription.id}
limitType: ${usagelimitLimitType}
resourceType: ${usagelimitResourceType}
serviceType: ${usagelimitServiceType}
Using getUsagelimits
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 getUsagelimits(args: GetUsagelimitsArgs, opts?: InvokeOptions): Promise<GetUsagelimitsResult>
function getUsagelimitsOutput(args: GetUsagelimitsOutputArgs, opts?: InvokeOptions): Output<GetUsagelimitsResult>
def get_usagelimits(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_usageproxy.GetUsagelimitsFilter]] = None,
limit_type: Optional[str] = None,
resource_type: Optional[str] = None,
service_type: Optional[str] = None,
subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUsagelimitsResult
def get_usagelimits_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_usageproxy.GetUsagelimitsFilterArgs]]]] = None,
limit_type: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
service_type: Optional[pulumi.Input[str]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUsagelimitsResult]
func GetUsagelimits(ctx *Context, args *GetUsagelimitsArgs, opts ...InvokeOption) (*GetUsagelimitsResult, error)
func GetUsagelimitsOutput(ctx *Context, args *GetUsagelimitsOutputArgs, opts ...InvokeOption) GetUsagelimitsResultOutput
> Note: This function is named GetUsagelimits
in the Go SDK.
public static class GetUsagelimits
{
public static Task<GetUsagelimitsResult> InvokeAsync(GetUsagelimitsArgs args, InvokeOptions? opts = null)
public static Output<GetUsagelimitsResult> Invoke(GetUsagelimitsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUsagelimitsResult> getUsagelimits(GetUsagelimitsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:UsageProxy/getUsagelimits:getUsagelimits
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the root compartment.
- Subscription
Id string - The subscription ID for which rewards information is requested for.
- Filters
List<Get
Usagelimits Filter> - Limit
Type string - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- Resource
Type string - Resource Name.
- Service
Type string - Service Name.
- Compartment
Id string - The OCID of the root compartment.
- Subscription
Id string - The subscription ID for which rewards information is requested for.
- Filters
[]Get
Usagelimits Filter - Limit
Type string - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- Resource
Type string - Resource Name.
- Service
Type string - Service Name.
- compartment
Id String - The OCID of the root compartment.
- subscription
Id String - The subscription ID for which rewards information is requested for.
- filters
List<Get
Usagelimits Filter> - limit
Type String - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- resource
Type String - Resource Name.
- service
Type String - Service Name.
- compartment
Id string - The OCID of the root compartment.
- subscription
Id string - The subscription ID for which rewards information is requested for.
- filters
Get
Usagelimits Filter[] - limit
Type string - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- resource
Type string - Resource Name.
- service
Type string - Service Name.
- compartment_
id str - The OCID of the root compartment.
- subscription_
id str - The subscription ID for which rewards information is requested for.
- filters
Sequence[usageproxy.
Get Usagelimits Filter] - limit_
type str - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- resource_
type str - Resource Name.
- service_
type str - Service Name.
- compartment
Id String - The OCID of the root compartment.
- subscription
Id String - The subscription ID for which rewards information is requested for.
- filters List<Property Map>
- limit
Type String - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- resource
Type String - Resource Name.
- service
Type String - Service Name.
getUsagelimits Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Usage
Limit List<GetCollections Usagelimits Usage Limit Collection> - The list of usage_limit_collection.
- Filters
List<Get
Usagelimits Filter> - Limit
Type string - The limit type of the usage limit
- Resource
Type string - Service
Type string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Usage
Limit []GetCollections Usagelimits Usage Limit Collection - The list of usage_limit_collection.
- Filters
[]Get
Usagelimits Filter - Limit
Type string - The limit type of the usage limit
- Resource
Type string - Service
Type string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - usage
Limit List<GetCollections Usagelimits Usage Limit Collection> - The list of usage_limit_collection.
- filters
List<Get
Usagelimits Filter> - limit
Type String - The limit type of the usage limit
- resource
Type String - service
Type String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- subscription
Id string - usage
Limit GetCollections Usagelimits Usage Limit Collection[] - The list of usage_limit_collection.
- filters
Get
Usagelimits Filter[] - limit
Type string - The limit type of the usage limit
- resource
Type string - service
Type string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- subscription_
id str - usage_
limit_ Sequence[usageproxy.collections Get Usagelimits Usage Limit Collection] - The list of usage_limit_collection.
- filters
Sequence[usageproxy.
Get Usagelimits Filter] - limit_
type str - The limit type of the usage limit
- resource_
type str - service_
type str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - usage
Limit List<Property Map>Collections - The list of usage_limit_collection.
- filters List<Property Map>
- limit
Type String - The limit type of the usage limit
- resource
Type String - service
Type String
Supporting Types
GetUsagelimitsFilter
GetUsagelimitsUsageLimitCollection
- Items
List<Get
Usagelimits Usage Limit Collection Item> - The list of usage limits.
- Items
[]Get
Usagelimits Usage Limit Collection Item - The list of usage limits.
- items
List<Get
Usagelimits Usage Limit Collection Item> - The list of usage limits.
- items
Get
Usagelimits Usage Limit Collection Item[] - The list of usage limits.
- items
Sequence[usageproxy.
Get Usagelimits Usage Limit Collection Item] - The list of usage limits.
- items List<Property Map>
- The list of usage limits.
GetUsagelimitsUsageLimitCollectionItem
- Action string
- The action when usage limit is hit
- Alert
Level double - The alert level of the usage limit
- Created
By string - The user who created the limit
- Entitlement
Id string - Entitlement ID of the usage limit
- Id string
- The usage limit ID
- Limit string
- Limit
Type string - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- Max
Hard stringLimit - The maximum hard limit set for the usage limit
- Modified
By string - The user who modified the limit
- Resource
Name string - The resource for which the limit is defined
- Service
Name string - The service for which the limit is defined
- Sku
Part stringId - The SKU for which the usage limit is set
- State string
- The usage limit lifecycle state.
- Time
Created string - Time when the usage limit was created
- Time
Modified string - Time when the usage limit was modified
- Value
Type string - The value type of the usage limit
- Action string
- The action when usage limit is hit
- Alert
Level float64 - The alert level of the usage limit
- Created
By string - The user who created the limit
- Entitlement
Id string - Entitlement ID of the usage limit
- Id string
- The usage limit ID
- Limit string
- Limit
Type string - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- Max
Hard stringLimit - The maximum hard limit set for the usage limit
- Modified
By string - The user who modified the limit
- Resource
Name string - The resource for which the limit is defined
- Service
Name string - The service for which the limit is defined
- Sku
Part stringId - The SKU for which the usage limit is set
- State string
- The usage limit lifecycle state.
- Time
Created string - Time when the usage limit was created
- Time
Modified string - Time when the usage limit was modified
- Value
Type string - The value type of the usage limit
- action String
- The action when usage limit is hit
- alert
Level Double - The alert level of the usage limit
- created
By String - The user who created the limit
- entitlement
Id String - Entitlement ID of the usage limit
- id String
- The usage limit ID
- limit String
- limit
Type String - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- max
Hard StringLimit - The maximum hard limit set for the usage limit
- modified
By String - The user who modified the limit
- resource
Name String - The resource for which the limit is defined
- service
Name String - The service for which the limit is defined
- sku
Part StringId - The SKU for which the usage limit is set
- state String
- The usage limit lifecycle state.
- time
Created String - Time when the usage limit was created
- time
Modified String - Time when the usage limit was modified
- value
Type String - The value type of the usage limit
- action string
- The action when usage limit is hit
- alert
Level number - The alert level of the usage limit
- created
By string - The user who created the limit
- entitlement
Id string - Entitlement ID of the usage limit
- id string
- The usage limit ID
- limit string
- limit
Type string - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- max
Hard stringLimit - The maximum hard limit set for the usage limit
- modified
By string - The user who modified the limit
- resource
Name string - The resource for which the limit is defined
- service
Name string - The service for which the limit is defined
- sku
Part stringId - The SKU for which the usage limit is set
- state string
- The usage limit lifecycle state.
- time
Created string - Time when the usage limit was created
- time
Modified string - Time when the usage limit was modified
- value
Type string - The value type of the usage limit
- action str
- The action when usage limit is hit
- alert_
level float - The alert level of the usage limit
- created_
by str - The user who created the limit
- entitlement_
id str - Entitlement ID of the usage limit
- id str
- The usage limit ID
- limit str
- limit_
type str - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- max_
hard_ strlimit - The maximum hard limit set for the usage limit
- modified_
by str - The user who modified the limit
- resource_
name str - The resource for which the limit is defined
- service_
name str - The service for which the limit is defined
- sku_
part_ strid - The SKU for which the usage limit is set
- state str
- The usage limit lifecycle state.
- time_
created str - Time when the usage limit was created
- time_
modified str - Time when the usage limit was modified
- value_
type str - The value type of the usage limit
- action String
- The action when usage limit is hit
- alert
Level Number - The alert level of the usage limit
- created
By String - The user who created the limit
- entitlement
Id String - Entitlement ID of the usage limit
- id String
- The usage limit ID
- limit String
- limit
Type String - Hard or soft limit. Hard limits lead to breaches, soft to alerts.
- max
Hard StringLimit - The maximum hard limit set for the usage limit
- modified
By String - The user who modified the limit
- resource
Name String - The resource for which the limit is defined
- service
Name String - The service for which the limit is defined
- sku
Part StringId - The SKU for which the usage limit is set
- state String
- The usage limit lifecycle state.
- time
Created String - Time when the usage limit was created
- time
Modified String - Time when the usage limit was modified
- value
Type String - The value type of the usage limit
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi