GetSpacesBuckets

Get information on Spaces buckets for use in other resources, with the ability to filter and sort the results. If no filters are specified, all Spaces buckets will be returned.

Note: You can use the digitalocean..SpacesBucket data source to obtain metadata about a single bucket if you already know its name and region.

Example Usage

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

class MyStack : Stack
{
    public MyStack()
    {
        var nyc3 = Output.Create(DigitalOcean.GetSpacesBuckets.InvokeAsync(new DigitalOcean.GetSpacesBucketsArgs
        {
            Filters = 
            {
                new DigitalOcean.Inputs.GetSpacesBucketsFilterArgs
                {
                    Key = "region",
                    Values = 
                    {
                        "nyc3",
                    },
                },
            },
        }));
    }

}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

nyc3 = digitalocean.get_spaces_buckets(filters=[{
    "key": "region",
    "values": ["nyc3"],
}])
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const nyc3 = pulumi.output(digitalocean.getSpacesBuckets({
    filters: [{
        key: "region",
        values: ["nyc3"],
    }],
}, { async: true }));

Using GetSpacesBuckets

function getSpacesBuckets(args: GetSpacesBucketsArgs, opts?: InvokeOptions): Promise<GetSpacesBucketsResult>
function  get_spaces_buckets(filters=None, sorts=None, opts=None)
func GetSpacesBuckets(ctx *Context, args *GetSpacesBucketsArgs, opts ...InvokeOption) (*GetSpacesBucketsResult, error)
public static class GetSpacesBuckets {
    public static Task<GetSpacesBucketsResult> InvokeAsync(GetSpacesBucketsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<Pulumi.DigitalOcean.Inputs.GetSpacesBucketsFilterArgs>

Filter the results. The filter block is documented below.

Sorts List<Pulumi.DigitalOcean.Inputs.GetSpacesBucketsSortArgs>

Sort the results. The sort block is documented below.

Filters []GetSpacesBucketsFilter

Filter the results. The filter block is documented below.

Sorts []GetSpacesBucketsSort

Sort the results. The sort block is documented below.

filters GetSpacesBucketsFilter[]

Filter the results. The filter block is documented below.

sorts GetSpacesBucketsSort[]

Sort the results. The sort block is documented below.

filters List[GetSpacesBucketsFilter]

Filter the results. The filter block is documented below.

sorts List[GetSpacesBucketsSort]

Sort the results. The sort block is documented below.

GetSpacesBuckets Result

The following output properties are available:

Buckets List<Pulumi.DigitalOcean.Outputs.GetSpacesBucketsBucket>

A list of Spaces buckets satisfying any filter and sort criteria. Each bucket has the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Filters List<Pulumi.DigitalOcean.Outputs.GetSpacesBucketsFilter>
Sorts List<Pulumi.DigitalOcean.Outputs.GetSpacesBucketsSort>
Buckets []GetSpacesBucketsBucket

A list of Spaces buckets satisfying any filter and sort criteria. Each bucket has the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetSpacesBucketsFilter
Sorts []GetSpacesBucketsSort
buckets GetSpacesBucketsBucket[]

A list of Spaces buckets satisfying any filter and sort criteria. Each bucket has the following attributes:

id string

The provider-assigned unique ID for this managed resource.

filters GetSpacesBucketsFilter[]
sorts GetSpacesBucketsSort[]
buckets List[GetSpacesBucketsBucket]

A list of Spaces buckets satisfying any filter and sort criteria. Each bucket has the following attributes:

id str

The provider-assigned unique ID for this managed resource.

filters List[GetSpacesBucketsFilter]
sorts List[GetSpacesBucketsSort]

Supporting Types

GetSpacesBucketsBucket

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

BucketDomainName string
Name string
Region string
Urn string
BucketDomainName string
Name string
Region string
Urn string
bucketDomainName string
name string
region string
urn string
bucket_domain_name str
name str
region str
urn str

GetSpacesBucketsFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string

Filter the images by this key. This may be one of bucket_domain_name, name, region, or urn.

Values List<string>

A list of values to match against the key field. Only retrieves images where the key field takes on one or more of the values provided here.

Key string

Filter the images by this key. This may be one of bucket_domain_name, name, region, or urn.

Values []string

A list of values to match against the key field. Only retrieves images where the key field takes on one or more of the values provided here.

key string

Filter the images by this key. This may be one of bucket_domain_name, name, region, or urn.

values string[]

A list of values to match against the key field. Only retrieves images where the key field takes on one or more of the values provided here.

key str

Filter the images by this key. This may be one of bucket_domain_name, name, region, or urn.

values List[str]

A list of values to match against the key field. Only retrieves images where the key field takes on one or more of the values provided here.

GetSpacesBucketsSort

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string

Sort the images by this key. This may be one of bucket_domain_name, name, region, or urn.

Direction string

The sort direction. This may be either asc or desc.

Key string

Sort the images by this key. This may be one of bucket_domain_name, name, region, or urn.

Direction string

The sort direction. This may be either asc or desc.

key string

Sort the images by this key. This may be one of bucket_domain_name, name, region, or urn.

direction string

The sort direction. This may be either asc or desc.

key str

Sort the images by this key. This may be one of bucket_domain_name, name, region, or urn.

direction str

The sort direction. This may be either asc or desc.

Package Details

Repository
https://github.com/pulumi/pulumi-digitalocean
License
Apache-2.0
Notes
This Pulumi package is based on the digitalocean Terraform Provider.