Skip to content

Commit 9599cc1

Browse files
Add Blob Inventory to June19 Api version (#12686)
* Add Blob Inventory to June19 Api version * Update error response schema
1 parent 544bb00 commit 9599cc1

File tree

5 files changed

+551
-1
lines changed

5 files changed

+551
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res6977",
5+
"accountName": "sto2527",
6+
"blobInventoryPolicyName": "default",
7+
"api-version": "2019-06-01",
8+
"monitor": "true"
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res7687",
5+
"accountName": "sto9699",
6+
"blobInventoryPolicyName": "default",
7+
"api-version": "2019-06-01",
8+
"monitor": "true"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/sto9699/inventoryPolicies/default",
14+
"name": "DefaultInventoryPolicy",
15+
"type": "Microsoft.Storage/storageAccounts/inventoryPolicies",
16+
"properties": {
17+
"policy": {
18+
"enabled": true,
19+
"type": "Inventory",
20+
"destination": "containerName",
21+
"rules": [
22+
{
23+
"enabled": true,
24+
"name": "inventoryPolicyRule1",
25+
"definition": {
26+
"filters": {
27+
"blobTypes": [
28+
"blockBlob",
29+
"appendBlob",
30+
"pageBlob"
31+
],
32+
"prefixMatch": [
33+
"inventoryprefix1",
34+
"inventoryprefix2"
35+
],
36+
"includeSnapshots": true,
37+
"includeBlobVersions": true
38+
}
39+
}
40+
}
41+
]
42+
},
43+
"lastModifiedTime": "2020-10-05T02:53:39.0932539Z"
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res7687",
5+
"accountName": "sto9699",
6+
"api-version": "2019-06-01",
7+
"monitor": "true"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/sto9699/inventoryPolicies/default",
15+
"name": "DefaultInventoryPolicy",
16+
"type": "Microsoft.Storage/storageAccounts/inventoryPolicies",
17+
"properties": {
18+
"policy": {
19+
"enabled": true,
20+
"type": "Inventory",
21+
"destination": "containerName",
22+
"rules": [
23+
{
24+
"enabled": true,
25+
"name": "inventoryPolicyRule1",
26+
"definition": {
27+
"filters": {
28+
"blobTypes": [
29+
"blockBlob",
30+
"appendBlob",
31+
"pageBlob"
32+
],
33+
"prefixMatch": [
34+
"inventoryprefix1",
35+
"inventoryprefix2"
36+
],
37+
"includeSnapshots": true,
38+
"includeBlobVersions": true
39+
}
40+
}
41+
}
42+
]
43+
},
44+
"lastModifiedTime": "2020-10-05T02:53:39.0932539Z"
45+
}
46+
}
47+
]
48+
}
49+
}
50+
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res7687",
5+
"accountName": "sto9699",
6+
"blobInventoryPolicyName": "default",
7+
"api-version": "2019-06-01",
8+
"monitor": "true",
9+
"properties": {
10+
"properties": {
11+
"policy": {
12+
"enabled": true,
13+
"type": "Inventory",
14+
"destination": "containerName",
15+
"rules": [
16+
{
17+
"enabled": true,
18+
"name": "inventoryPolicyRule1",
19+
"definition": {
20+
"filters": {
21+
"blobTypes": [
22+
"blockBlob",
23+
"appendBlob",
24+
"pageBlob"
25+
],
26+
"prefixMatch": [
27+
"inventoryprefix1",
28+
"inventoryprefix2"
29+
],
30+
"includeSnapshots": true,
31+
"includeBlobVersions": true
32+
}
33+
}
34+
}
35+
]
36+
}
37+
}
38+
}
39+
},
40+
"responses": {
41+
"200": {
42+
"body": {
43+
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/sto9699/inventoryPolicies/default",
44+
"name": "DefaultInventoryPolicy",
45+
"type": "Microsoft.Storage/storageAccounts/inventoryPolicies",
46+
"properties": {
47+
"policy": {
48+
"enabled": true,
49+
"type": "Inventory",
50+
"destination": "containerName",
51+
"rules": [
52+
{
53+
"enabled": true,
54+
"name": "inventoryPolicyRule1",
55+
"definition": {
56+
"filters": {
57+
"blobTypes": [
58+
"blockBlob",
59+
"appendBlob",
60+
"pageBlob"
61+
],
62+
"prefixMatch": [
63+
"inventoryprefix1",
64+
"inventoryprefix2"
65+
],
66+
"includeSnapshots": true,
67+
"includeBlobVersions": true
68+
}
69+
}
70+
}
71+
]
72+
},
73+
"lastModifiedTime": "2020-10-05T02:53:39.0932539Z"
74+
}
75+
}
76+
}
77+
}
78+
}

0 commit comments

Comments
 (0)