Backup Instances - List

Gets a backup instances belonging to a backup vault

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances?api-version=2023-01-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

vaultName
path True

string

The name of the backup vault.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

BackupInstanceResourceList

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 BackupInstances in a Vault

Sample request

GET https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances?api-version=2023-01-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2",
      "name": "harshitbi2",
      "type": "Microsoft.DataProtection/backupVaults/backupInstances",
      "tags": {
        "key1": "val1"
      },
      "properties": {
        "friendlyName": "harshitbi2",
        "dataSourceInfo": {
          "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
          "resourceUri": "",
          "datasourceType": "OssDB",
          "resourceName": "testdb",
          "resourceType": "OssDB",
          "resourceLocation": "",
          "objectType": "Datasource"
        },
        "dataSourceSetInfo": {
          "resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
          "resourceUri": "",
          "datasourceType": "OssDB",
          "resourceName": "viveksipgtest",
          "resourceType": "OssDB",
          "resourceLocation": "",
          "objectType": "DatasourceSet"
        },
        "policyInfo": {
          "policyId": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
          "policyVersion": "3.2"
        },
        "protectionStatus": {
          "status": "NotProtected"
        },
        "provisioningState": "Provisioning",
        "objectType": "BackupInstance"
      }
    }
  ]
}

Definitions

Name Description
AzureOperationalStoreParameters

Parameters for Operational-Tier DataStore

BackupInstance

Backup Instance

BackupInstanceResource

BackupInstanceResource

BackupInstanceResourceList

BackupInstanceResourceList

BlobBackupDatasourceParameters

Parameters to be used during configuration of backup of blobs

CloudError

CloudError

createdByType

The type of identity that created the resource.

CurrentProtectionState

Specifies the current protection state of the resource

Datasource

Datasource

DatasourceSet

DatasourceSet

DataStoreTypes

type of datastore; Operational/Vault/Archive

Error

The resource management error response.

ErrorAdditionalInfo

The resource management error additional info.

InnerError

InnerError

KubernetesClusterBackupDatasourceParameters

Parameters for Kubernetes Cluster Backup Datasource

PolicyInfo

PolicyInfo

PolicyParameters

Parameters in Policy

ProtectionStatusDetails

ProtectionStatusDetails

SecretStoreBasedAuthCredentials

Secret store based authentication credentials.

SecretStoreResource

Class representing a secret store resource.

SecretStoreType

Gets or sets the type of secret store

Status

Specifies the protection status of the resource

systemData

Metadata pertaining to creation and last modification of the resource.

UserFacingError

Error object used by layers that have access to localized content, and propagate that to user

ValidationType

Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.

AzureOperationalStoreParameters

Parameters for Operational-Tier DataStore

Name Type Description
dataStoreType

DataStoreTypes

type of datastore; Operational/Vault/Archive

objectType string:

AzureOperationalStoreParameters

Type of the specific object - used for deserializing

resourceGroupId

string

Gets or sets the Snapshot Resource Group Uri.

BackupInstance

Backup Instance

Name Type Description
currentProtectionState

CurrentProtectionState

Specifies the current protection state of the resource

dataSourceInfo

Datasource

Datasource
Gets or sets the data source information.

dataSourceSetInfo

DatasourceSet

DatasourceSet
Gets or sets the data source set information.

datasourceAuthCredentials AuthCredentials:

SecretStoreBasedAuthCredentials

Credentials to use to authenticate with data source provider.

friendlyName

string

Gets or sets the Backup Instance friendly name.

objectType

string

policyInfo

PolicyInfo

PolicyInfo
Gets or sets the policy information.

protectionErrorDetails

UserFacingError

Specifies the protection error of the resource

protectionStatus

ProtectionStatusDetails

ProtectionStatusDetails
Specifies the protection status of the resource

provisioningState

string

Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed

validationType

ValidationType

Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.

BackupInstanceResource

BackupInstanceResource

Name Type Description
id

string

Proxy Resource Id represents the complete path to the resource.

name

string

Proxy Resource name associated with the resource.

properties

BackupInstance

BackupInstanceResource properties

systemData

systemData

Metadata pertaining to creation and last modification of the resource.

tags

object

Proxy Resource tags.

type

string

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

BackupInstanceResourceList

BackupInstanceResourceList

Name Type Description
nextLink

string

The uri to fetch the next page of resources. Call ListNext() fetches next page of resources.

value

BackupInstanceResource[]

List of resources.

BlobBackupDatasourceParameters

Parameters to be used during configuration of backup of blobs

Name Type Description
containersList

