get Spaces Buckets
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
Use the filter
block with a key
string and values
list to filter buckets. Get all buckets in a region:
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetSpacesBucketsArgs;
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 nyc3 = DigitaloceanFunctions.getSpacesBuckets(GetSpacesBucketsArgs.builder()
.filters(GetSpacesBucketsFilterArgs.builder()
.key("region")
.values("nyc3")
.build())
.build());
}
}
Return
A collection of values returned by getSpacesBuckets.
Parameters
A collection of arguments for invoking getSpacesBuckets.
Return
A collection of values returned by getSpacesBuckets.
See also
Parameters
Filter the results. The filter
block is documented below.
Sort the results. The sort
block is documented below.
Return
A collection of values returned by getSpacesBuckets.
See also
Parameters
Builder for com.pulumi.digitalocean.kotlin.inputs.GetSpacesBucketsPlainArgs.