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.
Digital Ocean. Inputs. Get Spaces Buckets Filter Args> Filter the results. The
filterblock is documented below.- Sorts
List<Pulumi.
Digital Ocean. Inputs. Get Spaces Buckets Sort Args> Sort the results. The
sortblock is documented below.
- Filters
[]Get
Spaces Buckets Filter Filter the results. The
filterblock is documented below.- Sorts
[]Get
Spaces Buckets Sort Sort the results. The
sortblock is documented below.
- filters
Get
Spaces Buckets Filter[] Filter the results. The
filterblock is documented below.- sorts
Get
Spaces Buckets Sort[] Sort the results. The
sortblock is documented below.
- filters
List[Get
Spaces Buckets Filter] Filter the results. The
filterblock is documented below.- sorts
List[Get
Spaces Buckets Sort] Sort the results. The
sortblock is documented below.
GetSpacesBuckets Result
The following output properties are available:
- Buckets
List<Pulumi.
Digital Ocean. Outputs. Get Spaces Buckets Bucket> A list of Spaces buckets satisfying any
filterandsortcriteria. Each bucket has the following attributes:- Id string
The provider-assigned unique ID for this managed resource.
- Filters
List<Pulumi.
Digital Ocean. Outputs. Get Spaces Buckets Filter> - Sorts
List<Pulumi.
Digital Ocean. Outputs. Get Spaces Buckets Sort>
- Buckets
[]Get
Spaces Buckets Bucket A list of Spaces buckets satisfying any
filterandsortcriteria. Each bucket has the following attributes:- Id string
The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Spaces Buckets Filter - Sorts
[]Get
Spaces Buckets Sort
- buckets
Get
Spaces Buckets Bucket[] A list of Spaces buckets satisfying any
filterandsortcriteria. Each bucket has the following attributes:- id string
The provider-assigned unique ID for this managed resource.
- filters
Get
Spaces Buckets Filter[] - sorts
Get
Spaces Buckets Sort[]
- buckets
List[Get
Spaces Buckets Bucket] A list of Spaces buckets satisfying any
filterandsortcriteria. Each bucket has the following attributes:- id str
The provider-assigned unique ID for this managed resource.
- filters
List[Get
Spaces Buckets Filter] - sorts
List[Get
Spaces Buckets Sort]
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.
GetSpacesBucketsFilter
- Key string
Filter the images by this key. This may be one of
bucket_domain_name,name,region, orurn.- Values List<string>
A list of values to match against the
keyfield. Only retrieves images where thekeyfield takes on one or more of the values provided here.
GetSpacesBucketsSort
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.