ContainerProperties Class

Blob container's properties class.

Returned ContainerProperties instances expose these values through a dictionary interface, for example: container_props["last_modified"]. Additionally, the container name is available as container_props["name"].

Inheritance
azure.storage.blob._shared.models.DictMixin
ContainerProperties

Constructor

ContainerProperties(**kwargs: Any)

Methods

get
has_key
items
keys
update
values

get

get(key, default=None)

Parameters

Name Description
key
Required
default
Default value: None

has_key

has_key(k)

Parameters

Name Description
k
Required

items

items()

keys

keys()

update

update(*args, **kwargs)

values

values()

Attributes

deleted

Whether this container was deleted.

deleted: bool | None

encryption_scope

The default encryption scope configuration for the container.

encryption_scope: ContainerEncryptionScope | None

etag

The ETag contains a value that you can use to perform operations conditionally.

etag: str

has_immutability_policy

Represents whether the container has an immutability policy.

has_immutability_policy: bool

Represents whether the container has a legal hold.

has_legal_hold: bool

immutable_storage_with_versioning_enabled

Represents whether immutable storage with versioning enabled on the container.

immutable_storage_with_versioning_enabled: bool

last_modified

A datetime object representing the last time the container was modified.

last_modified: datetime

lease

Stores all the lease information for the container.

lease: LeaseProperties

metadata

A dict with name-value pairs to associate with the container as metadata.

metadata: Dict[str, Any]

name

Name of the container.

name: str

public_access

Specifies whether data in the container may be accessed publicly and the level of access.

public_access: str | None

version

The version of a deleted container.

version: str | None