AccountSasPermissions Class

AccountSasPermissions class to be used with generate_account_sas.

Constructor

Python
AccountSasPermissions(**kwargs: Any)

Keyword-Only Parameters

Name Description
read

Valid for all signed resources types (Service, Container, and Object). Permits read permissions to the specified resource type. Default value is False.

write

Valid for all signed resources types (Service, Container, and Object). Permits write permissions to the specified resource type. Default value is False.

delete

Valid for Container and Object resource types, except for queue messages. Default value is False.

list

Valid for Service and Container resource types only. Default value is False.

add

Valid for the following Object resource types only: queue messages, and append blobs. Default value is False.

create

Valid for the following Object resource types only: blobs and files. Users can create new blobs or files, but may not overwrite existing blobs or files. Default value is False.

update

Valid for the following Object resource types only: queue messages. Default value is False.

process

Valid for the following Object resource type only: queue messages. Default value is False.

Methods

from_string

Create AccountSasPermissions from a string.

To specify read, write, delete, etc. permissions you need only to include the first letter of the word in the string. E.g. for read and write permissions you would provide a string "rw".

from_string

Create AccountSasPermissions from a string.

To specify read, write, delete, etc. permissions you need only to include the first letter of the word in the string. E.g. for read and write permissions you would provide a string "rw".

Python
from_string(permission: str, **kwargs: Any) -> AccountSasPermissions

Parameters

Name Description
permission
Required
str

Specify permissions in the string with the first letter of the word.

Returns

Type Description

An AccountSasPermissions object

Attributes

add

Python
add: bool

create

Python
create: bool

delete

Python
delete: bool

list

Python
list: bool

process

Python
process: bool

read

Python
read: bool

update

Python
update: bool

write

Python
write: bool