1. Packages
  2. DanubeData
  3. API Docs
  4. getStorageBuckets
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
danubedata logo
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 dictionary

    getStorageBuckets Result

    The following output properties are available:

    Buckets List<DanubeData.DanubeData.Outputs.GetStorageBucketsBucket>
    List of storage buckets. Each bucket contains:
    Id string
    The provider-assigned unique ID for this managed resource.
    Buckets []GetStorageBucketsBucket
    List of storage buckets. Each bucket contains:
    Id string
    The provider-assigned unique ID for this managed resource.
    buckets List<GetStorageBucketsBucket>
    List of storage buckets. Each bucket contains:
    id String
    The provider-assigned unique ID for this managed resource.
    buckets GetStorageBucketsBucket[]
    List of storage buckets. Each bucket contains:
    id string
    The provider-assigned unique ID for this managed resource.
    buckets Sequence[GetStorageBucketsBucket]
    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

    CreatedAt string
    Timestamp when the bucket was created.
    DisplayName string
    Human-readable display name.
    EncryptionEnabled bool
    Whether encryption is enabled.
    EndpointUrl string
    S3-compatible endpoint URL.
    Id string
    Unique identifier for the bucket.
    MinioBucketName string
    Internal bucket name for S3 operations.
    MonthlyCost double
    Estimated monthly cost.
    Name string
    Name of the bucket.
    ObjectCount int
    Number of objects in the bucket.
    PublicAccess bool
    Whether public access is enabled.
    PublicUrl string
    Public URL (if public access enabled).
    Region string
    Region where the bucket is located.
    SizeBytes int
    Current size in bytes.
    Status string
    Current status.
    VersioningEnabled bool
    Whether versioning is enabled.
    CreatedAt string
    Timestamp when the bucket was created.
    DisplayName string
    Human-readable display name.
    EncryptionEnabled bool
    Whether encryption is enabled.
    EndpointUrl string
    S3-compatible endpoint URL.
    Id string
    Unique identifier for the bucket.
    MinioBucketName string
    Internal bucket name for S3 operations.
    MonthlyCost float64
    Estimated monthly cost.
    Name string
    Name of the bucket.
    ObjectCount int
    Number of objects in the bucket.
    PublicAccess bool
    Whether public access is enabled.
    PublicUrl string
    Public URL (if public access enabled).
    Region string
    Region where the bucket is located.
    SizeBytes int
    Current size in bytes.
    Status string
    Current status.
    VersioningEnabled bool
    Whether versioning is enabled.
    createdAt String
    Timestamp when the bucket was created.
    displayName String
    Human-readable display name.
    encryptionEnabled Boolean
    Whether encryption is enabled.
    endpointUrl String
    S3-compatible endpoint URL.
    id String
    Unique identifier for the bucket.
    minioBucketName String
    Internal bucket name for S3 operations.
    monthlyCost Double
    Estimated monthly cost.
    name String
    Name of the bucket.
    objectCount Integer
    Number of objects in the bucket.
    publicAccess Boolean
    Whether public access is enabled.
    publicUrl String
    Public URL (if public access enabled).
    region String
    Region where the bucket is located.
    sizeBytes Integer
    Current size in bytes.
    status String
    Current status.
    versioningEnabled Boolean
    Whether versioning is enabled.
    createdAt string
    Timestamp when the bucket was created.
    displayName string
    Human-readable display name.
    encryptionEnabled boolean
    Whether encryption is enabled.
    endpointUrl string
    S3-compatible endpoint URL.
    id string
    Unique identifier for the bucket.
    minioBucketName string
    Internal bucket name for S3 operations.
    monthlyCost number
    Estimated monthly cost.
    name string
    Name of the bucket.
    objectCount number
    Number of objects in the bucket.
    publicAccess boolean
    Whether public access is enabled.
    publicUrl string
    Public URL (if public access enabled).
    region string
    Region where the bucket is located.
    sizeBytes number
    Current size in bytes.
    status string
    Current status.
    versioningEnabled 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_name str
    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.
    createdAt String
    Timestamp when the bucket was created.
    displayName String
    Human-readable display name.
    encryptionEnabled Boolean
    Whether encryption is enabled.
    endpointUrl String
    S3-compatible endpoint URL.
    id String
    Unique identifier for the bucket.
    minioBucketName String
    Internal bucket name for S3 operations.
    monthlyCost Number
    Estimated monthly cost.
    name String
    Name of the bucket.
    objectCount Number
    Number of objects in the bucket.
    publicAccess Boolean
    Whether public access is enabled.
    publicUrl String
    Public URL (if public access enabled).
    region String
    Region where the bucket is located.
    sizeBytes Number
    Current size in bytes.
    status String
    Current status.
    versioningEnabled Boolean
    Whether versioning is enabled.

    Package Details

    Repository
    danubedata AdrianSilaghi/pulumi-danubedata
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the danubedata Terraform Provider.
    danubedata logo
    DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
      Meet Neo: Your AI Platform Teammate