ContainerPermissions Class

ContainerPermissions class to be used with generate_container_shared_access_signature API and for the AccessPolicies used with set_container_acl.

Inheritance
builtins.object
ContainerPermissions

Constructor

ContainerPermissions(read=False, add=False, create=False, write=False, delete=False, list=False, _str=None)

Parameters

Name Description
read

Read the content, properties, metadata or block list of any blob in the container. Use any blob in the container as the source of a copy operation.

default value: False
add

Add a block to any append blob in the container.

default value: False
create

Write a new blob to the container, snapshot any blob in the container, or copy a blob to a new blob in the container. Note: You cannot grant permissions to create a container with a container SAS. Use an account SAS to create a container instead.

default value: False
write

For any blob in the container, create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account. Note: You cannot grant permissions to read or write container properties or metadata, nor to lease a container, with a container SAS. Use an account SAS instead.

default value: False
delete

Delete any blob in the container. Note: You cannot grant permissions to delete a container with a container SAS. Use an account SAS instead.

default value: False
list

List blobs in the container.

default value: False
_str
str

A string representing the permissions.

default value: None

Variables

Name Description
ContainerPermissions.DELETE

Delete any blob in the container. Note: You cannot grant permissions to delete a container with a container SAS. Use an account SAS instead.

ContainerPermissions.LIST

List blobs in the container.

ContainerPermissions.READ

Read the content, properties, metadata or block list of any blob in the container. Use any blob in the container as the source of a copy operation.

ContainerPermissions.WRITE

For any blob in the container, create or write content, properties, metadata, or block list. Snapshot or lease the blob. Resize the blob (page blob only). Use the blob as the destination of a copy operation within the same account. Note: You cannot grant permissions to read or write container properties or metadata, nor to lease a container, with a container SAS. Use an account SAS instead.

Attributes

ADD

ADD = <azure.storage.blob.models.ContainerPermissions object>

CREATE

CREATE = <azure.storage.blob.models.ContainerPermissions object>

DELETE

DELETE = <azure.storage.blob.models.ContainerPermissions object>

LIST

LIST = <azure.storage.blob.models.ContainerPermissions object>

READ

READ = <azure.storage.blob.models.ContainerPermissions object>

WRITE

WRITE = <azure.storage.blob.models.ContainerPermissions object>