Share via


Backup Workload Items - List

Provides a pageable list of workload item of a specific container according to the query filter and the pagination parameters.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items?api-version=2025-02-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items?api-version=2025-02-01&$filter={$filter}&$skipToken={$skipToken}

URI Parameters

Name In Required Type Description
containerName
path True

string

Name of the container.

fabricName
path True

string

Fabric name associated with the container.

resourceGroupName
path True

string

The name of the resource group where the recovery services vault is present.

subscriptionId
path True

string

The subscription Id.

vaultName
path True

string

The name of the recovery services vault.

api-version
query True

string

Client Api Version.

$filter
query

string

OData filter options.

$skipToken
query

string

skipToken Filter.

Responses

Name Type Description
200 OK

WorkloadItemResourceList

OK

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account.

Examples

List Workload Items in Container

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/suchandr-seacan-rsv/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;bvtdtestag;sqlserver-1/items?api-version=2025-02-01&$filter=backupManagementType eq 'AzureWorkload'

Sample response

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.RecoveryServices/vaults/suchandr-seacan-rsv/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;bvtdtestag;sqlserver-1/protectableItems/SQLInstance;MSSQLSERVER",
      "name": "SQLInstance;MSSQLSERVER",
      "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/items",
      "properties": {
        "dataDirectoryPaths": [
          {
            "type": "Data",
            "path": "F:\\DATA\\"
          },
          {
            "type": "Log",
            "path": "F:\\LOG\\"
          }
        ],
        "parentName": "MSSQLSERVER",
        "serverName": "sqlserver-1.contoso.com",
        "isAutoProtectable": true,
        "subinquireditemcount": 0,
        "subWorkloadItemCount": 3,
        "backupManagementType": "AzureWorkload",
        "workloadType": "SQL",
        "workloadItemType": "SQLInstance",
        "friendlyName": "MSSQLSERVER",
        "protectionState": "NotProtected"
      }
    }
  ],
  "nextLink": null
}

Definitions

Name Description
AzureVmWorkloadItem

Azure VM workload-specific workload item.

AzureVmWorkloadSAPAseDatabaseWorkloadItem

Azure VM workload-specific workload item representing SAP ASE Database.

AzureVmWorkloadSAPAseSystemWorkloadItem

Azure VM workload-specific workload item representing SAP ASE System.

AzureVmWorkloadSAPHanaDatabaseWorkloadItem

Azure VM workload-specific workload item representing SAP HANA Database.

AzureVmWorkloadSAPHanaSystemWorkloadItem

Azure VM workload-specific workload item representing SAP HANA System.

AzureVmWorkloadSQLDatabaseWorkloadItem

Azure VM workload-specific workload item representing SQL Database.

AzureVmWorkloadSQLInstanceWorkloadItem

Azure VM workload-specific workload item representing SQL Instance.

CloudError

An error response from the Container Instance service.

CloudErrorBody

An error response from the Container Instance service.

ErrorAdditionalInfo

The resource management error additional info.

ProtectionStatus

State of the back up item.

SQLDataDirectory

SQLDataDirectory info

SQLDataDirectoryType

Type of data directory mapping

WorkloadItemResource

Base class for backup item. Workload-specific backup items are derived from this class.

WorkloadItemResourceList

List of WorkloadItem resources

AzureVmWorkloadItem

Azure VM workload-specific workload item.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

AzureVmWorkloadItem

Type of the backup item.

workloadType

string

Type of workload for the backup management

AzureVmWorkloadSAPAseDatabaseWorkloadItem

Azure VM workload-specific workload item representing SAP ASE Database.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

SAPAseDatabase

Type of the backup item.

workloadType

string

Type of workload for the backup management

AzureVmWorkloadSAPAseSystemWorkloadItem

Azure VM workload-specific workload item representing SAP ASE System.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

SAPAseSystem

Type of the backup item.

workloadType

string

Type of workload for the backup management

AzureVmWorkloadSAPHanaDatabaseWorkloadItem

Azure VM workload-specific workload item representing SAP HANA Database.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

SAPHanaDatabase

Type of the backup item.

workloadType

string

Type of workload for the backup management

AzureVmWorkloadSAPHanaSystemWorkloadItem

Azure VM workload-specific workload item representing SAP HANA System.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

SAPHanaSystem

Type of the backup item.

workloadType

string

Type of workload for the backup management

AzureVmWorkloadSQLDatabaseWorkloadItem

Azure VM workload-specific workload item representing SQL Database.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

SQLDataBase

Type of the backup item.

workloadType

string

Type of workload for the backup management

AzureVmWorkloadSQLInstanceWorkloadItem

Azure VM workload-specific workload item representing SQL Instance.

Name Type Description
backupManagementType

string

Type of backup management to backup an item.

dataDirectoryPaths

SQLDataDirectory[]

Data Directory Paths for default directories

friendlyName

string

Friendly name of the backup item.

isAutoProtectable

boolean

Indicates if workload item is auto-protectable

parentName

string

Name for instance or AG

protectionState

ProtectionStatus

State of the back up item.

serverName

string

Host/Cluster Name for instance or AG

subWorkloadItemCount

integer (int32)

For instance or AG, indicates number of DB's to be protected

subinquireditemcount

integer (int32)

For instance or AG, indicates number of DB's present

workloadItemType string:

SQLInstance

Type of the backup item.

workloadType

string

Type of workload for the backup management

CloudError

An error response from the Container Instance service.

Name Type Description
error

CloudErrorBody

The error object.

CloudErrorBody

An error response from the Container Instance service.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ProtectionStatus

State of the back up item.

Value Description
Invalid
NotProtected
Protecting
Protected
ProtectionFailed

SQLDataDirectory

SQLDataDirectory info

Name Type Description
logicalName

string

Logical name of the file

path

string

File path

type

SQLDataDirectoryType

Type of data directory mapping

SQLDataDirectoryType

Type of data directory mapping

Value Description
Invalid
Data
Log

WorkloadItemResource

Base class for backup item. Workload-specific backup items are derived from this class.

Name Type Description
eTag

string

Optional ETag.

id

string

Resource Id represents the complete path to the resource.

location

string

Resource location.

name

string

Resource name associated with the resource.

properties WorkloadItem:

WorkloadItemResource properties

tags

object

Resource tags.

type

string

Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

WorkloadItemResourceList

List of WorkloadItem resources

Name Type Description
nextLink

string

The URI to fetch the next page of resources, with each API call returning up to 200 resources per page. Use ListNext() to fetch the next page if the total number of resources exceeds 200.

value

WorkloadItemResource[]

List of resources.