Skip to content

Commit

Permalink
[Storage] az storage account blob-inventory-policy create: Add miss…
Browse files Browse the repository at this point in the history
…ing fields, add excludePrefix in filter
  • Loading branch information
calvinhzy authored Apr 18, 2022
1 parent 7e87e11 commit 822a214
Show file tree
Hide file tree
Showing 5 changed files with 567 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"enabled": true,
"type": "Inventory",
"rules": [
{
"enabled": true,
"name": "newfieldsblob",
"destination": "mycontainer",
"definition": {
"filters": {
"blobTypes": [
"blockBlob",
"appendBlob",
"pageBlob"
],
"includeSnapshots": true,
"includeDeleted": true,
"includeBlobVersions": true,
"prefixMatch": [
"abc"
],
"excludePrefix": [
"ac"
]
},
"format": "Csv",
"schedule": "Daily",
"objectType": "Blob",
"schemaFields": [
"Name",
"Creation-Time",
"Last-Modified",
"ETag",
"Content-Length",
"Content-Type",
"Content-Encoding",
"Content-Language",
"Content-CRC64",
"Content-MD5",
"Cache-Control",
"Content-Disposition",
"BlobType",
"AccessTier",
"AccessTierChangeTime",
"AccessTierInferred",
"LeaseStatus",
"LeaseState",
"LeaseDuration",
"ServerEncrypted",
"CustomerProvidedKeySha256",
"RehydratePriority",
"ArchiveStatus",
"EncryptionScope",
"IncrementalCopy",
"Snapshot",
"Metadata",
"Deleted",
"RemainingRetentionDays",
"CopyId",
"CopyStatus",
"CopySource",
"CopyProgress",
"CopyCompletionTime",
"CopyStatusDescription",
"ImmutabilityPolicyUntilDate",
"ImmutabilityPolicyMode",
"LegalHold",
"LastAccessTime",
"x-ms-blob-sequence-number",
"VersionId",
"IsCurrentVersion",
"TagCount",
"Tags"
]
}
},
{
"enabled": true,
"name": "newfieldscontainer",
"destination": "mycontainer",
"definition": {
"filters": {
"prefixMatch": [
"abc"
],
"includeDeleted": true
},
"format": "Csv",
"schedule": "Daily",
"objectType": "Container",
"schemaFields": [
"Name",
"Last-Modified",
"ETag",
"LeaseStatus",
"LeaseState",
"LeaseDuration",
"PublicAccess",
"DefaultEncryptionScope",
"DenyEncryptionScopeOverride",
"ImmutableStorageWithVersioningEnabled",
"HasImmutabilityPolicy",
"HasLegalHold",
"Deleted",
"DeletedTime",
"RemainingRetentionDays",
"Version",
"Metadata"
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"enabled": true,
"type": "Inventory",
"rules": [
{
"enabled": true,
"name": "newfieldsblob",
"destination": "mycontainer",
"definition": {
"filters": {
"blobTypes": [
"blockBlob",
"appendBlob"
],
"includeSnapshots": true,
"includeDeleted": true,
"prefixMatch": [
"abc"
],
"excludePrefix": [
"ac"
]
},
"format": "Csv",
"schedule": "Daily",
"objectType": "Blob",
"schemaFields": [
"Name",
"Creation-Time",
"Last-Modified",
"ETag",
"Content-Length",
"Content-Type",
"Content-Encoding",
"Content-Language",
"Content-CRC64",
"Content-MD5",
"Cache-Control",
"Content-Disposition",
"BlobType",
"AccessTier",
"AccessTierChangeTime",
"AccessTierInferred",
"LeaseStatus",
"LeaseState",
"LeaseDuration",
"ServerEncrypted",
"CustomerProvidedKeySha256",
"RehydratePriority",
"ArchiveStatus",
"EncryptionScope",
"IncrementalCopy",
"Snapshot",
"Metadata",
"DeletionId",
"Deleted",
"DeletedTime",
"RemainingRetentionDays",
"Expiry-Time",
"hdi_isfolder",
"Owner",
"Group",
"Permissions",
"Acl",
"CopyId",
"CopyStatus",
"CopySource",
"CopyProgress",
"CopyCompletionTime",
"CopyStatusDescription",
"ImmutabilityPolicyUntilDate",
"ImmutabilityPolicyMode",
"LegalHold",
"LastAccessTime"
]
}
},
{
"enabled": true,
"name": "newfieldscontainer",
"destination": "mycontainer",
"definition": {
"filters": {
"prefixMatch": [
"abc"
],
"includeDeleted": true
},
"format": "Csv",
"schedule": "Daily",
"objectType": "Container",
"schemaFields": [
"Name",
"Last-Modified",
"ETag",
"LeaseStatus",
"LeaseState",
"LeaseDuration",
"PublicAccess",
"DefaultEncryptionScope",
"DenyEncryptionScopeOverride",
"ImmutableStorageWithVersioningEnabled",
"HasImmutabilityPolicy",
"HasLegalHold",
"Deleted",
"DeletedTime",
"RemainingRetentionDays",
"Version",
"Metadata"
]
}
}
]
}
Loading

0 comments on commit 822a214

Please sign in to comment.