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 |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string uuid |
The ID of the target subscription. The value must be an UUID. |
vault
|
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 |
OK |
|
Other Status Codes |
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 |
---|---|
Azure |
Parameters for Operational-Tier DataStore |
Backup |
Backup Instance |
Backup |
BackupInstanceResource |
Backup |
BackupInstanceResourceList |
Blob |
Parameters to be used during configuration of backup of blobs |
Cloud |
CloudError |
created |
The type of identity that created the resource. |
Current |
Specifies the current protection state of the resource |
Datasource |
Datasource |
Datasource |
DatasourceSet |
Data |
type of datastore; Operational/Vault/Archive |
Error |
The resource management error response. |
Error |
The resource management error additional info. |
Inner |
InnerError |
Kubernetes |
Parameters for Kubernetes Cluster Backup Datasource |
Policy |
PolicyInfo |
Policy |
Parameters in Policy |
Protection |
ProtectionStatusDetails |
Secret |
Secret store based authentication credentials. |
Secret |
Class representing a secret store resource. |
Secret |
Gets or sets the type of secret store |
Status |
Specifies the protection status of the resource |
system |
Metadata pertaining to creation and last modification of the resource. |
User |
Error object used by layers that have access to localized content, and propagate that to user |
Validation |
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 |
type of datastore; Operational/Vault/Archive |
|
objectType | string: |
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 |
Specifies the current protection state of the resource |
|
dataSourceInfo |
Datasource |
|
dataSourceSetInfo |
DatasourceSet |
|
datasourceAuthCredentials | AuthCredentials: |
Credentials to use to authenticate with data source provider. |
friendlyName |
string |
Gets or sets the Backup Instance friendly name. |
objectType |
string |
|
policyInfo |
PolicyInfo |
|
protectionErrorDetails |
Specifies the protection error of the resource |
|
protectionStatus |
ProtectionStatusDetails |
|
provisioningState |
string |
Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed |
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 |
BackupInstanceResource properties |
|
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 |
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: |
Type of the specific object - used for deserializing |
CloudError
CloudError
Name | Type | Description |
---|---|---|
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 |
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 |
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: |
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 |
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[]: |
Gets or sets the DataStore Parameters |
ProtectionStatusDetails
ProtectionStatusDetails
Name | Type | Description |
---|---|---|
errorDetails |
Specifies the protection status error of the resource |
|
status |
Specifies the protection status of the resource |
SecretStoreBasedAuthCredentials
Secret store based authentication credentials.
Name | Type | Description |
---|---|---|
objectType | string: |
Type of the specific object - used for deserializing |
secretStoreResource |
Secret store resource |
SecretStoreResource
Class representing a secret store resource.
Name | Type | Description |
---|---|---|
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 |
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 |
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 |
Additional related Errors |
|
innerError |
InnerError |
|
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 |