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

linode.getObjectStorageQuota

Explore with Pulumi AI

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

    Provides details about Object Storage quota 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 access information about an Object Storage quota.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const myQuota = linode.getObjectStorageQuota({
        quotaId: "obj-buckets-br-gru-1.linodeobjects.com",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    my_quota = linode.get_object_storage_quota(quota_id="obj-buckets-br-gru-1.linodeobjects.com")
    
    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.GetObjectStorageQuota(ctx, &linode.GetObjectStorageQuotaArgs{
    			QuotaId: "obj-buckets-br-gru-1.linodeobjects.com",
    		}, 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 myQuota = Linode.GetObjectStorageQuota.Invoke(new()
        {
            QuotaId = "obj-buckets-br-gru-1.linodeobjects.com",
        });
    
    });
    
    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.GetObjectStorageQuotaArgs;
    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 myQuota = LinodeFunctions.getObjectStorageQuota(GetObjectStorageQuotaArgs.builder()
                .quotaId("obj-buckets-br-gru-1.linodeobjects.com")
                .build());
    
        }
    }
    
    variables:
      myQuota:
        fn::invoke:
          function: linode:getObjectStorageQuota
          arguments:
            quotaId: obj-buckets-br-gru-1.linodeobjects.com
    

    Using getObjectStorageQuota

    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 getObjectStorageQuota(args: GetObjectStorageQuotaArgs, opts?: InvokeOptions): Promise<GetObjectStorageQuotaResult>
    function getObjectStorageQuotaOutput(args: GetObjectStorageQuotaOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageQuotaResult>
    def get_object_storage_quota(quota_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetObjectStorageQuotaResult
    def get_object_storage_quota_output(quota_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageQuotaResult]
    func GetObjectStorageQuota(ctx *Context, args *GetObjectStorageQuotaArgs, opts ...InvokeOption) (*GetObjectStorageQuotaResult, error)
    func GetObjectStorageQuotaOutput(ctx *Context, args *GetObjectStorageQuotaOutputArgs, opts ...InvokeOption) GetObjectStorageQuotaResultOutput

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

    public static class GetObjectStorageQuota 
    {
        public static Task<GetObjectStorageQuotaResult> InvokeAsync(GetObjectStorageQuotaArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectStorageQuotaResult> Invoke(GetObjectStorageQuotaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetObjectStorageQuotaResult> getObjectStorageQuota(GetObjectStorageQuotaArgs args, InvokeOptions options)
    public static Output<GetObjectStorageQuotaResult> getObjectStorageQuota(GetObjectStorageQuotaArgs args, InvokeOptions options)
    
    fn::invoke:
      function: linode:index/getObjectStorageQuota:getObjectStorageQuota
      arguments:
        # arguments dictionary

    The following arguments are supported:

    QuotaId string
    The Object Storage quota ID.
    QuotaId string
    The Object Storage quota ID.
    quotaId String
    The Object Storage quota ID.
    quotaId string
    The Object Storage quota ID.
    quota_id str
    The Object Storage quota ID.
    quotaId String
    The Object Storage quota ID.

    getObjectStorageQuota Result

    The following output properties are available:

    Description string
    The description of the Object Storage quota.
    EndpointType string
    The type of the S3 endpoint of the Object Storage.
    Id string
    The unique ID of the Object Storage quota data source.
    QuotaId string
    QuotaLimit int
    The maximum quantity allowed by the quota.
    QuotaName string
    The name of the Object Storage quota.
    QuotaUsage GetObjectStorageQuotaQuotaUsage
    The usage data for a specific Object Storage related quota on your account.
    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.
    Id string
    The unique ID of the Object Storage quota data source.
    QuotaId string
    QuotaLimit int
    The maximum quantity allowed by the quota.
    QuotaName string
    The name of the Object Storage quota.
    QuotaUsage GetObjectStorageQuotaQuotaUsage
    The usage data for a specific Object Storage related quota on your account.
    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.
    id String
    The unique ID of the Object Storage quota data source.
    quotaId String
    quotaLimit Integer
    The maximum quantity allowed by the quota.
    quotaName String
    The name of the Object Storage quota.
    quotaUsage GetObjectStorageQuotaQuotaUsage
    The usage data for a specific Object Storage related quota on your account.
    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.
    id string
    The unique ID of the Object Storage quota data source.
    quotaId string
    quotaLimit number
    The maximum quantity allowed by the quota.
    quotaName string
    The name of the Object Storage quota.
    quotaUsage GetObjectStorageQuotaQuotaUsage
    The usage data for a specific Object Storage related quota on your account.
    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.
    id str
    The unique ID of the Object Storage quota data source.
    quota_id str
    quota_limit int
    The maximum quantity allowed by the quota.
    quota_name str
    The name of the Object Storage quota.
    quota_usage GetObjectStorageQuotaQuotaUsage
    The usage data for a specific Object Storage related quota on your account.
    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.
    id String
    The unique ID of the Object Storage quota data source.
    quotaId String
    quotaLimit Number
    The maximum quantity allowed by the quota.
    quotaName String
    The name of the Object Storage quota.
    quotaUsage Property Map
    The usage data for a specific Object Storage related quota on your account.
    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.

    Supporting Types

    GetObjectStorageQuotaQuotaUsage

    QuotaLimit int
    The maximum quantity allowed by the quota.
    Usage int
    The quantity of the Object Storage resource currently in use.
    QuotaLimit int
    The maximum quantity allowed by the quota.
    Usage int
    The quantity of the Object Storage resource currently in use.
    quotaLimit Integer
    The maximum quantity allowed by the quota.
    usage Integer
    The quantity of the Object Storage resource currently in use.
    quotaLimit number
    The maximum quantity allowed by the quota.
    usage number
    The quantity of the Object Storage resource currently in use.
    quota_limit int
    The maximum quantity allowed by the quota.
    usage int
    The quantity of the Object Storage resource currently in use.
    quotaLimit Number
    The maximum quantity allowed by the quota.
    usage Number
    The quantity of the Object Storage resource currently in use.

    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