Storage Policies

List storage policies for a bucket

Changed on
get/projects/{id}/storage/buckets/{bucketName}/policies

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

bucketName, string required

Storage bucket name

Response

List of policies

StoragePolicy[] required
id, string uuid required
bucket_id, string uuid required
name, string required

Policy name (unique within bucket)

operation, 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE' required

Operation this policy applies to

definition, string required

Policy expression evaluated at request time. Examples:

  • "true" - Allow all
  • "auth.uid() = owner_id" - Owner only
  • "auth.role() = 'authenticated'" - Authenticated users
  • "(storage.foldername(name))[1] = auth.uid()::text" - User's folder
created_at, string date-time
updated_at, string date-time

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter bucketName

    • breaking

      added the new path request parameter id

    8 more changes in this revision