Storage Policies
List storage policies for a bucket
Changed onget/projects/{id}/storage/buckets/{bucketName}/policies
Request
- Base URLhttps://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
Storage Policy[] 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
ProjectAccessTokenwas added to the API
- info
- breaking
added the new path request parameter
bucketName - breaking
added the new path request parameter
id
8 more changes in this revision
- breaking