linode.getObjectStorageQuotas
Explore with Pulumi AI
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.
- Match
By string - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- 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.
- Match
By string - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- 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.
- match
By String - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- 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.
- match
By string - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- 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
; defaultexact
)
- 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.
- match
By String - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
GetObjectStorageQuotasQuota
- Description string
- The description of the Object Storage quota.
- Endpoint
Type string - The type of the S3 endpoint of the Object Storage.
- Quota
Id string - The ID of the Object Storage quota.
- Quota
Limit int - The maximum quantity of the
resource_metric
allowed by the quota. - Quota
Name string - The name of the Object Storage quota.
- 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.
- Quota
Id string - The ID of the Object Storage quota.
- Quota
Limit int - The maximum quantity of the
resource_metric
allowed by the quota. - Quota
Name string - The name of the Object Storage quota.
- 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.
- quota
Id String - The ID of the Object Storage quota.
- quota
Limit Integer - The maximum quantity of the
resource_metric
allowed by the quota. - quota
Name String - The name of the Object Storage quota.
- 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.
- quota
Id string - The ID of the Object Storage quota.
- quota
Limit number - The maximum quantity of the
resource_metric
allowed by the quota. - quota
Name string - The name of the Object Storage quota.
- 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.
- 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
andregion
.
- description String
- The description of the Object Storage quota.
- endpoint
Type String - The type of the S3 endpoint of the Object Storage.
- quota
Id String - The ID of the Object Storage quota.
- quota
Limit Number - The maximum quantity of the
resource_metric
allowed by the quota. - quota
Name String - The name of the Object Storage quota.
- 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
.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.