你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ObjectReplicationPolicy Class

Policy id and rule ids applied to a blob.

Constructor

Python
ObjectReplicationPolicy(**kwargs: Any)

Methods

get

Python
get(key, default=None)

Parameters

Name Description
key
Required
default
Required
Default value: None

has_key

Python
has_key(k)

Parameters

Name Description
k
Required

items

Python
items()

keys

Python
keys()

update

Python
update(*args, **kwargs)

values

Python
values()

Attributes

policy_id

Policy id for the blob. A replication policy gets created (policy id) when creating a source/destination pair.

Python
policy_id: str

rules

Within each policy there may be multiple replication rules. e.g. rule 1= src/container/.pdf to dst/container2/; rule2 = src/container1/.jpg to dst/container3

Python
rules: List[ObjectReplicationRule]