Skip to content

Commit

Permalink
Add Blob Inventory to June19 Api version (Azure#12686)
Browse files Browse the repository at this point in the history
* Add Blob Inventory to June19 Api version

* Update error response schema
  • Loading branch information
HimanshuChhabra authored and mkarmark committed Jul 20, 2021
1 parent 17bc745 commit 9f060b8
Show file tree
Hide file tree
Showing 5 changed files with 551 additions and 1 deletion.
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": "2019-06-01",
"monitor": "true"
},
"responses": {
"200": {},
"204": {}
}
}
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": "2019-06-01",
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res7687",
"accountName": "sto9699",
"api-version": "2019-06-01",
"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"
}
}
]
}
}
}
}
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": "2019-06-01",
"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"
}
}
}
}
}
Loading

0 comments on commit 9f060b8

Please sign in to comment.