다음을 통해 공유


AccountPermissions Class

ResourceTypes class to be used with generate_shared_access_signature method and for the AccessPolicies used with set_*_acl. There are two types of SAS which may be used to grant resource access. One is to grant access to a specific resource (resource-specific). Another is to grant access to the entire service for a specific account and allow certain operations based on perms found here.

Inheritance
builtins.object
AccountPermissions

Constructor

AccountPermissions(read=False, write=False, delete=False, list=False, add=False, create=False, update=False, process=False, _str=None)

Parameters

Name Description
read

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

Default value: False
write

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

Default value: False
delete

Valid for Container and Object resource types, except for queue messages.

Default value: False
list

Valid for Service and Container resource types only.

Default value: False
add

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

Default value: 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: False
update

Valid for the following Object resource types only: queue messages.

Default value: False
process

Valid for the following Object resource type only: queue messages.

Default value: False
_str
str

A string representing the permissions.

Default value: None

Variables

Name Description
AccountPermissions.ADD

Valid for the following Object resource types only: queue messages and append blobs.

AccountPermissions.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.

AccountPermissions.DELETE

Valid for Container and Object resource types, except for queue messages.

AccountPermissions.LIST

Valid for Service and Container resource types only.

AccountPermissions.PROCESS

Valid for the following Object resource type only: queue messages.

AccountPermissions.READ

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

AccountPermissions.UPDATE

Valid for the following Object resource types only: queue messages.

AccountPermissions.WRITE

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

Attributes

ADD

ADD = <azure.storage.common.models.AccountPermissions object>

CREATE

CREATE = <azure.storage.common.models.AccountPermissions object>

DELETE

DELETE = <azure.storage.common.models.AccountPermissions object>

LIST

LIST = <azure.storage.common.models.AccountPermissions object>

PROCESS

PROCESS = <azure.storage.common.models.AccountPermissions object>

READ

READ = <azure.storage.common.models.AccountPermissions object>

UPDATE

UPDATE = <azure.storage.common.models.AccountPermissions object>

WRITE

WRITE = <azure.storage.common.models.AccountPermissions object>