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)

Variables

Name Description
name
str

Name of the container.

last_modified

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

etag
str

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

lease

Stores all the lease information for the container.

public_access
str

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

has_immutability_policy

Represents whether the container has an immutability policy.

has_legal_hold

Represents whether the container has a legal hold.

immutable_storage_with_versioning_enabled

Represents whether immutable storage with versioning enabled on the container.

New in version 12.10.0: This was introduced in API version '2020-10-02'.

metadata

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

encryption_scope

The default encryption scope configuration for the container.

deleted

Whether this container was deleted.

version
str

The version of a deleted container.

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()