DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
# danubedata.getStorageBuckets
Lists all S3-compatible storage buckets in your account.
Find Bucket by Name
import * as pulumi from "@pulumi/pulumi";
import * as danubedata from "@pulumi/danubedata";
const all = danubedata.getStorageBuckets({});
const assetsBucket = all.then(all => .filter(b => b.name == "assets").map(b => (b))[0]);
export const assetsEndpoint = assetsBucket.endpointUrl;
export const assetsBucketName = assetsBucket.minioBucketName;
import pulumi
import pulumi_danubedata as danubedata
all = danubedata.get_storage_buckets()
assets_bucket = [b for b in all.buckets if b.name == "assets"][0]
pulumi.export("assetsEndpoint", assets_bucket.endpoint_url)
pulumi.export("assetsBucketName", assets_bucket.minio_bucket_name)
package main
import (
"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
all, err := danubedata.GetStorageBuckets(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
assetsBucket := "TODO: For expression"[0]
ctx.Export("assetsEndpoint", assetsBucket.EndpointUrl)
ctx.Export("assetsBucketName", assetsBucket.MinioBucketName)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DanubeData = Pulumi.DanubeData;
return await Deployment.RunAsync(() =>
{
var all = DanubeData.GetStorageBuckets.Invoke();
var assetsBucket = .Where(b => b.Name == "assets").Select(b =>
{
return b;
}).ToList()[0];
return new Dictionary<string, object?>
{
["assetsEndpoint"] = assetsBucket.EndpointUrl,
["assetsBucketName"] = assetsBucket.MinioBucketName,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.danubedata.DanubedataFunctions;
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 all = DanubedataFunctions.getStorageBuckets();
final var assetsBucket = "TODO: ForExpression"[0];
ctx.export("assetsEndpoint", assetsBucket.endpointUrl());
ctx.export("assetsBucketName", assetsBucket.minioBucketName());
}
}
Example coming soon!
Filter Public Buckets
import * as pulumi from "@pulumi/pulumi";
import * as danubedata from "@pulumi/danubedata";
const all = danubedata.getStorageBuckets({});
const publicBuckets = all.then(all => .filter(b => b.publicAccess).map(b => (b)));
export const publicBucketUrls = publicBuckets.apply(publicBuckets => publicBuckets.map(b => (b.publicUrl)));
import pulumi
import pulumi_danubedata as danubedata
all = danubedata.get_storage_buckets()
public_buckets = [b for b in all.buckets if b.public_access]
pulumi.export("publicBucketUrls", [b.public_url for b in public_buckets])
package main
import (
"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
all, err := danubedata.GetStorageBuckets(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
publicBuckets := "TODO: For expression"
ctx.Export("publicBucketUrls", pulumi.StringArray("TODO: For expression"))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DanubeData = Pulumi.DanubeData;
return await Deployment.RunAsync(() =>
{
var all = DanubeData.GetStorageBuckets.Invoke();
var publicBuckets = ;
return new Dictionary<string, object?>
{
["publicBucketUrls"] = publicBuckets.Apply(publicBuckets => publicBuckets.Select(b =>
{
return b.PublicUrl;
}).ToList()),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.danubedata.DanubedataFunctions;
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 all = DanubedataFunctions.getStorageBuckets();
final var publicBuckets = "TODO: ForExpression";
ctx.export("publicBucketUrls", "TODO: ForExpression");
}
}
Example coming soon!
Using getStorageBuckets
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 getStorageBuckets(opts?: InvokeOptions): Promise<GetStorageBucketsResult>
function getStorageBucketsOutput(opts?: InvokeOptions): Output<GetStorageBucketsResult>def get_storage_buckets(opts: Optional[InvokeOptions] = None) -> GetStorageBucketsResult
def get_storage_buckets_output(opts: Optional[InvokeOptions] = None) -> Output[GetStorageBucketsResult]func GetStorageBuckets(ctx *Context, opts ...InvokeOption) (*GetStorageBucketsResult, error)
func GetStorageBucketsOutput(ctx *Context, opts ...InvokeOption) GetStorageBucketsResultOutput> Note: This function is named GetStorageBuckets in the Go SDK.
public static class GetStorageBuckets
{
public static Task<GetStorageBucketsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetStorageBucketsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageBucketsResult> getStorageBuckets(InvokeOptions options)
public static Output<GetStorageBucketsResult> getStorageBuckets(InvokeOptions options)
fn::invoke:
function: danubedata:index/getStorageBuckets:getStorageBuckets
arguments:
# arguments dictionarygetStorageBuckets Result
The following output properties are available:
- Buckets
List<Danube
Data. Danube Data. Outputs. Get Storage Buckets Bucket> - List of storage buckets. Each bucket contains:
- Id string
- The provider-assigned unique ID for this managed resource.
- Buckets
[]Get
Storage Buckets Bucket - List of storage buckets. Each bucket contains:
- Id string
- The provider-assigned unique ID for this managed resource.
- buckets
List<Get
Storage Buckets Bucket> - List of storage buckets. Each bucket contains:
- id String
- The provider-assigned unique ID for this managed resource.
- buckets
Get
Storage Buckets Bucket[] - List of storage buckets. Each bucket contains:
- id string
- The provider-assigned unique ID for this managed resource.
- buckets
Sequence[Get
Storage Buckets Bucket] - List of storage buckets. Each bucket contains:
- id str
- The provider-assigned unique ID for this managed resource.
- buckets List<Property Map>
- List of storage buckets. Each bucket contains:
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetStorageBucketsBucket
- Created
At string - Timestamp when the bucket was created.
- Display
Name string - Human-readable display name.
- Encryption
Enabled bool - Whether encryption is enabled.
- Endpoint
Url string - S3-compatible endpoint URL.
- Id string
- Unique identifier for the bucket.
- Minio
Bucket stringName - Internal bucket name for S3 operations.
- Monthly
Cost double - Estimated monthly cost.
- Name string
- Name of the bucket.
- Object
Count int - Number of objects in the bucket.
- Public
Access bool - Whether public access is enabled.
- Public
Url string - Public URL (if public access enabled).
- Region string
- Region where the bucket is located.
- Size
Bytes int - Current size in bytes.
- Status string
- Current status.
- Versioning
Enabled bool - Whether versioning is enabled.
- Created
At string - Timestamp when the bucket was created.
- Display
Name string - Human-readable display name.
- Encryption
Enabled bool - Whether encryption is enabled.
- Endpoint
Url string - S3-compatible endpoint URL.
- Id string
- Unique identifier for the bucket.
- Minio
Bucket stringName - Internal bucket name for S3 operations.
- Monthly
Cost float64 - Estimated monthly cost.
- Name string
- Name of the bucket.
- Object
Count int - Number of objects in the bucket.
- Public
Access bool - Whether public access is enabled.
- Public
Url string - Public URL (if public access enabled).
- Region string
- Region where the bucket is located.
- Size
Bytes int - Current size in bytes.
- Status string
- Current status.
- Versioning
Enabled bool - Whether versioning is enabled.
- created
At String - Timestamp when the bucket was created.
- display
Name String - Human-readable display name.
- encryption
Enabled Boolean - Whether encryption is enabled.
- endpoint
Url String - S3-compatible endpoint URL.
- id String
- Unique identifier for the bucket.
- minio
Bucket StringName - Internal bucket name for S3 operations.
- monthly
Cost Double - Estimated monthly cost.
- name String
- Name of the bucket.
- object
Count Integer - Number of objects in the bucket.
- public
Access Boolean - Whether public access is enabled.
- public
Url String - Public URL (if public access enabled).
- region String
- Region where the bucket is located.
- size
Bytes Integer - Current size in bytes.
- status String
- Current status.
- versioning
Enabled Boolean - Whether versioning is enabled.
- created
At string - Timestamp when the bucket was created.
- display
Name string - Human-readable display name.
- encryption
Enabled boolean - Whether encryption is enabled.
- endpoint
Url string - S3-compatible endpoint URL.
- id string
- Unique identifier for the bucket.
- minio
Bucket stringName - Internal bucket name for S3 operations.
- monthly
Cost number - Estimated monthly cost.
- name string
- Name of the bucket.
- object
Count number - Number of objects in the bucket.
- public
Access boolean - Whether public access is enabled.
- public
Url string - Public URL (if public access enabled).
- region string
- Region where the bucket is located.
- size
Bytes number - Current size in bytes.
- status string
- Current status.
- versioning
Enabled boolean - Whether versioning is enabled.
- created_
at str - Timestamp when the bucket was created.
- display_
name str - Human-readable display name.
- encryption_
enabled bool - Whether encryption is enabled.
- endpoint_
url str - S3-compatible endpoint URL.
- id str
- Unique identifier for the bucket.
- minio_
bucket_ strname - Internal bucket name for S3 operations.
- monthly_
cost float - Estimated monthly cost.
- name str
- Name of the bucket.
- object_
count int - Number of objects in the bucket.
- public_
access bool - Whether public access is enabled.
- public_
url str - Public URL (if public access enabled).
- region str
- Region where the bucket is located.
- size_
bytes int - Current size in bytes.
- status str
- Current status.
- versioning_
enabled bool - Whether versioning is enabled.
- created
At String - Timestamp when the bucket was created.
- display
Name String - Human-readable display name.
- encryption
Enabled Boolean - Whether encryption is enabled.
- endpoint
Url String - S3-compatible endpoint URL.
- id String
- Unique identifier for the bucket.
- minio
Bucket StringName - Internal bucket name for S3 operations.
- monthly
Cost Number - Estimated monthly cost.
- name String
- Name of the bucket.
- object
Count Number - Number of objects in the bucket.
- public
Access Boolean - Whether public access is enabled.
- public
Url String - Public URL (if public access enabled).
- region String
- Region where the bucket is located.
- size
Bytes Number - Current size in bytes.
- status String
- Current status.
- versioning
Enabled Boolean - Whether versioning is enabled.
Package Details
- Repository
- danubedata AdrianSilaghi/pulumi-danubedata
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
danubedataTerraform Provider.
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
