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

AccountImmutabilityPolicyProperties Class

This defines account-level immutability policy properties.

Inheritance
azure.mgmt.storage._serialization.Model
AccountImmutabilityPolicyProperties

Constructor

AccountImmutabilityPolicyProperties(*, immutability_period_since_creation_in_days: int | None = None, state: str | _models.AccountImmutabilityPolicyState | None = None, allow_protected_append_writes: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
immutability_period_since_creation_in_days
int

The immutability period for the blobs in the container since the policy creation, in days.

state

The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. Known values are: "Unlocked", "Locked", and "Disabled".

allow_protected_append_writes

This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.

Variables

Name Description
immutability_period_since_creation_in_days
int

The immutability period for the blobs in the container since the policy creation, in days.

state

The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. Known values are: "Unlocked", "Locked", and "Disabled".

allow_protected_append_writes

This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.