1. Packages
  2. Linode Provider
  3. API Docs
  4. getObjectStorageQuotas
Linode v4.39.0 published on Thursday, May 8, 2025 by Pulumi

linode.getObjectStorageQuotas

Explore with Pulumi AI

linode logo
Linode v4.39.0 published on Thursday, May 8, 2025 by Pulumi

    Provides details about a list of Object Storage quotas information on your account. For more information, see the Linode APIv4 docs.

    Example Usage

    The following example shows how one might use this data source to list and filter information about Object Storage quotas.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const maxBucketsQuotas = linode.getObjectStorageQuotas({
        filters: [{
            name: "endpoint_type",
            values: ["E0"],
        }],
    });
    
    import pulumi
    import pulumi_linode as linode
    
    max_buckets_quotas = linode.get_object_storage_quotas(filters=[{
        "name": "endpoint_type",
        "values": ["E0"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.GetObjectStorageQuotas(ctx, &linode.GetObjectStorageQuotasArgs{
    			Filters: []linode.GetObjectStorageQuotasFilter{
    				{
    					Name: "endpoint_type",
    					Values: []string{
    						"E0",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var maxBucketsQuotas = Linode.GetObjectStorageQuotas.Invoke(new()
        {
            Filters = new[]
            {
                new Linode.Inputs.GetObjectStorageQuotasFilterInputArgs
                {
                    Name = "endpoint_type",
                    Values = new[]
                    {
                        "E0",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetObjectStorageQuotasArgs;
    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 maxBucketsQuotas = LinodeFunctions.getObjectStorageQuotas(GetObjectStorageQuotasArgs.builder()
                .filters(GetObjectStorageQuotasFilterArgs.builder()
                    .name("endpoint_type")
                    .values("E0")
                    .build())
                .build());
    
        }
    }
    
    variables:
      maxBucketsQuotas:
        fn::invoke:
          function: linode:getObjectStorageQuotas
          arguments:
            filters:
              - name: endpoint_type
                values:
                  - E0
    

    Filterable Fields

    • quota_id

    • quota_name

    • endpoint_type

    • s3_endpoint

    • description

    • quota_limit

    • resource_metric

    Using getObjectStorageQuotas

    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 getObjectStorageQuotas(args: GetObjectStorageQuotasArgs, opts?: InvokeOptions): Promise<GetObjectStorageQuotasResult>
    function getObjectStorageQuotasOutput(args: GetObjectStorageQuotasOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageQuotasResult>
    def get_object_storage_quotas(filters: Optional[Sequence[GetObjectStorageQuotasFilter]] = None,
                                  quotas: Optional[Sequence[GetObjectStorageQuotasQuota]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetObjectStorageQuotasResult
    def get_object_storage_quotas_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetObjectStorageQuotasFilterArgs]]]] = None,
                                  quotas: Optional[pulumi.Input[Sequence[pulumi.Input[GetObjectStorageQuotasQuotaArgs]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageQuotasResult]
    func GetObjectStorageQuotas(ctx *Context, args *GetObjectStorageQuotasArgs, opts ...InvokeOption) (*GetObjectStorageQuotasResult, error)
    func GetObjectStorageQuotasOutput(ctx *Context, args *GetObjectStorageQuotasOutputArgs, opts ...InvokeOption) GetObjectStorageQuotasResultOutput

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

    public static class GetObjectStorageQuotas 
    {
        public static Task<GetObjectStorageQuotasResult> InvokeAsync(GetObjectStorageQuotasArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectStorageQuotasResult> Invoke(GetObjectStorageQuotasInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetObjectStorageQuotasResult> getObjectStorageQuotas(GetObjectStorageQuotasArgs args, InvokeOptions options)
    public static Output<GetObjectStorageQuotasResult> getObjectStorageQuotas(GetObjectStorageQuotasArgs args, InvokeOptions options)
    
    fn::invoke:
      function: linode:index/getObjectStorageQuotas:getObjectStorageQuotas
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getObjectStorageQuotas Result

    The following output properties are available:

    Supporting Types

    GetObjectStorageQuotasFilter

    Name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    Values List<string>
    A list of values for the filter to allow. These values should all be in string form.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    Name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    Values []string
    A list of values for the filter to allow. These values should all be in string form.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    name String
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values List<String>
    A list of values for the filter to allow. These values should all be in string form.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)
    name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values string[]
    A list of values for the filter to allow. These values should all be in string form.
    matchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    name str
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values Sequence[str]
    A list of values for the filter to allow. These values should all be in string form.
    match_by str
    The method to match the field by. (exact, regex, substring; default exact)
    name String
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values List<String>
    A list of values for the filter to allow. These values should all be in string form.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)

    GetObjectStorageQuotasQuota

    Description string
    The description of the Object Storage quota.
    EndpointType string
    The type of the S3 endpoint of the Object Storage.
    QuotaId string
    The ID of the Object Storage quota.
    QuotaLimit int
    The maximum quantity of the resource_metric allowed by the quota.
    QuotaName string
    The name of the Object Storage quota.
    ResourceMetric string
    The specific Object Storage resource for the quota.
    S3Endpoint string
    The S3 endpoint URL of the Object Storage, based on the endpoint_type and region.
    Description string
    The description of the Object Storage quota.
    EndpointType string
    The type of the S3 endpoint of the Object Storage.
    QuotaId string
    The ID of the Object Storage quota.
    QuotaLimit int
    The maximum quantity of the resource_metric allowed by the quota.
    QuotaName string
    The name of the Object Storage quota.
    ResourceMetric string
    The specific Object Storage resource for the quota.
    S3Endpoint string
    The S3 endpoint URL of the Object Storage, based on the endpoint_type and region.
    description String
    The description of the Object Storage quota.
    endpointType String
    The type of the S3 endpoint of the Object Storage.
    quotaId String
    The ID of the Object Storage quota.
    quotaLimit Integer
    The maximum quantity of the resource_metric allowed by the quota.
    quotaName String
    The name of the Object Storage quota.
    resourceMetric String
    The specific Object Storage resource for the quota.
    s3Endpoint String
    The S3 endpoint URL of the Object Storage, based on the endpoint_type and region.
    description string
    The description of the Object Storage quota.
    endpointType string
    The type of the S3 endpoint of the Object Storage.
    quotaId string
    The ID of the Object Storage quota.
    quotaLimit number
    The maximum quantity of the resource_metric allowed by the quota.
    quotaName string
    The name of the Object Storage quota.
    resourceMetric string
    The specific Object Storage resource for the quota.
    s3Endpoint string
    The S3 endpoint URL of the Object Storage, based on the endpoint_type and region.
    description str
    The description of the Object Storage quota.
    endpoint_type str
    The type of the S3 endpoint of the Object Storage.
    quota_id str
    The ID of the Object Storage quota.
    quota_limit int
    The maximum quantity of the resource_metric allowed by the quota.
    quota_name str
    The name of the Object Storage quota.
    resource_metric str
    The specific Object Storage resource for the quota.
    s3_endpoint str
    The S3 endpoint URL of the Object Storage, based on the endpoint_type and region.
    description String
    The description of the Object Storage quota.
    endpointType String
    The type of the S3 endpoint of the Object Storage.
    quotaId String
    The ID of the Object Storage quota.
    quotaLimit Number
    The maximum quantity of the resource_metric allowed by the quota.
    quotaName String
    The name of the Object Storage quota.
    resourceMetric String
    The specific Object Storage resource for the quota.
    s3Endpoint String
    The S3 endpoint URL of the Object Storage, based on the endpoint_type and region.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Linode v4.39.0 published on Thursday, May 8, 2025 by Pulumi