getBucket()
Retrieves the details of an existing Storage bucket.
const { data, error } = await supabase
.storage
.getBucket('avatars')
Parameters
idrequired
string
The unique identifier of the bucket you would like to retrieve.
Notes
- Policy permissions required:
buckets
permissions:select
objects
permissions: none
Examples
Get bucket
const { data, error } = await supabase
.storage
.getBucket('avatars')