getBucket()

检索现有bucket的详情信息。

const { data, error } = await supabase
  .storage
  .getBucket('avatars')

Parameters

  • id required string

    要检索的bucket的唯一标识符。

Notes

  • 所需的策略权限:
    • buckets 权限: select
    • objects 权限: none

Examples

获得bucket

const { data, error } = await supabase
  .storage
  .getBucket('avatars')

results matching ""

    No results matching ""