Get details about the protectable items
When using Get protectable items, you can get the following information:
- listing all protectable items,
- list all protectable items in a container,
- list an identified protectable item.
Request
The Get Protectable items can be specified as follows.
Method | Request URI | HTTP Version |
---|---|---|
GET | http://<VaultUrl> /backupProtectableItems?api-version=<api-version>https:// <VaultUrl> /backupFabrics/{fabricname}/backupProtectionContainers/{protectionContainerName}/backupProtectableItems?api-version=<api-version>https:// <VaultUrl> /backupFabrics/{fabricName}/backupProtectionContainers/{protectionContainersName}/backupProtectableItems/{protectableItemname}?api-version=<api-version> |
HTTP/1.1 |
Request Header:
Common request headers are described here.
Request Body:
None
Query Filters:
Supported query filters: protectableItemType, protectionState, friendlyName
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Response Header:
Common response headers described here.
Response Body:
{
"value": [
{
"id":
"/Subscriptions/{id}/resourceGroups/{groupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/Azure/backupProtectionContainers/VMContainer;ClassicCompute;restRG;testVM/backupProtectableItems/VM;testVM",
"name": "VM;testVM",
"type": Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionContainers/protectableItems",
"properties": {
"protectableItemType": "Microsoft.ClassicCompute/virtualMachines",
"protectableItemId": "/subscriptions/{id}/resourceGroups/testRG/providers/Microsoft.ClassicCompute/virtualMachines/testVM",
"protectionState": "Protected",
}
}
],
}
Element name | Description |
---|---|
Name | Required, string Service generated unique name for protectable item. |
protectableItemType | Required, string Type of the protectable item, can have one of the following values: Microsoft.ClassicCompute/virtualMachines, Microsoft.Compute/virtualMachines, ProductionServers (on-premise servers). |
protectableItemId | Required, string Fully qualified ARM Url of the Azure VM resource |
protectionState | Required, string Whether the discovered protectable item has been discovered or not. |