| author | AbhishekMallick-MS |
|---|---|
| ms.service | azure-backup |
| ms.topic | include |
| ms.date | 05/30/2024 |
| ms.author | v-abhmallick |
To list all the available recovery points for a backup instance, use the list recovery points API.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints?api-version=2021-07-01Following is the request body to restore container bash 2 from a vaulted backup.
{
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"sourceDataStoreType": "VaultStore",
"restoreTargetInfo": {
"objectType": "itemLevelRestoreTargetInfo",
"recoveryOption": "FailIfExists",
"dataSourceInfo": {
"objectType": "Datasource",
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/azclitestrestore2",
"resourceName": "azclitestrestore2",
"resourceType": "Microsoft.Storage/storageAccounts",
"resourceLocation": "not specified",
"resourceUri": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/azclitestrestore2",
"datasourceType": "Microsoft.Storage/storageAccounts/blobServices",
"resourceProperties": {}
},
"restoreCriteria": [
{
"objectType": "ItemPathBasedRestoreCriteria",
"itemPath": "bash2",
"isPathRelativeToBackupItem": true,
"subItemPathPrefix": null
}
],
"restoreLocation": "eastus2euap"
},
"recoveryPointId": "33fdef0e0e2e4594b63092ae9a56f58d"
}If you want to restore blobs with specific prefixes, provide the list of prefixes as value for subItemPathPrefix. Here's an example to restore blobs starting with prefixes dd, ee, or ff in container2 of your backed-up storage account.
{
"is_path_relative_to_backup_item": true,
"item_path": "container2",
"object_type": "ItemPathBasedRestoreCriteria",
"sub_item_path_prefix": [
"dd",
"ee",
"ff"
]
}