-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LCM Snapshot and Version Actions to June19 and Aug20-preview. Add…
… LAT support to June19 (#12684) * Add LCM Snapshot and Version Actions to June19 and Aug20-preview version. Add The Last Access Time support to June19, it already exists in Aug20-preview * Update Blob support description * Add example for blockBlob and appendBlob to work together
- Loading branch information
1 parent
c5d37a4
commit d1d0982
Showing
9 changed files
with
740 additions
and
7 deletions.
There are no files selected for viewing
100 changes: 100 additions & 0 deletions
100
.../2020-08-01-preview/examples/StorageAccountSetManagementPolicyForBlockAndAppendBlobs.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,100 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "sto9699", | ||
"managementPolicyName": "default", | ||
"api-version": "2020-08-01-preview", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"policy": { | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "olcmtest1", | ||
"type": "Lifecycle", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob", | ||
"appendBlob" | ||
], | ||
"prefixMatch": [ | ||
"olcmtestcontainer1" | ||
] | ||
}, | ||
"actions": { | ||
"baseBlob": { | ||
"delete": { | ||
"daysAfterModificationGreaterThan": 90 | ||
} | ||
}, | ||
"snapshot": { | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 90 | ||
} | ||
}, | ||
"version": { | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 90 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Storage/storageAccounts/sto288/managementPolicies/default", | ||
"name": "DefaultManagementPolicy", | ||
"type": "Microsoft.Storage/storageAccounts/managementPolicies", | ||
"properties": { | ||
"policy": { | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "olcmtest1", | ||
"type": "Lifecycle", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob", | ||
"appendBlob" | ||
], | ||
"prefixMatch": [ | ||
"olcmtestcontainer1" | ||
] | ||
}, | ||
"actions": { | ||
"baseBlob": { | ||
"delete": { | ||
"daysAfterModificationGreaterThan": 90 | ||
} | ||
}, | ||
"snapshot": { | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 90 | ||
} | ||
}, | ||
"version": { | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 90 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"lastModifiedTime": "2018-06-08T02:53:39.0932539Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
134 changes: 134 additions & 0 deletions
134
.../2020-08-01-preview/examples/StorageAccountSetManagementPolicyWithSnapshotAndVersion.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,134 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "sto9699", | ||
"managementPolicyName": "default", | ||
"api-version": "2020-08-01-preview", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"policy": { | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "olcmtest1", | ||
"type": "Lifecycle", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob" | ||
], | ||
"prefixMatch": [ | ||
"olcmtestcontainer1" | ||
] | ||
}, | ||
"actions": { | ||
"baseBlob": { | ||
"tierToCool": { | ||
"daysAfterModificationGreaterThan": 30 | ||
}, | ||
"tierToArchive": { | ||
"daysAfterModificationGreaterThan": 90 | ||
}, | ||
"delete": { | ||
"daysAfterModificationGreaterThan": 1000 | ||
} | ||
}, | ||
"snapshot": { | ||
"tierToCool": { | ||
"daysAfterCreationGreaterThan": 30 | ||
}, | ||
"tierToArchive": { | ||
"daysAfterCreationGreaterThan": 90 | ||
}, | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 1000 | ||
} | ||
}, | ||
"version": { | ||
"tierToCool": { | ||
"daysAfterCreationGreaterThan": 30 | ||
}, | ||
"tierToArchive": { | ||
"daysAfterCreationGreaterThan": 90 | ||
}, | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 1000 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Storage/storageAccounts/sto288/managementPolicies/default", | ||
"name": "DefaultManagementPolicy", | ||
"type": "Microsoft.Storage/storageAccounts/managementPolicies", | ||
"properties": { | ||
"policy": { | ||
"rules": [ | ||
{ | ||
"enabled": true, | ||
"name": "olcmtest1", | ||
"type": "Lifecycle", | ||
"definition": { | ||
"filters": { | ||
"blobTypes": [ | ||
"blockBlob" | ||
], | ||
"prefixMatch": [ | ||
"olcmtestcontainer1" | ||
] | ||
}, | ||
"actions": { | ||
"baseBlob": { | ||
"tierToCool": { | ||
"daysAfterModificationGreaterThan": 30 | ||
}, | ||
"tierToArchive": { | ||
"daysAfterModificationGreaterThan": 90 | ||
}, | ||
"delete": { | ||
"daysAfterModificationGreaterThan": 1000 | ||
} | ||
}, | ||
"snapshot": { | ||
"tierToCool": { | ||
"daysAfterCreationGreaterThan": 30 | ||
}, | ||
"tierToArchive": { | ||
"daysAfterCreationGreaterThan": 90 | ||
}, | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 1000 | ||
} | ||
}, | ||
"version": { | ||
"tierToCool": { | ||
"daysAfterCreationGreaterThan": 30 | ||
}, | ||
"tierToArchive": { | ||
"daysAfterCreationGreaterThan": 90 | ||
}, | ||
"delete": { | ||
"daysAfterCreationGreaterThan": 1000 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"lastModifiedTime": "2018-06-08T02:53:39.0932539Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.