forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
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 to June19 Api version (Azure#12686)
* Add Blob Inventory to June19 Api version * Update error response schema
- Loading branch information
1 parent
17bc745
commit 9f060b8
Showing
5 changed files
with
551 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...Microsoft.Storage/stable/2019-06-01/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": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...er/Microsoft.Storage/stable/2019-06-01/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": "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" | ||
} | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...r/Microsoft.Storage/stable/2019-06-01/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": "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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
...er/Microsoft.Storage/stable/2019-06-01/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": "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" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.