Share via


Backup Protection Intent - List

Provides a pageable list of all intents that are present within a vault.

GET https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents?api-version=2025-02-01
GET https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents?api-version=2025-02-01&$filter={$filter}&$skipToken={$skipToken}

URI Parameters

Name In Required Type Description
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

ProtectionIntentResourceList

OK

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 protection intent with backupManagementType filter

Sample request

GET https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupProtectionIntents?api-version=2025-02-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupFabrics/Azure/backupProtectionIntent/249D9B07-D2EF-4202-AA64-65F35418564E",
      "name": "249D9B07-D2EF-4202-AA64-65F35418564E",
      "type": "Microsoft.RecoveryServices/vaults/backupProtectionIntent",
      "properties": {
        "protectionIntentItemType": "AzureWorkloadContainerAutoProtectionIntent",
        "backupManagementType": "AzureWorkload",
        "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy",
        "itemId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupProtectionContainer/VMAppContainer;Compute;testVmName/backupProtectableItems/SQLInstance;MSSQLSERVER"
      }
    }
  ]
}

Definitions

Name Description
AzureRecoveryServiceVaultProtectionIntent

Azure Recovery Services Vault specific protection intent item.

AzureResourceProtectionIntent

IaaS VM specific backup protection intent item.

AzureWorkloadAutoProtectionIntent

Azure Recovery Services Vault specific protection intent item.

AzureWorkloadContainerAutoProtectionIntent

Azure workload specific protection intent item.

AzureWorkloadSQLAutoProtectionIntent

Azure Workload SQL Auto Protection intent item.

BackupManagementType

Type of backup management for the backed up item.

ProtectionIntentResource

Base class for backup ProtectionIntent.

ProtectionIntentResourceList

List of ProtectionIntent resources

ProtectionStatus

State of the back up item.

WorkloadItemType

Workload item type of the item for which intent is to be set

AzureRecoveryServiceVaultProtectionIntent

Azure Recovery Services Vault specific protection intent item.

Name Type Description
backupManagementType

BackupManagementType

Type of backup management for the backed up item.

itemId

string

ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId

policyId

string

ID of the backup policy with which this item is backed up.

protectionIntentItemType string:

RecoveryServiceVaultItem

backup protectionIntent type.

protectionState

ProtectionStatus

Backup state of this backup item.

sourceResourceId

string

ARM ID of the resource to be backed up.

AzureResourceProtectionIntent

IaaS VM specific backup protection intent item.

Name Type Description
backupManagementType

BackupManagementType

Type of backup management for the backed up item.

friendlyName

string

Friendly name of the VM represented by this backup item.

itemId

string

ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId

policyId

string

ID of the backup policy with which this item is backed up.

protectionIntentItemType string:

AzureResourceItem

backup protectionIntent type.

protectionState

ProtectionStatus

Backup state of this backup item.

sourceResourceId

string

ARM ID of the resource to be backed up.

AzureWorkloadAutoProtectionIntent

Azure Recovery Services Vault specific protection intent item.

Name Type Description
backupManagementType

BackupManagementType

Type of backup management for the backed up item.

itemId

string

ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId

policyId

string

ID of the backup policy with which this item is backed up.

protectionIntentItemType string:

AzureWorkloadAutoProtectionIntent

backup protectionIntent type.

protectionState

ProtectionStatus

Backup state of this backup item.

sourceResourceId

string

ARM ID of the resource to be backed up.

AzureWorkloadContainerAutoProtectionIntent

Azure workload specific protection intent item.

Name Type Description
backupManagementType

BackupManagementType

Type of backup management for the backed up item.

itemId

string

ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId

policyId

string

ID of the backup policy with which this item is backed up.

protectionIntentItemType string:

AzureWorkloadContainerAutoProtectionIntent

backup protectionIntent type.

protectionState

ProtectionStatus

Backup state of this backup item.

sourceResourceId

string

ARM ID of the resource to be backed up.

AzureWorkloadSQLAutoProtectionIntent

Azure Workload SQL Auto Protection intent item.

Name Type Description
backupManagementType

BackupManagementType

Type of backup management for the backed up item.

itemId

string

ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId

policyId

string

ID of the backup policy with which this item is backed up.

protectionIntentItemType string:

AzureWorkloadSQLAutoProtectionIntent

backup protectionIntent type.

protectionState

ProtectionStatus

Backup state of this backup item.

sourceResourceId

string

ARM ID of the resource to be backed up.

workloadItemType

WorkloadItemType

Workload item type of the item for which intent is to be set

BackupManagementType

Type of backup management for the backed up item.

Value Description
Invalid
AzureIaasVM
MAB
DPM
AzureBackupServer
AzureSql
AzureStorage
AzureWorkload
DefaultBackup

ProtectionIntentResource

Base class for backup ProtectionIntent.

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 ProtectionIntent:

ProtectionIntentResource properties

tags

object

Resource tags.

type

string

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

ProtectionIntentResourceList

List of ProtectionIntent 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

ProtectionIntentResource[]

List of resources.

ProtectionStatus

State of the back up item.

Value Description
Invalid
NotProtected
Protecting
Protected
ProtectionFailed

WorkloadItemType

Workload item type of the item for which intent is to be set

Value Description
Invalid
SQLInstance
SQLDataBase
SAPHanaSystem
SAPHanaDatabase
SAPAseSystem
SAPAseDatabase
SAPHanaDBInstance