Share via


BlobInventoryPolicyFilter Class

Definition

An object that defines the blob inventory rule filter conditions. For 'Blob' definition.objectType all filter properties are applicable, 'blobTypes' is required and others are optional. For 'Container' definition.objectType only prefixMatch is applicable and is optional.

public class BlobInventoryPolicyFilter
type BlobInventoryPolicyFilter = class
Public Class BlobInventoryPolicyFilter
Inheritance
BlobInventoryPolicyFilter

Constructors

BlobInventoryPolicyFilter()

Initializes a new instance of the BlobInventoryPolicyFilter class.

BlobInventoryPolicyFilter(IList<String>, IList<String>, IList<String>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)

Initializes a new instance of the BlobInventoryPolicyFilter class.

Properties

BlobTypes

Gets or sets an array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.

ExcludePrefix

Gets or sets an array of strings with maximum 10 blob prefixes to be excluded from the inventory.

IncludeBlobVersions

Gets or sets includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.

IncludeDeleted

Gets or sets for 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.

IncludeSnapshots

Gets or sets includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.

PrefixMatch

Gets or sets an array of strings with maximum 10 blob prefixes to be included in the inventory.

Applies to