Storage Policies

Create a storage policy

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

Request

  • Base URL: https://api.volcano.dev
  • URL: https://api.volcano.dev/projects/{id}/storage/buckets/{bucketName}/policies
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring uuid required

Project ID

bucketNamestring required

Storage bucket name

Request body

namestring required

Policy name

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

Operation this policy applies to

definitionstring required

Policy expression

Response

Policy created

idstring uuid required
bucket_idstring uuid required
namestring required

Policy name (unique within bucket)

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

Operation this policy applies to

definitionstring 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_atstring date-time
updated_atstring date-time

Changes

    • ○

      the endpoint scheme security ProjectAccessToken was added to the API

    • ▲

      added the new path request parameter bucketName

    • ▲

      added the new path request parameter id

    • ▲

      added the new required request property

    • ▲

      added the new required request property

    • ▲

      added the new required request property

    • ▲

      the request's body type changed from no type to object

    • ▲

      the response's body type changed from no type to object for status

    • ○

      added the optional property to the response with the status

    • ○

      added the optional property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status