Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between the SharedAccessBlobPermissions values Add, Create and Write?

Tags:

The possible values for SharedAccessBlobPermissions are:

  • None (0)
  • Read (1)
  • Write (2)
  • Delete (4)
  • List (8)
  • Add (16)
  • Create (32)

What are the differences between Add, Create and Write? I can't find any documentation that clarifies this.

like image 744
guyr Avatar asked Dec 29 '15 00:12

guyr


People also ask

What is generate SAS in Azure?

A shared access signature (SAS) enables you to grant limited access to containers and blobs in your storage account. When you create a SAS, you specify its constraints, including which Azure Storage resources a client is allowed to access, what permissions they have on those resources, and how long the SAS is valid.

What is azure shared access signature?

A shared access signature (SAS) is a URI that grants restricted access rights to Azure Storage resources. You can provide a shared access signature to clients who should not be trusted with your storage account key but to whom you wish to delegate access to certain storage account resources.

What is SAS token authentication in Azure?

SAS token. The SAS token is a string that you generate on the client side, for example by using one of the Azure Storage client libraries. The SAS token is not tracked by Azure Storage in any way. You can create an unlimited number of SAS tokens on the client side.


1 Answers

You can find information about these permissions here: https://msdn.microsoft.com/en-us/library/azure/dn140255.aspx.

From what I understand reading about these permissions:

  • Add: Add permission is only applicable for append blobs. You use this permission to add a block to an append blob. No other operation is possible using this permission.
  • Create: Create permission only allows creation of blobs or in other words you can't update a blob with this permission. This would include writing a new blob, take a snapshot of an existing blob, or copy a blob to a new blob.
  • Write: Write permission allows creation and updation of blobs. This would include create or write content, properties, metadata, or block list, take a snapshot or manage lease on a blob and resize the blob (page blob only).

In our application, we use Shared Access Signature extensively and we make use of Write permission almost exclusively on all the blob related operations.

like image 155
Gaurav Mantri Avatar answered Oct 27 '22 12:10

Gaurav Mantri