string[]

List of containers to be backed up during configuration of backup of blobs

objectType string:

BlobBackupDatasourceParameters

Type of the specific object - used for deserializing

CloudError

CloudError

Name Type Description
error

Error

The resource management error response.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

CurrentProtectionState

Specifies the current protection state of the resource

Name Type Description
BackupSchedulesSuspended

string

ConfiguringProtection

string

ConfiguringProtectionFailed

string

Invalid

string

NotProtected

string

ProtectionConfigured

string

ProtectionError

string

ProtectionStopped

string

RetentionSchedulesSuspended

string

SoftDeleted

string

SoftDeleting

string

UpdatingProtection

string

Datasource

Datasource

Name Type Description
datasourceType

string

DatasourceType of the resource.

objectType

string

Type of Datasource object, used to initialize the right inherited type

resourceID

string

Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.

resourceLocation

string

Location of datasource.

resourceName

string

Unique identifier of the resource in the context of parent.

resourceType

string

Resource Type of Datasource.

resourceUri

string

Uri of the resource.

DatasourceSet

DatasourceSet

Name Type Description
datasourceType

string

DatasourceType of the resource.

objectType

string

Type of Datasource object, used to initialize the right inherited type

resourceID

string

Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.

resourceLocation

string

Location of datasource.

resourceName

string

Unique identifier of the resource in the context of parent.

resourceType

string

Resource Type of Datasource.

resourceUri

string

Uri of the resource.

DataStoreTypes

type of datastore; Operational/Vault/Archive

Name Type Description
ArchiveStore

string

OperationalStore

string

VaultStore

string

Error

The resource management error response.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

Error[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

InnerError

InnerError

Name Type Description
additionalInfo

object

Any Key value pairs that can be provided to the client for additional verbose information.

code

string

Unique code for this error

embeddedInnerError

InnerError

InnerError
Child Inner Error, to allow Nesting.

KubernetesClusterBackupDatasourceParameters

Parameters for Kubernetes Cluster Backup Datasource

Name Type Description
excludedNamespaces

string[]

Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.

excludedResourceTypes

string[]

Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.

includeClusterScopeResources

boolean

Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.

includedNamespaces

string[]

Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.

includedResourceTypes

string[]

Gets or sets the include resource types property. This property sets the resource types to be included during restore.

labelSelectors

string[]

Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.

objectType string:

KubernetesClusterBackupDatasourceParameters

Type of the specific object - used for deserializing

snapshotVolumes

boolean

Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.

PolicyInfo

PolicyInfo

Name Type Description
policyId

string

policyParameters

PolicyParameters

Policy parameters for the backup instance

policyVersion

string

PolicyParameters

Parameters in Policy

Name Type Description
backupDatasourceParametersList BackupDatasourceParameters[]:

Gets or sets the Backup Data Source Parameters

dataStoreParametersList DataStoreParameters[]:

AzureOperationalStoreParameters[]

Gets or sets the DataStore Parameters

ProtectionStatusDetails

ProtectionStatusDetails

Name Type Description
errorDetails

UserFacingError

Specifies the protection status error of the resource

status

Status

Specifies the protection status of the resource

SecretStoreBasedAuthCredentials

Secret store based authentication credentials.

Name Type Description
objectType string:

SecretStoreBasedAuthCredentials

Type of the specific object - used for deserializing

secretStoreResource

SecretStoreResource

Secret store resource

SecretStoreResource

Class representing a secret store resource.

Name Type Description
secretStoreType

SecretStoreType

Gets or sets the type of secret store

uri

string

Uri to get to the resource

value

string

Gets or sets value stored in secret store resource

SecretStoreType

Gets or sets the type of secret store

Name Type Description
AzureKeyVault

string

Invalid

string

Status

Specifies the protection status of the resource

Name Type Description
ConfiguringProtection

string

ConfiguringProtectionFailed

string

ProtectionConfigured

string

ProtectionStopped

string

SoftDeleted

string

SoftDeleting

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

UserFacingError

Error object used by layers that have access to localized content, and propagate that to user

Name Type Description
code

string

Unique code for this error

details

UserFacingError[]

Additional related Errors

innerError

InnerError

InnerError
Inner Error

isRetryable

boolean

Whether the operation will be retryable or not

isUserError

boolean

Whether the operation is due to a user error or service error

message

string

properties

object

Any key value pairs that can be injected inside error object

recommendedAction

string[]

RecommendedAction � localized.

target

string

Target of the error.

ValidationType

Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.

Name Type Description
DeepValidation

string

ShallowValidation

string