Share via


ImmutabilityPolicy Class

Definition

The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

[Microsoft.Rest.Serialization.JsonTransformation]
public class ImmutabilityPolicy : Microsoft.Azure.Management.Storage.Models.AzureEntityResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type ImmutabilityPolicy = class
    inherit AzureEntityResource
Public Class ImmutabilityPolicy
Inherits AzureEntityResource
Inheritance
ImmutabilityPolicy
Attributes

Constructors

ImmutabilityPolicy()

Initializes a new instance of the ImmutabilityPolicy class.

ImmutabilityPolicy(String, String, String, String, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>)

Initializes a new instance of the ImmutabilityPolicy class.

Properties

AllowProtectedAppendWrites

Gets or sets this property can only be changed for 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. This property cannot be changed with ExtendImmutabilityPolicy API.

AllowProtectedAppendWritesAll

Gets or sets this property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.

Etag

Gets resource Etag.

(Inherited from AzureEntityResource)
Id

Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
ImmutabilityPeriodSinceCreationInDays

Gets or sets the immutability period for the blobs in the container since the policy creation, in days.

Name

Gets the name of the resource

(Inherited from Resource)
State

Gets the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'

Type

Gets the type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

(Inherited from Resource)

Applies to