-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Blob Inventory Support with Examples (#11048)
* Add Blob Inventory Support with Examples * Correct Validation error. Add list blob inventory api spec * Spell check, remove ErrorResponse from List and add nextLinkName=null * Fix emaple * Correct schematic change * ARM requires new API versions to have systemData
- Loading branch information
1 parent
6db3ee5
commit 9e59dd6
Showing
5 changed files
with
541 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
....Storage/preview/2020-08-01-preview/examples/StorageAccountDeleteBlobInventoryPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res6977", | ||
"accountName": "sto2527", | ||
"blobInventoryPolicyName": "default", | ||
"api-version": "2020-08-01-preview", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...oft.Storage/preview/2020-08-01-preview/examples/StorageAccountGetBlobInventoryPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "sto9699", | ||
"blobInventoryPolicyName": "default", | ||
"api-version": "2020-08-01-preview", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/sto9699/inventoryPolicies/default", | ||
"name": "DefaultInventoryPolicy", | ||
"type": "Microsoft.Storage/storageAccounts/inventoryPolicies", | ||
"properties": { | ||
"policy": { | ||
"enabled": true, | ||
"type": "Inventory", | ||
"destination": "containerName", | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "inventoryPolicyRule1", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob", | ||
"appendBlob", | ||
"pageBlob" | ||
], | ||
"prefixMatch": [ | ||
"inventoryprefix1", | ||
"inventoryprefix2" | ||
], | ||
"includeSnapshots": true, | ||
"includeBlobVersions": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"lastModifiedTime": "2020-10-05T02:53:39.0932539Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...ft.Storage/preview/2020-08-01-preview/examples/StorageAccountListBlobInventoryPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "sto9699", | ||
"api-version": "2020-08-01-preview", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/sto9699/inventoryPolicies/default", | ||
"name": "DefaultInventoryPolicy", | ||
"type": "Microsoft.Storage/storageAccounts/inventoryPolicies", | ||
"properties": { | ||
"policy": { | ||
"enabled": true, | ||
"type": "Inventory", | ||
"destination": "containerName", | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "inventoryPolicyRule1", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob", | ||
"appendBlob", | ||
"pageBlob" | ||
], | ||
"prefixMatch": [ | ||
"inventoryprefix1", | ||
"inventoryprefix2" | ||
], | ||
"includeSnapshots": true, | ||
"includeBlobVersions": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"lastModifiedTime": "2020-10-05T02:53:39.0932539Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
...oft.Storage/preview/2020-08-01-preview/examples/StorageAccountSetBlobInventoryPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "sto9699", | ||
"blobInventoryPolicyName": "default", | ||
"api-version": "2020-08-01-preview", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"policy": { | ||
"enabled": true, | ||
"type": "Inventory", | ||
"destination": "containerName", | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "inventoryPolicyRule1", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob", | ||
"appendBlob", | ||
"pageBlob" | ||
], | ||
"prefixMatch": [ | ||
"inventoryprefix1", | ||
"inventoryprefix2" | ||
], | ||
"includeSnapshots": true, | ||
"includeBlobVersions": true | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/sto9699/inventoryPolicies/default", | ||
"name": "DefaultInventoryPolicy", | ||
"type": "Microsoft.Storage/storageAccounts/inventoryPolicies", | ||
"properties": { | ||
"policy": { | ||
"enabled": true, | ||
"type": "Inventory", | ||
"destination": "containerName", | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "inventoryPolicyRule1", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob", | ||
"appendBlob", | ||
"pageBlob" | ||
], | ||
"prefixMatch": [ | ||
"inventoryprefix1", | ||
"inventoryprefix2" | ||
], | ||
"includeSnapshots": true, | ||
"includeBlobVersions": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"lastModifiedTime": "2020-10-05T02:53:39.0932539Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.