Linode v4.39.0 published on Thursday, May 8, 2025 by Pulumi
linode.getObjectStorageQuota
Explore with Pulumi AI
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:
- Quota
Id string - The Object Storage quota ID.
- Quota
Id string - The Object Storage quota ID.
- quota
Id String - The Object Storage quota ID.
- quota
Id string - The Object Storage quota ID.
- quota_
id str - The Object Storage quota ID.
- quota
Id String - The Object Storage quota ID.
getObjectStorageQuota Result
The following output properties are available:
- Description string
- The description of the Object Storage quota.
- Endpoint
Type string - The type of the S3 endpoint of the Object Storage.
- Id string
- The unique ID of the Object Storage quota data source.
- Quota
Id string - Quota
Limit int - The maximum quantity allowed by the quota.
- Quota
Name string - The name of the Object Storage quota.
- Quota
Usage GetObject Storage Quota Quota Usage - The usage data for a specific Object Storage related quota on your account.
- Resource
Metric string - The specific Object Storage resource for the quota.
- S3Endpoint string
- The S3 endpoint URL of the Object Storage, based on the
endpoint_type
andregion
.
- Description string
- The description of the Object Storage quota.
- Endpoint
Type string - The type of the S3 endpoint of the Object Storage.
- Id string
- The unique ID of the Object Storage quota data source.
- Quota
Id string - Quota
Limit int - The maximum quantity allowed by the quota.
- Quota
Name string - The name of the Object Storage quota.
- Quota
Usage GetObject Storage Quota Quota Usage - The usage data for a specific Object Storage related quota on your account.
- Resource
Metric string - The specific Object Storage resource for the quota.
- S3Endpoint string
- The S3 endpoint URL of the Object Storage, based on the
endpoint_type
andregion
.
- description String
- The description of the Object Storage quota.
- endpoint
Type String - The type of the S3 endpoint of the Object Storage.
- id String
- The unique ID of the Object Storage quota data source.
- quota
Id String - quota
Limit Integer - The maximum quantity allowed by the quota.
- quota
Name String - The name of the Object Storage quota.
- quota
Usage GetObject Storage Quota Quota Usage - The usage data for a specific Object Storage related quota on your account.
- resource
Metric String - The specific Object Storage resource for the quota.
- s3Endpoint String
- The S3 endpoint URL of the Object Storage, based on the
endpoint_type
andregion
.
- description string
- The description of the Object Storage quota.
- endpoint
Type string - The type of the S3 endpoint of the Object Storage.
- id string
- The unique ID of the Object Storage quota data source.
- quota
Id string - quota
Limit number - The maximum quantity allowed by the quota.
- quota
Name string - The name of the Object Storage quota.
- quota
Usage GetObject Storage Quota Quota Usage - The usage data for a specific Object Storage related quota on your account.
- resource
Metric string - The specific Object Storage resource for the quota.
- s3Endpoint string
- The S3 endpoint URL of the Object Storage, based on the
endpoint_type
andregion
.
- 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 GetObject Storage Quota Quota Usage - 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
andregion
.
- description String
- The description of the Object Storage quota.
- endpoint
Type String - The type of the S3 endpoint of the Object Storage.
- id String
- The unique ID of the Object Storage quota data source.
- quota
Id String - quota
Limit Number - The maximum quantity allowed by the quota.
- quota
Name String - The name of the Object Storage quota.
- quota
Usage Property Map - The usage data for a specific Object Storage related quota on your account.
- resource
Metric String - The specific Object Storage resource for the quota.
- s3Endpoint String
- The S3 endpoint URL of the Object Storage, based on the
endpoint_type
andregion
.
Supporting Types
GetObjectStorageQuotaQuotaUsage
- Quota
Limit int - The maximum quantity allowed by the quota.
- Usage int
- 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.
- quota
Limit Integer - The maximum quantity allowed by the quota.
- usage Integer
- The quantity of the Object Storage resource currently in use.
- quota
Limit 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.
- quota
Limit 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.