outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getQuota
Explore with Pulumi AI
Provides information about a quota.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const loadBalancerListenersQuota01 = outscale.getQuota({
    filters: [
        {
            name: "collections",
            values: ["LBU"],
        },
        {
            name: "quota_names",
            values: ["lb_listeners_limit"],
        },
        {
            name: "quota_types",
            values: ["global"],
        },
        {
            name: "short_descriptions",
            values: ["Load Balancer Listeners Limit"],
        },
    ],
});
import pulumi
import pulumi_outscale as outscale
load_balancer_listeners_quota01 = outscale.get_quota(filters=[
    {
        "name": "collections",
        "values": ["LBU"],
    },
    {
        "name": "quota_names",
        "values": ["lb_listeners_limit"],
    },
    {
        "name": "quota_types",
        "values": ["global"],
    },
    {
        "name": "short_descriptions",
        "values": ["Load Balancer Listeners Limit"],
    },
])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetQuota(ctx, &outscale.GetQuotaArgs{
			Filters: []outscale.GetQuotaFilter{
				{
					Name: "collections",
					Values: []string{
						"LBU",
					},
				},
				{
					Name: "quota_names",
					Values: []string{
						"lb_listeners_limit",
					},
				},
				{
					Name: "quota_types",
					Values: []string{
						"global",
					},
				},
				{
					Name: "short_descriptions",
					Values: []string{
						"Load Balancer Listeners Limit",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var loadBalancerListenersQuota01 = Outscale.GetQuota.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetQuotaFilterInputArgs
            {
                Name = "collections",
                Values = new[]
                {
                    "LBU",
                },
            },
            new Outscale.Inputs.GetQuotaFilterInputArgs
            {
                Name = "quota_names",
                Values = new[]
                {
                    "lb_listeners_limit",
                },
            },
            new Outscale.Inputs.GetQuotaFilterInputArgs
            {
                Name = "quota_types",
                Values = new[]
                {
                    "global",
                },
            },
            new Outscale.Inputs.GetQuotaFilterInputArgs
            {
                Name = "short_descriptions",
                Values = new[]
                {
                    "Load Balancer Listeners Limit",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetQuotaArgs;
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 loadBalancerListenersQuota01 = OutscaleFunctions.getQuota(GetQuotaArgs.builder()
            .filters(            
                GetQuotaFilterArgs.builder()
                    .name("collections")
                    .values("LBU")
                    .build(),
                GetQuotaFilterArgs.builder()
                    .name("quota_names")
                    .values("lb_listeners_limit")
                    .build(),
                GetQuotaFilterArgs.builder()
                    .name("quota_types")
                    .values("global")
                    .build(),
                GetQuotaFilterArgs.builder()
                    .name("short_descriptions")
                    .values("Load Balancer Listeners Limit")
                    .build())
            .build());
    }
}
variables:
  loadBalancerListenersQuota01:
    fn::invoke:
      function: outscale:getQuota
      arguments:
        filters:
          - name: collections
            values:
              - LBU
          - name: quota_names
            values:
              - lb_listeners_limit
          - name: quota_types
            values:
              - global
          - name: short_descriptions
            values:
              - Load Balancer Listeners Limit
Using getQuota
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 getQuota(args: GetQuotaArgs, opts?: InvokeOptions): Promise<GetQuotaResult>
function getQuotaOutput(args: GetQuotaOutputArgs, opts?: InvokeOptions): Output<GetQuotaResult>def get_quota(filters: Optional[Sequence[GetQuotaFilter]] = None,
              opts: Optional[InvokeOptions] = None) -> GetQuotaResult
def get_quota_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetQuotaFilterArgs]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetQuotaResult]func GetQuota(ctx *Context, args *GetQuotaArgs, opts ...InvokeOption) (*GetQuotaResult, error)
func GetQuotaOutput(ctx *Context, args *GetQuotaOutputArgs, opts ...InvokeOption) GetQuotaResultOutput> Note: This function is named GetQuota in the Go SDK.
public static class GetQuota 
{
    public static Task<GetQuotaResult> InvokeAsync(GetQuotaArgs args, InvokeOptions? opts = null)
    public static Output<GetQuotaResult> Invoke(GetQuotaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetQuotaResult> getQuota(GetQuotaArgs args, InvokeOptions options)
public static Output<GetQuotaResult> getQuota(GetQuotaArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getQuota:getQuota
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetQuota Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Filters
[]GetQuota Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- filters
List<GetQuota Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- filters
GetQuota Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- filters
Sequence[GetQuota Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
getQuota Result
The following output properties are available:
- AccountId string
- The account ID of the owner of the quotas.
- Description string
- The description of the quota.
- Id string
- MaxValue double
- The maximum value of the quota for the OUTSCALE user account (if there is no limit, 0).
- Name string
- The unique name of the quota.
- QuotaCollection string
- The group name of the quota.
- QuotaType string
- The resource ID if it is a resource-specific quota, globalif it is not.
- RequestId string
- ShortDescription string
- The description of the quota.
- UsedValue double
- The limit value currently used by the OUTSCALE user account.
- Filters
List<GetQuota Filter> 
- AccountId string
- The account ID of the owner of the quotas.
- Description string
- The description of the quota.
- Id string
- MaxValue float64
- The maximum value of the quota for the OUTSCALE user account (if there is no limit, 0).
- Name string
- The unique name of the quota.
- QuotaCollection string
- The group name of the quota.
- QuotaType string
- The resource ID if it is a resource-specific quota, globalif it is not.
- RequestId string
- ShortDescription string
- The description of the quota.
- UsedValue float64
- The limit value currently used by the OUTSCALE user account.
- Filters
[]GetQuota Filter 
- accountId String
- The account ID of the owner of the quotas.
- description String
- The description of the quota.
- id String
- maxValue Double
- The maximum value of the quota for the OUTSCALE user account (if there is no limit, 0).
- name String
- The unique name of the quota.
- quotaCollection String
- The group name of the quota.
- quotaType String
- The resource ID if it is a resource-specific quota, globalif it is not.
- requestId String
- shortDescription String
- The description of the quota.
- usedValue Double
- The limit value currently used by the OUTSCALE user account.
- filters
List<GetQuota Filter> 
- accountId string
- The account ID of the owner of the quotas.
- description string
- The description of the quota.
- id string
- maxValue number
- The maximum value of the quota for the OUTSCALE user account (if there is no limit, 0).
- name string
- The unique name of the quota.
- quotaCollection string
- The group name of the quota.
- quotaType string
- The resource ID if it is a resource-specific quota, globalif it is not.
- requestId string
- shortDescription string
- The description of the quota.
- usedValue number
- The limit value currently used by the OUTSCALE user account.
- filters
GetQuota Filter[] 
- account_id str
- The account ID of the owner of the quotas.
- description str
- The description of the quota.
- id str
- max_value float
- The maximum value of the quota for the OUTSCALE user account (if there is no limit, 0).
- name str
- The unique name of the quota.
- quota_collection str
- The group name of the quota.
- quota_type str
- The resource ID if it is a resource-specific quota, globalif it is not.
- request_id str
- short_description str
- The description of the quota.
- used_value float
- The limit value currently used by the OUTSCALE user account.
- filters
Sequence[GetQuota Filter] 
- accountId String
- The account ID of the owner of the quotas.
- description String
- The description of the quota.
- id String
- maxValue Number
- The maximum value of the quota for the OUTSCALE user account (if there is no limit, 0).
- name String
- The unique name of the quota.
- quotaCollection String
- The group name of the quota.
- quotaType String
- The resource ID if it is a resource-specific quota, globalif it is not.
- requestId String
- shortDescription String
- The description of the quota.
- usedValue Number
- The limit value currently used by the OUTSCALE user account.
- filters List<Property Map>
Supporting Types
GetQuotaFilter  
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.