Skip to main content
Version: v0

getBucket()

Retrieves the details of an existing Storage bucket.

final res = await supabase
.storage
.getBucket('avatars')

Parameters

  • idrequiredstring

    The unique identifier of the bucket you would like to retrieve.

Notes

  • Policy permissions required:
    • buckets permissions: select
    • objects permissions: none

Examples

Get bucket

final res = await supabase
.storage
.getBucket('avatars')