BackupInstance için geri yüklemeyi tetikler
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore?api-version=2026-07-01
URI Parametreleri
| Veri Akışı Adı |
İçinde |
Gerekli |
Tür |
Description |
|
backupInstanceName
|
path |
True
|
string
|
BackupInstanceResource'un adı
|
|
resourceGroupName
|
path |
True
|
string
minLength: 1 maxLength: 90
|
Kaynak grubunun adı. İsim büyük/küçük harfe duyarsızdır.
|
|
subscriptionId
|
path |
True
|
string
(uuid)
|
Hedef aboneliğin kimliği. Değer bir UUID olmalıdır.
|
|
vaultName
|
path |
True
|
string
minLength: 2 maxLength: 50 pattern: ^[A-Za-z][-A-Za-z0-9]*[A-Za-z0-9]$
|
Yedekleme kasasının adı.
|
|
api-version
|
query |
True
|
string
minLength: 1
|
Bu işlem için kullanılacak API sürümü.
|
| Veri Akışı Adı |
Gerekli |
Tür |
Description |
|
x-ms-authorization-auxiliary
|
|
string
|
|
İstek Gövdesi
İstek gövdesi şunlardan biri olabilir:
AzureBackupRecoveryPointBasedRestoreRequest
Azure backup recoveryPoint tabanlı geri yükleme isteği
| Veri Akışı Adı |
Gerekli |
Tür |
Description |
|
objectType
|
True
|
string:
AzureBackupRecoveryPointBasedRestoreRequest
|
|
|
recoveryPointId
|
True
|
string
|
|
|
restoreTargetInfo
|
True
|
RestoreTargetInfoBase:
|
Geri yükleme hedef bilgilerini alır veya ayarlar.
|
|
sourceDataStoreType
|
True
|
SourceDataStoreType
|
Kaynak veri deposunun türünü alır veya ayarlar.
|
|
identityDetails
|
|
IdentityDetails
|
BI için Kimlik Ayrıntıları bilgilerini içerir.
Null ise, varsayılan değer Sistem Atanmış olarak kabul edilir.
|
|
resourceGuardOperationRequests
|
|
string[]
|
LAC denetiminin gerçekleştirileceği ResourceGuardOperationRequests
|
|
sourceResourceId
|
|
string
|
Kurtarılmakta olan veri kaynağının tam Azure Resource Manager kimliği.
|
AzureBackupRecoveryTimeBasedRestoreRequest
AzureBackup RecoveryPointTime Tabanlı Geri Yükleme İsteği
| Veri Akışı Adı |
Gerekli |
Tür |
Description |
|
objectType
|
True
|
string:
AzureBackupRecoveryTimeBasedRestoreRequest
|
|
|
recoveryPointTime
|
True
|
string
|
ISO 8601 biçiminde kurtarma süresi örneği - 2020-08-14T17:30:00.0000000Z.
|
|
restoreTargetInfo
|
True
|
RestoreTargetInfoBase:
|
Geri yükleme hedef bilgilerini alır veya ayarlar.
|
|
sourceDataStoreType
|
True
|
SourceDataStoreType
|
Kaynak veri deposunun türünü alır veya ayarlar.
|
|
identityDetails
|
|
IdentityDetails
|
BI için Kimlik Ayrıntıları bilgilerini içerir.
Null ise, varsayılan değer Sistem Atanmış olarak kabul edilir.
|
|
resourceGuardOperationRequests
|
|
string[]
|
LAC denetiminin gerçekleştirileceği ResourceGuardOperationRequests
|
|
sourceResourceId
|
|
string
|
Kurtarılmakta olan veri kaynağının tam Azure Resource Manager kimliği.
|
AzureBackupRestoreWithRehydrationRequest
Yeniden Doldurma İsteği ile AzureBackup Geri Yükleme
| Veri Akışı Adı |
Gerekli |
Tür |
Description |
|
objectType
|
True
|
string:
AzureBackupRestoreWithRehydrationRequest
|
|
|
recoveryPointId
|
True
|
string
|
|
|
rehydrationPriority
|
True
|
RehydrationPriority
|
Yeniden doldurma için kullanılacak öncelik. Yüksek veya Standart Değerler
|
|
rehydrationRetentionDuration
|
True
|
string
|
ISO 8601 biçiminde saklama süresi , örneğin P10D .
|
|
restoreTargetInfo
|
True
|
RestoreTargetInfoBase:
|
Geri yükleme hedef bilgilerini alır veya ayarlar.
|
|
sourceDataStoreType
|
True
|
SourceDataStoreType
|
Kaynak veri deposunun türünü alır veya ayarlar.
|
|
identityDetails
|
|
IdentityDetails
|
BI için Kimlik Ayrıntıları bilgilerini içerir.
Null ise, varsayılan değer Sistem Atanmış olarak kabul edilir.
|
|
resourceGuardOperationRequests
|
|
string[]
|
LAC denetiminin gerçekleştirileceği ResourceGuardOperationRequests
|
|
sourceResourceId
|
|
string
|
Kurtarılmakta olan veri kaynağının tam Azure Resource Manager kimliği.
|
Yanıtlar
| Veri Akışı Adı |
Tür |
Description |
|
200 OK
|
OperationJobExtendedInfo
|
Azure işlemi başarıyla tamamlandı.
|
|
202 Accepted
|
|
Kaynak işlemi kabul edildi.
Üst Bilgiler
- Azure-AsyncOperation: string
- Location: string
|
|
Other Status Codes
|
CloudError
|
Beklenmeyen bir hata yanıtı.
|
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı.
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Veri Akışı Adı |
Description |
|
user_impersonation
|
kullanıcı hesabınızı taklit etme
|
Örnekler
Trigger Restore
Örnek isteği
POST https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/testInstance1/restore?api-version=2026-07-01
{
"identityDetails": {
"useSystemAssignedIdentity": false,
"userAssignedIdentityArmUrl": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami"
},
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"recoveryPointId": "hardcodedRP",
"restoreTargetInfo": {
"datasourceAuthCredentials": {
"objectType": "SecretStoreBasedAuthCredentials",
"secretStoreResource": {
"secretStoreType": "AzureKeyVault",
"uri": "https://samplevault.vault.azure.net/secrets/credentials"
}
},
"datasourceInfo": {
"datasourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"objectType": "Datasource",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb",
"resourceLocation": "",
"resourceName": "targetdb",
"resourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"resourceUri": ""
},
"datasourceSetInfo": {
"datasourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"objectType": "DatasourceSet",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resourceLocation": "",
"resourceName": "viveksipgtest",
"resourceType": "Microsoft.DBforPostgreSQL/servers",
"resourceUri": ""
},
"objectType": "RestoreTargetInfo",
"recoveryOption": "FailIfExists",
"restoreLocation": "southeastasia"
},
"sourceDataStoreType": "VaultStore",
"sourceResourceId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"
}
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest;
import com.azure.resourcemanager.dataprotection.models.Datasource;
import com.azure.resourcemanager.dataprotection.models.DatasourceSet;
import com.azure.resourcemanager.dataprotection.models.IdentityDetails;
import com.azure.resourcemanager.dataprotection.models.RecoveryOption;
import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo;
import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials;
import com.azure.resourcemanager.dataprotection.models.SecretStoreResource;
import com.azure.resourcemanager.dataprotection.models.SecretStoreType;
import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType;
import java.util.HashMap;
import java.util.Map;
/**
* Samples for BackupInstances TriggerRestore.
*/
public final class Main {
/*
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestore.json
*/
/**
* Sample code: Trigger Restore.
*
* @param manager Entry point to DataProtectionManager.
*/
public static void triggerRestore(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
manager.backupInstances().triggerRestore("000pikumar", "PratikPrivatePreviewVault1", "testInstance1",
new AzureBackupRecoveryPointBasedRestoreRequest().withRestoreTargetInfo(new RestoreTargetInfo()
.withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS).withRestoreLocation("southeastasia")
.withDatasourceInfo(new Datasource().withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("Datasource")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb")
.withResourceLocation("").withResourceName("targetdb")
.withResourceType("Microsoft.DBforPostgreSQL/servers/databases").withResourceUri(""))
.withDatasourceSetInfo(new DatasourceSet()
.withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases").withObjectType("DatasourceSet")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
.withResourceLocation("").withResourceName("viveksipgtest")
.withResourceType("Microsoft.DBforPostgreSQL/servers").withResourceUri(""))
.withDatasourceAuthCredentials(new SecretStoreBasedAuthCredentials().withSecretStoreResource(
new SecretStoreResource().withUri("https://samplevault.vault.azure.net/secrets/credentials")
.withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT))))
.withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
.withSourceResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withIdentityDetails(
new IdentityDetails().withUseSystemAssignedIdentity(false).withUserAssignedIdentityArmUrl(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami"))
.withRecoveryPointId("hardcodedRP"),
com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dataprotection import DataProtectionMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dataprotection
# USAGE
python trigger_restore.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DataProtectionMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.backup_instances.begin_trigger_restore(
resource_group_name="000pikumar",
vault_name="PratikPrivatePreviewVault1",
backup_instance_name="testInstance1",
parameters={
"identityDetails": {
"useSystemAssignedIdentity": False,
"userAssignedIdentityArmUrl": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami",
},
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"recoveryPointId": "hardcodedRP",
"restoreTargetInfo": {
"datasourceAuthCredentials": {
"objectType": "SecretStoreBasedAuthCredentials",
"secretStoreResource": {
"secretStoreType": "AzureKeyVault",
"uri": "https://samplevault.vault.azure.net/secrets/credentials",
},
},
"datasourceInfo": {
"datasourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"objectType": "Datasource",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb",
"resourceLocation": "",
"resourceName": "targetdb",
"resourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"resourceUri": "",
},
"datasourceSetInfo": {
"datasourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"objectType": "DatasourceSet",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resourceLocation": "",
"resourceName": "viveksipgtest",
"resourceType": "Microsoft.DBforPostgreSQL/servers",
"resourceUri": "",
},
"objectType": "RestoreTargetInfo",
"recoveryOption": "FailIfExists",
"restoreLocation": "southeastasia",
},
"sourceDataStoreType": "VaultStore",
"sourceResourceId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
},
).result()
print(response)
# x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestore.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armdataprotection_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v4"
)
// Generated from example definition: 2026-07-01/BackupInstanceOperations/TriggerRestore.json
func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestore() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdataprotection.NewClientFactory("04cf684a-d41f-4550-9f70-7708a3a2283b", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupInstancesClient().BeginTriggerRestore(ctx, "000pikumar", "PratikPrivatePreviewVault1", "testInstance1", &armdataprotection.AzureBackupRecoveryPointBasedRestoreRequest{
IdentityDetails: &armdataprotection.IdentityDetails{
UseSystemAssignedIdentity: to.Ptr(false),
UserAssignedIdentityArmURL: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami"),
},
ObjectType: to.Ptr("AzureBackupRecoveryPointBasedRestoreRequest"),
RecoveryPointID: to.Ptr("hardcodedRP"),
RestoreTargetInfo: &armdataprotection.RestoreTargetInfo{
DatasourceAuthCredentials: &armdataprotection.SecretStoreBasedAuthCredentials{
ObjectType: to.Ptr("SecretStoreBasedAuthCredentials"),
SecretStoreResource: &armdataprotection.SecretStoreResource{
SecretStoreType: to.Ptr(armdataprotection.SecretStoreTypeAzureKeyVault),
URI: to.Ptr("https://samplevault.vault.azure.net/secrets/credentials"),
},
},
DatasourceInfo: &armdataprotection.Datasource{
DatasourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"),
ObjectType: to.Ptr("Datasource"),
ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb"),
ResourceLocation: to.Ptr(""),
ResourceName: to.Ptr("targetdb"),
ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"),
ResourceURI: to.Ptr(""),
},
DatasourceSetInfo: &armdataprotection.DatasourceSet{
DatasourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"),
ObjectType: to.Ptr("DatasourceSet"),
ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"),
ResourceLocation: to.Ptr(""),
ResourceName: to.Ptr("viveksipgtest"),
ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers"),
ResourceURI: to.Ptr(""),
},
ObjectType: to.Ptr("RestoreTargetInfo"),
RecoveryOption: to.Ptr(armdataprotection.RecoveryOptionFailIfExists),
RestoreLocation: to.Ptr("southeastasia"),
},
SourceDataStoreType: to.Ptr(armdataprotection.SourceDataStoreTypeVaultStore),
SourceResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdataprotection.BackupInstancesClientTriggerRestoreResponse{
// OperationJobExtendedInfo: armdataprotection.OperationJobExtendedInfo{
// JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"),
// ObjectType: to.Ptr("OperationJobExtendedInfo"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { DataProtectionClient } = require("@azure/arm-dataprotection");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to triggers restore for a BackupInstance
*
* @summary triggers restore for a BackupInstance
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestore.json
*/
async function triggerRestore() {
const credential = new DefaultAzureCredential();
const subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b";
const client = new DataProtectionClient(credential, subscriptionId);
const result = await client.backupInstances.triggerRestore(
"000pikumar",
"PratikPrivatePreviewVault1",
"testInstance1",
{
identityDetails: {
useSystemAssignedIdentity: false,
userAssignedIdentityArmUrl:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami",
},
objectType: "AzureBackupRecoveryPointBasedRestoreRequest",
recoveryPointId: "hardcodedRP",
restoreTargetInfo: {
datasourceAuthCredentials: {
objectType: "SecretStoreBasedAuthCredentials",
secretStoreResource: {
secretStoreType: "AzureKeyVault",
uri: "https://samplevault.vault.azure.net/secrets/credentials",
},
},
datasourceInfo: {
datasourceType: "Microsoft.DBforPostgreSQL/servers/databases",
objectType: "Datasource",
resourceID:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb",
resourceLocation: "",
resourceName: "targetdb",
resourceType: "Microsoft.DBforPostgreSQL/servers/databases",
resourceUri: "",
},
datasourceSetInfo: {
datasourceType: "Microsoft.DBforPostgreSQL/servers/databases",
objectType: "DatasourceSet",
resourceID:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
resourceLocation: "",
resourceName: "viveksipgtest",
resourceType: "Microsoft.DBforPostgreSQL/servers",
resourceUri: "",
},
objectType: "RestoreTargetInfo",
recoveryOption: "FailIfExists",
restoreLocation: "southeastasia",
},
sourceDataStoreType: "VaultStore",
sourceResourceId:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Örnek yanıt
{
"jobId": "c60cb49-63e8-4b21-b9bd-26277b3fdfae",
"objectType": "OperationJobExtendedInfo"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Location: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Retry-After: 60
Trigger Restore As Files
Örnek isteği
POST https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault1/backupInstances/testInstance1/restore?api-version=2026-07-01
{
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"recoveryPointId": "hardcodedRP",
"restoreTargetInfo": {
"objectType": "RestoreFilesTargetInfo",
"recoveryOption": "FailIfExists",
"restoreLocation": "southeastasia",
"targetDetails": {
"filePrefix": "restoredblob",
"restoreTargetLocationType": "AzureBlobs",
"url": "https://teststorage.blob.core.windows.net/restoretest"
}
},
"sourceDataStoreType": "VaultStore",
"sourceResourceId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"
}
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest;
import com.azure.resourcemanager.dataprotection.models.RecoveryOption;
import com.azure.resourcemanager.dataprotection.models.RestoreFilesTargetInfo;
import com.azure.resourcemanager.dataprotection.models.RestoreTargetLocationType;
import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType;
import com.azure.resourcemanager.dataprotection.models.TargetDetails;
import java.util.HashMap;
import java.util.Map;
/**
* Samples for BackupInstances TriggerRestore.
*/
public final class Main {
/*
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreAsFiles.json
*/
/**
* Sample code: Trigger Restore As Files.
*
* @param manager Entry point to DataProtectionManager.
*/
public static void triggerRestoreAsFiles(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
manager.backupInstances().triggerRestore("000pikumar", "PrivatePreviewVault1", "testInstance1",
new AzureBackupRecoveryPointBasedRestoreRequest()
.withRestoreTargetInfo(new RestoreFilesTargetInfo().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS)
.withRestoreLocation("southeastasia")
.withTargetDetails(new TargetDetails().withFilePrefix("restoredblob")
.withRestoreTargetLocationType(RestoreTargetLocationType.AZURE_BLOBS)
.withUrl("https://teststorage.blob.core.windows.net/restoretest")))
.withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
.withSourceResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withRecoveryPointId("hardcodedRP"),
com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dataprotection import DataProtectionMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dataprotection
# USAGE
python trigger_restore_as_files.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DataProtectionMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.backup_instances.begin_trigger_restore(
resource_group_name="000pikumar",
vault_name="PrivatePreviewVault1",
backup_instance_name="testInstance1",
parameters={
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"recoveryPointId": "hardcodedRP",
"restoreTargetInfo": {
"objectType": "RestoreFilesTargetInfo",
"recoveryOption": "FailIfExists",
"restoreLocation": "southeastasia",
"targetDetails": {
"filePrefix": "restoredblob",
"restoreTargetLocationType": "AzureBlobs",
"url": "https://teststorage.blob.core.windows.net/restoretest",
},
},
"sourceDataStoreType": "VaultStore",
"sourceResourceId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
},
).result()
print(response)
# x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreAsFiles.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armdataprotection_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v4"
)
// Generated from example definition: 2026-07-01/BackupInstanceOperations/TriggerRestoreAsFiles.json
func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreAsFiles() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdataprotection.NewClientFactory("04cf684a-d41f-4550-9f70-7708a3a2283b", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupInstancesClient().BeginTriggerRestore(ctx, "000pikumar", "PrivatePreviewVault1", "testInstance1", &armdataprotection.AzureBackupRecoveryPointBasedRestoreRequest{
ObjectType: to.Ptr("AzureBackupRecoveryPointBasedRestoreRequest"),
RecoveryPointID: to.Ptr("hardcodedRP"),
RestoreTargetInfo: &armdataprotection.RestoreFilesTargetInfo{
ObjectType: to.Ptr("RestoreFilesTargetInfo"),
RecoveryOption: to.Ptr(armdataprotection.RecoveryOptionFailIfExists),
RestoreLocation: to.Ptr("southeastasia"),
TargetDetails: &armdataprotection.TargetDetails{
FilePrefix: to.Ptr("restoredblob"),
RestoreTargetLocationType: to.Ptr(armdataprotection.RestoreTargetLocationTypeAzureBlobs),
URL: to.Ptr("https://teststorage.blob.core.windows.net/restoretest"),
},
},
SourceDataStoreType: to.Ptr(armdataprotection.SourceDataStoreTypeVaultStore),
SourceResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdataprotection.BackupInstancesClientTriggerRestoreResponse{
// OperationJobExtendedInfo: armdataprotection.OperationJobExtendedInfo{
// JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"),
// ObjectType: to.Ptr("OperationJobExtendedInfo"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { DataProtectionClient } = require("@azure/arm-dataprotection");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to triggers restore for a BackupInstance
*
* @summary triggers restore for a BackupInstance
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreAsFiles.json
*/
async function triggerRestoreAsFiles() {
const credential = new DefaultAzureCredential();
const subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b";
const client = new DataProtectionClient(credential, subscriptionId);
const result = await client.backupInstances.triggerRestore(
"000pikumar",
"PrivatePreviewVault1",
"testInstance1",
{
objectType: "AzureBackupRecoveryPointBasedRestoreRequest",
recoveryPointId: "hardcodedRP",
restoreTargetInfo: {
objectType: "RestoreFilesTargetInfo",
recoveryOption: "FailIfExists",
restoreLocation: "southeastasia",
targetDetails: {
filePrefix: "restoredblob",
restoreTargetLocationType: "AzureBlobs",
url: "https://teststorage.blob.core.windows.net/restoretest",
},
},
sourceDataStoreType: "VaultStore",
sourceResourceId:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Örnek yanıt
{
"jobId": "c60cb49-63e8-4b21-b9bd-26277b3fdfae",
"objectType": "OperationJobExtendedInfo"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Location: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/testInstance1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Retry-After: 60
Trigger Restore with GenericRestoreDatasourceCriteria
Örnek isteği
POST https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault1/backupInstances/testInstance1/restore?api-version=2026-07-01
{
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"recoveryPointId": "hardcodedRP",
"sourceDataStoreType": "OperationalStore",
"restoreTargetInfo": {
"restoreLocation": "southeastasia",
"recoveryOption": "FailIfExists",
"objectType": "ItemLevelRestoreTargetInfo",
"datasourceInfo": {
"resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/target-esan-volgroup",
"resourceUri": "SampleresourceUri123",
"datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups",
"resourceName": "target-esan-volgroup",
"resourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups",
"resourceLocation": "eastus2euap",
"objectType": "Datasource"
},
"datasourceSetInfo": {
"resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc",
"datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups",
"resourceType": "Microsoft.ElasticSan/elasticSans",
"resourceLocation": "eastus2euap",
"objectType": "DatasourceSet"
},
"restoreCriteria": [
{
"objectType": "GenericRestoreDatasourceCriteria",
"resourceSelectors": {
"objectType": "resourceListSelectionCriteria",
"resourceIdentifiers": [
"source-vol1",
"source-vol2",
"source-vol3"
],
"resourceNameOverrides": {
"source-vol1": "target-vol1",
"source-vol2": "target-vol2"
}
}
}
]
}
}
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest;
import com.azure.resourcemanager.dataprotection.models.Datasource;
import com.azure.resourcemanager.dataprotection.models.DatasourceSet;
import com.azure.resourcemanager.dataprotection.models.GenericRestoreDatasourceCriteria;
import com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreTargetInfo;
import com.azure.resourcemanager.dataprotection.models.RecoveryOption;
import com.azure.resourcemanager.dataprotection.models.ResourceListSelectionCriteria;
import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* Samples for BackupInstances TriggerRestore.
*/
public final class Main {
/*
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json
*/
/**
* Sample code: Trigger Restore with GenericRestoreDatasourceCriteria.
*
* @param manager Entry point to DataProtectionManager.
*/
public static void triggerRestoreWithGenericRestoreDatasourceCriteria(
com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
manager.backupInstances()
.triggerRestore("000pikumar", "PrivatePreviewVault1", "testInstance1",
new AzureBackupRecoveryPointBasedRestoreRequest()
.withRestoreTargetInfo(new ItemLevelRestoreTargetInfo()
.withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS).withRestoreLocation("southeastasia")
.withRestoreCriteria(
Arrays.asList(new GenericRestoreDatasourceCriteria().withResourceSelectors(
new ResourceListSelectionCriteria().withObjectType("resourceListSelectionCriteria")
.withResourceIdentifiers(Arrays
.asList("source-vol1", "source-vol2", "source-vol3"))
.withResourceNameOverrides(
mapOf("source-vol1", "target-vol1", "source-vol2", "target-vol2")))))
.withDatasourceInfo(new Datasource()
.withDatasourceType("Microsoft.ElasticSan/elasticSans/volumeGroups")
.withObjectType("Datasource")
.withResourceId(
"/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/target-esan-volgroup")
.withResourceLocation("eastus2euap").withResourceName("target-esan-volgroup")
.withResourceType(
"Microsoft.ElasticSan/elasticSans/volumeGroups")
.withResourceUri("SampleresourceUri123"))
.withDatasourceSetInfo(new DatasourceSet()
.withDatasourceType("Microsoft.ElasticSan/elasticSans/volumeGroups")
.withObjectType("DatasourceSet")
.withResourceId(
"/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc")
.withResourceLocation("eastus2euap").withResourceType("Microsoft.ElasticSan/elasticSans")))
.withSourceDataStoreType(SourceDataStoreType.OPERATIONAL_STORE).withRecoveryPointId("hardcodedRP"),
com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dataprotection import DataProtectionMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dataprotection
# USAGE
python trigger_restore_with_generic_parameters.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DataProtectionMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.backup_instances.begin_trigger_restore(
resource_group_name="000pikumar",
vault_name="PrivatePreviewVault1",
backup_instance_name="testInstance1",
parameters={
"objectType": "AzureBackupRecoveryPointBasedRestoreRequest",
"recoveryPointId": "hardcodedRP",
"restoreTargetInfo": {
"datasourceInfo": {
"datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups",
"objectType": "Datasource",
"resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/target-esan-volgroup",
"resourceLocation": "eastus2euap",
"resourceName": "target-esan-volgroup",
"resourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups",
"resourceUri": "SampleresourceUri123",
},
"datasourceSetInfo": {
"datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups",
"objectType": "DatasourceSet",
"resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc",
"resourceLocation": "eastus2euap",
"resourceType": "Microsoft.ElasticSan/elasticSans",
},
"objectType": "ItemLevelRestoreTargetInfo",
"recoveryOption": "FailIfExists",
"restoreCriteria": [
{
"objectType": "GenericRestoreDatasourceCriteria",
"resourceSelectors": {
"objectType": "resourceListSelectionCriteria",
"resourceIdentifiers": ["source-vol1", "source-vol2", "source-vol3"],
"resourceNameOverrides": {"source-vol1": "target-vol1", "source-vol2": "target-vol2"},
},
}
],
"restoreLocation": "southeastasia",
},
"sourceDataStoreType": "OperationalStore",
},
).result()
print(response)
# x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armdataprotection_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v4"
)
// Generated from example definition: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json
func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreWithGenericRestoreDatasourceCriteria() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdataprotection.NewClientFactory("04cf684a-d41f-4550-9f70-7708a3a2283b", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupInstancesClient().BeginTriggerRestore(ctx, "000pikumar", "PrivatePreviewVault1", "testInstance1", &armdataprotection.AzureBackupRecoveryPointBasedRestoreRequest{
ObjectType: to.Ptr("AzureBackupRecoveryPointBasedRestoreRequest"),
RecoveryPointID: to.Ptr("hardcodedRP"),
SourceDataStoreType: to.Ptr(armdataprotection.SourceDataStoreTypeOperationalStore),
RestoreTargetInfo: &armdataprotection.ItemLevelRestoreTargetInfo{
RestoreLocation: to.Ptr("southeastasia"),
RecoveryOption: to.Ptr(armdataprotection.RecoveryOptionFailIfExists),
ObjectType: to.Ptr("ItemLevelRestoreTargetInfo"),
DatasourceInfo: &armdataprotection.Datasource{
ResourceID: to.Ptr("/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/target-esan-volgroup"),
ResourceURI: to.Ptr("SampleresourceUri123"),
DatasourceType: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"),
ResourceName: to.Ptr("target-esan-volgroup"),
ResourceType: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"),
ResourceLocation: to.Ptr("eastus2euap"),
ObjectType: to.Ptr("Datasource"),
},
DatasourceSetInfo: &armdataprotection.DatasourceSet{
ResourceID: to.Ptr("/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc"),
DatasourceType: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"),
ResourceType: to.Ptr("Microsoft.ElasticSan/elasticSans"),
ResourceLocation: to.Ptr("eastus2euap"),
ObjectType: to.Ptr("DatasourceSet"),
},
RestoreCriteria: []armdataprotection.ItemLevelRestoreCriteriaClassification{
&armdataprotection.GenericRestoreDatasourceCriteria{
ObjectType: to.Ptr("GenericRestoreDatasourceCriteria"),
ResourceSelectors: &armdataprotection.ResourceListSelectionCriteria{
ObjectType: to.Ptr("resourceListSelectionCriteria"),
ResourceIdentifiers: []*string{
to.Ptr("source-vol1"),
to.Ptr("source-vol2"),
to.Ptr("source-vol3"),
},
ResourceNameOverrides: map[string]*string{
"source-vol1": to.Ptr("target-vol1"),
"source-vol2": to.Ptr("target-vol2"),
},
},
},
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdataprotection.BackupInstancesClientTriggerRestoreResponse{
// OperationJobExtendedInfo: armdataprotection.OperationJobExtendedInfo{
// JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"),
// ObjectType: to.Ptr("OperationJobExtendedInfo"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { DataProtectionClient } = require("@azure/arm-dataprotection");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to triggers restore for a BackupInstance
*
* @summary triggers restore for a BackupInstance
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json
*/
async function triggerRestoreWithGenericRestoreDatasourceCriteria() {
const credential = new DefaultAzureCredential();
const subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b";
const client = new DataProtectionClient(credential, subscriptionId);
const result = await client.backupInstances.triggerRestore(
"000pikumar",
"PrivatePreviewVault1",
"testInstance1",
{
objectType: "AzureBackupRecoveryPointBasedRestoreRequest",
recoveryPointId: "hardcodedRP",
sourceDataStoreType: "OperationalStore",
restoreTargetInfo: {
restoreLocation: "southeastasia",
recoveryOption: "FailIfExists",
objectType: "ItemLevelRestoreTargetInfo",
datasourceInfo: {
resourceID:
"/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/target-esan-volgroup",
resourceUri: "SampleresourceUri123",
datasourceType: "Microsoft.ElasticSan/elasticSans/volumeGroups",
resourceName: "target-esan-volgroup",
resourceType: "Microsoft.ElasticSan/elasticSans/volumeGroups",
resourceLocation: "eastus2euap",
objectType: "Datasource",
},
datasourceSetInfo: {
resourceID:
"/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc",
datasourceType: "Microsoft.ElasticSan/elasticSans/volumeGroups",
resourceType: "Microsoft.ElasticSan/elasticSans",
resourceLocation: "eastus2euap",
objectType: "DatasourceSet",
},
restoreCriteria: [
{
objectType: "GenericRestoreDatasourceCriteria",
resourceSelectors: {
objectType: "resourceListSelectionCriteria",
resourceIdentifiers: ["source-vol1", "source-vol2", "source-vol3"],
resourceNameOverrides: { "source-vol1": "target-vol1", "source-vol2": "target-vol2" },
},
},
],
},
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Örnek yanıt
Location: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/testInstance1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Retry-After: 60
{
"jobId": "c60cb49-63e8-4b21-b9bd-26277b3fdfae",
"objectType": "OperationJobExtendedInfo"
}
Trigger Restore With Rehydration
Örnek isteği
POST https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/testInstance1/restore?api-version=2026-07-01
{
"objectType": "AzureBackupRestoreWithRehydrationRequest",
"recoveryPointId": "hardcodedRP",
"rehydrationPriority": "High",
"rehydrationRetentionDuration": "7D",
"restoreTargetInfo": {
"datasourceInfo": {
"datasourceType": "OssDB",
"objectType": "Datasource",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
"resourceLocation": "",
"resourceName": "testdb",
"resourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"resourceUri": ""
},
"datasourceSetInfo": {
"datasourceType": "OssDB",
"objectType": "DatasourceSet",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resourceLocation": "",
"resourceName": "viveksipgtest",
"resourceType": "Microsoft.DBforPostgreSQL/servers",
"resourceUri": ""
},
"objectType": "RestoreTargetInfo",
"recoveryOption": "FailIfExists",
"restoreLocation": "southeastasia"
},
"sourceDataStoreType": "VaultStore",
"sourceResourceId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"
}
import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreWithRehydrationRequest;
import com.azure.resourcemanager.dataprotection.models.Datasource;
import com.azure.resourcemanager.dataprotection.models.DatasourceSet;
import com.azure.resourcemanager.dataprotection.models.RecoveryOption;
import com.azure.resourcemanager.dataprotection.models.RehydrationPriority;
import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo;
import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType;
import java.util.HashMap;
import java.util.Map;
/**
* Samples for BackupInstances TriggerRestore.
*/
public final class Main {
/*
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json
*/
/**
* Sample code: Trigger Restore With Rehydration.
*
* @param manager Entry point to DataProtectionManager.
*/
public static void
triggerRestoreWithRehydration(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
manager.backupInstances().triggerRestore("000pikumar", "PratikPrivatePreviewVault1", "testInstance1",
new AzureBackupRestoreWithRehydrationRequest().withRestoreTargetInfo(new RestoreTargetInfo()
.withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS).withRestoreLocation("southeastasia")
.withDatasourceInfo(new Datasource().withDatasourceType("OssDB").withObjectType("Datasource")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withResourceLocation("").withResourceName("testdb")
.withResourceType("Microsoft.DBforPostgreSQL/servers/databases").withResourceUri(""))
.withDatasourceSetInfo(new DatasourceSet().withDatasourceType("OssDB").withObjectType("DatasourceSet")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
.withResourceLocation("").withResourceName("viveksipgtest")
.withResourceType("Microsoft.DBforPostgreSQL/servers").withResourceUri("")))
.withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
.withSourceResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withRecoveryPointId("hardcodedRP").withRehydrationPriority(RehydrationPriority.HIGH)
.withRehydrationRetentionDuration("7D"),
com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dataprotection import DataProtectionMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dataprotection
# USAGE
python trigger_restore_with_rehydration.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DataProtectionMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.backup_instances.begin_trigger_restore(
resource_group_name="000pikumar",
vault_name="PratikPrivatePreviewVault1",
backup_instance_name="testInstance1",
parameters={
"objectType": "AzureBackupRestoreWithRehydrationRequest",
"recoveryPointId": "hardcodedRP",
"rehydrationPriority": "High",
"rehydrationRetentionDuration": "7D",
"restoreTargetInfo": {
"datasourceInfo": {
"datasourceType": "OssDB",
"objectType": "Datasource",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
"resourceLocation": "",
"resourceName": "testdb",
"resourceType": "Microsoft.DBforPostgreSQL/servers/databases",
"resourceUri": "",
},
"datasourceSetInfo": {
"datasourceType": "OssDB",
"objectType": "DatasourceSet",
"resourceID": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resourceLocation": "",
"resourceName": "viveksipgtest",
"resourceType": "Microsoft.DBforPostgreSQL/servers",
"resourceUri": "",
},
"objectType": "RestoreTargetInfo",
"recoveryOption": "FailIfExists",
"restoreLocation": "southeastasia",
},
"sourceDataStoreType": "VaultStore",
"sourceResourceId": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
},
).result()
print(response)
# x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armdataprotection_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v4"
)
// Generated from example definition: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json
func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreWithRehydration() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdataprotection.NewClientFactory("04cf684a-d41f-4550-9f70-7708a3a2283b", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupInstancesClient().BeginTriggerRestore(ctx, "000pikumar", "PratikPrivatePreviewVault1", "testInstance1", &armdataprotection.AzureBackupRestoreWithRehydrationRequest{
ObjectType: to.Ptr("AzureBackupRestoreWithRehydrationRequest"),
RecoveryPointID: to.Ptr("hardcodedRP"),
RehydrationPriority: to.Ptr(armdataprotection.RehydrationPriorityHigh),
RehydrationRetentionDuration: to.Ptr("7D"),
RestoreTargetInfo: &armdataprotection.RestoreTargetInfo{
DatasourceInfo: &armdataprotection.Datasource{
DatasourceType: to.Ptr("OssDB"),
ObjectType: to.Ptr("Datasource"),
ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"),
ResourceLocation: to.Ptr(""),
ResourceName: to.Ptr("testdb"),
ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"),
ResourceURI: to.Ptr(""),
},
DatasourceSetInfo: &armdataprotection.DatasourceSet{
DatasourceType: to.Ptr("OssDB"),
ObjectType: to.Ptr("DatasourceSet"),
ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"),
ResourceLocation: to.Ptr(""),
ResourceName: to.Ptr("viveksipgtest"),
ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers"),
ResourceURI: to.Ptr(""),
},
ObjectType: to.Ptr("RestoreTargetInfo"),
RecoveryOption: to.Ptr(armdataprotection.RecoveryOptionFailIfExists),
RestoreLocation: to.Ptr("southeastasia"),
},
SourceDataStoreType: to.Ptr(armdataprotection.SourceDataStoreTypeVaultStore),
SourceResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdataprotection.BackupInstancesClientTriggerRestoreResponse{
// OperationJobExtendedInfo: armdataprotection.OperationJobExtendedInfo{
// JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"),
// ObjectType: to.Ptr("OperationJobExtendedInfo"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { DataProtectionClient } = require("@azure/arm-dataprotection");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to triggers restore for a BackupInstance
*
* @summary triggers restore for a BackupInstance
* x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json
*/
async function triggerRestoreWithRehydration() {
const credential = new DefaultAzureCredential();
const subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b";
const client = new DataProtectionClient(credential, subscriptionId);
const result = await client.backupInstances.triggerRestore(
"000pikumar",
"PratikPrivatePreviewVault1",
"testInstance1",
{
objectType: "AzureBackupRestoreWithRehydrationRequest",
recoveryPointId: "hardcodedRP",
rehydrationPriority: "High",
rehydrationRetentionDuration: "7D",
restoreTargetInfo: {
datasourceInfo: {
datasourceType: "OssDB",
objectType: "Datasource",
resourceID:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
resourceLocation: "",
resourceName: "testdb",
resourceType: "Microsoft.DBforPostgreSQL/servers/databases",
resourceUri: "",
},
datasourceSetInfo: {
datasourceType: "OssDB",
objectType: "DatasourceSet",
resourceID:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
resourceLocation: "",
resourceName: "viveksipgtest",
resourceType: "Microsoft.DBforPostgreSQL/servers",
resourceUri: "",
},
objectType: "RestoreTargetInfo",
recoveryOption: "FailIfExists",
restoreLocation: "southeastasia",
},
sourceDataStoreType: "VaultStore",
sourceResourceId:
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Örnek yanıt
{
"jobId": "c60cb49-63e8-4b21-b9bd-26277b3fdfae",
"objectType": "OperationJobExtendedInfo"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/operationStatus/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Location: https://management.azure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupInstances/harshitbi1/operationResults/ZTA4YjQ0ZGYtYmNkNS00YTk1LWFjZTMtOTc1MjNmZWIxYWZlO2Y1ODg1MzA3LWJkNjItNDQ2OC05ZjZlLTJkMGM2NjNiNmJmNg==?api-version=2026-07-01
Retry-After: 60
Tanımlar
AzureBackupRecoveryPointBasedRestoreRequest
Nesne
Azure backup recoveryPoint tabanlı geri yükleme isteği
| Veri Akışı Adı |
Tür |
Description |
|
identityDetails
|
IdentityDetails
|
BI için Kimlik Ayrıntıları bilgilerini içerir.
Null ise, varsayılan değer Sistem Atanmış olarak kabul edilir.
|
|
objectType
|
string:
AzureBackupRecoveryPointBasedRestoreRequest
|
|
|
recoveryPointId
|
string
|
|
|
resourceGuardOperationRequests
|
string[]
|
LAC denetiminin gerçekleştirileceği ResourceGuardOperationRequests
|
|
restoreTargetInfo
|
RestoreTargetInfoBase:
|
Geri yükleme hedef bilgilerini alır veya ayarlar.
|
|
sourceDataStoreType
|
SourceDataStoreType
|
Kaynak veri deposunun türünü alır veya ayarlar.
|
|
sourceResourceId
|
string
|
Kurtarılmakta olan veri kaynağının tam Azure Resource Manager kimliği.
|
AzureBackupRecoveryTimeBasedRestoreRequest
Nesne
AzureBackup RecoveryPointTime Tabanlı Geri Yükleme İsteği
| Veri Akışı Adı |
Tür |
Description |
|
identityDetails
|
IdentityDetails
|
BI için Kimlik Ayrıntıları bilgilerini içerir.
Null ise, varsayılan değer Sistem Atanmış olarak kabul edilir.
|
|
objectType
|
string:
AzureBackupRecoveryTimeBasedRestoreRequest
|
|
|
recoveryPointTime
|
string
|
ISO 8601 biçiminde kurtarma süresi örneği - 2020-08-14T17:30:00.0000000Z.
|
|
resourceGuardOperationRequests
|
string[]
|
LAC denetiminin gerçekleştirileceği ResourceGuardOperationRequests
|
|
restoreTargetInfo
|
RestoreTargetInfoBase:
|
Geri yükleme hedef bilgilerini alır veya ayarlar.
|
|
sourceDataStoreType
|
SourceDataStoreType
|
Kaynak veri deposunun türünü alır veya ayarlar.
|
|
sourceResourceId
|
string
|
Kurtarılmakta olan veri kaynağının tam Azure Resource Manager kimliği.
|
AzureBackupRestoreWithRehydrationRequest
Nesne
Yeniden Doldurma İsteği ile AzureBackup Geri Yükleme
| Veri Akışı Adı |
Tür |
Description |
|
identityDetails
|
IdentityDetails
|
BI için Kimlik Ayrıntıları bilgilerini içerir.
Null ise, varsayılan değer Sistem Atanmış olarak kabul edilir.
|
|
objectType
|
string:
AzureBackupRestoreWithRehydrationRequest
|
|
|
recoveryPointId
|
string
|
|
|
rehydrationPriority
|
RehydrationPriority
|
Yeniden doldurma için kullanılacak öncelik. Yüksek veya Standart Değerler
|
|
rehydrationRetentionDuration
|
string
|
ISO 8601 biçiminde saklama süresi , örneğin P10D .
|
|
resourceGuardOperationRequests
|
string[]
|
LAC denetiminin gerçekleştirileceği ResourceGuardOperationRequests
|
|
restoreTargetInfo
|
RestoreTargetInfoBase:
|
Geri yükleme hedef bilgilerini alır veya ayarlar.
|
|
sourceDataStoreType
|
SourceDataStoreType
|
Kaynak veri deposunun türünü alır veya ayarlar.
|
|
sourceResourceId
|
string
|
Kurtarılmakta olan veri kaynağının tam Azure Resource Manager kimliği.
|
CloudError
Nesne
Azure Backup'tan bir hata yanıtı.
| Veri Akışı Adı |
Tür |
Description |
|
error
|
Error
|
Kaynak yönetimi hata yanıtı.
|
Datasource
Nesne
Yedeklenecek veri kaynağı
| Veri Akışı Adı |
Tür |
Description |
|
datasourceType
|
string
|
Kaynağın DatasourceType.
|
|
objectType
|
string
|
Doğru devralınan türü başlatmak için kullanılan Datasource nesnesinin türü
|
|
resourceID
|
string
|
Kaynağın tam ARM kimliği. Azure kaynakları için bu ARM kimliğidir. Azure olmayan kaynaklar için, bu kimlik Fabric/Vault üzerinden yedekleme hizmeti tarafından oluşturulur.
|
|
resourceLocation
|
string
|
Veri kaynağının konumu.
|
|
resourceName
|
string
|
Kaynağın üst öğe bağlamındaki benzersiz tanımlayıcısı.
|
|
resourceProperties
|
BaseResourceProperties:
DefaultResourceProperties
|
Veri kaynağına özgü özellikler
|
|
resourceType
|
string
|
Veri Kaynağının Kaynak Türü.
|
|
resourceUri
|
string
|
Kaynağın Uri'sini seçin.
|
DatasourceSet
Nesne
VeriKaynağı Yedeklenecek veri kaynağının ayrıntılarını ayarlama
| Veri Akışı Adı |
Tür |
Description |
|
datasourceType
|
string
|
Kaynağın DatasourceType.
|
|
objectType
|
string
|
Doğru devralınan türü başlatmak için kullanılan Datasource nesnesinin türü
|
|
resourceID
|
string
|
Kaynağın tam ARM kimliği. Azure kaynakları için bu ARM kimliğidir. Azure olmayan kaynaklar için, bu kimlik Fabric/Vault üzerinden yedekleme hizmeti tarafından oluşturulur.
|
|
resourceLocation
|
string
|
Veri kaynağının konumu.
|
|
resourceName
|
string
|
Kaynağın üst öğe bağlamındaki benzersiz tanımlayıcısı.
|
|
resourceProperties
|
BaseResourceProperties:
DefaultResourceProperties
|
Veri kaynağı kümesine özgü özellikler
|
|
resourceType
|
string
|
Veri Kaynağının Kaynak Türü.
|
|
resourceUri
|
string
|
Kaynağın Uri'sini seçin.
|
DefaultResourceProperties
Nesne
Varsayılan kaynak özellikleri
| Veri Akışı Adı |
Tür |
Description |
|
objectType
|
string:
DefaultResourceProperties
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
Error
Nesne
Kaynak yönetimi hata yanıtı.
| Veri Akışı Adı |
Tür |
Description |
|
additionalInfo
|
ErrorAdditionalInfo[]
|
Hata ek bilgisi.
|
|
code
|
string
|
Hata kodu.
|
|
details
|
Error[]
|
Hata ayrıntıları.
|
|
message
|
string
|
Hata iletisi.
|
|
target
|
string
|
Hata hedefi
|
ErrorAdditionalInfo
Nesne
Kaynak yönetimi hatasına ilişkin ek bilgiler.
| Veri Akışı Adı |
Tür |
Description |
|
info
|
object
|
Ek bilgiler.
|
|
type
|
string
|
Ek bilgi türü.
|
ExistingResourcePolicy
Numaralandırma
Çakışma İlkesi özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında kaynakların çakışması sırasında ilkeyi ayarlar.
| Değer |
Description |
|
Skip
|
|
|
Patch
|
|
GenericRestoreDatasourceCriteria
Nesne
Restore sırasında kullanılacak genel kriterler
IdentityDetails
Nesne
| Veri Akışı Adı |
Tür |
Description |
|
useSystemAssignedIdentity
|
boolean
|
BI'ın Sistem Kimliği tarafından korunup korunmadığı belirtir.
|
|
userAssignedIdentityArmUrl
|
string
|
Kullanıcı Tarafından Atanan Kimlik için ARM URL'si.
|
ItemLevelRestoreTargetInfo
Nesne
Öğe düzeyi geri yükleme işlemi için hedef bilgileri geri yükleme
| Veri Akışı Adı |
Tür |
Description |
|
datasourceAuthCredentials
|
AuthCredentials:
SecretStoreBasedAuthCredentials
|
Veri kaynağı sağlayıcısıyla kimlik doğrulaması yapmak için kullanılacak kimlik bilgileri.
|
|
datasourceInfo
|
Datasource
|
Hedef DS bilgileri
|
|
datasourceSetInfo
|
DatasourceSet
|
Hedef DS Kümesi bilgileri
|
|
objectType
|
string:
ItemLevelRestoreTargetInfo
|
Doğru devralınan türü başlatmak için kullanılan Datasource nesnesinin türü
|
|
recoveryOption
|
RecoveryOption
|
Kurtarma Seçeneği
|
|
restoreCriteria
|
ItemLevelRestoreCriteria[]:
|
Ölçütleri Geri Yükle
|
|
restoreLocation
|
string
|
Hedef Geri Yükleme bölgesi
|
ItemPathBasedRestoreCriteria
Nesne
Geri yükleme sırasında kullanılacak ön ek ölçütleri
| Veri Akışı Adı |
Tür |
Description |
|
isPathRelativeToBackupItem
|
boolean
|
Yolun yedekleme öğesine mi yoksa tam yola mı göreli olduğunu belirtmek için bayrak ekleyin
|
|
itemPath
|
string
|
Geri yüklenecek öğenin yolu. Öğenin tam yolu veya yedekleme öğesine göre yol olabilir
|
|
objectType
|
string:
ItemPathBasedRestoreCriteria
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
|
renameTo
|
string
|
Geri yüklenecek öğeyi yeniden adlandırın. Değer belirtilirse Geri Yükleme, itemPath'i bu yeni adla yeniden adlandırır, aksi takdirde itemPath aynı adla geri yüklenir.
|
|
subItemPathPrefix
|
string[]
|
Geri yükleme sırasında filtre ölçütü olarak kullanılacak ön ek dizelerinin listesi. Bunlar, belirtilen öğe yoluna göre belirlenir.
|
KubernetesClusterRestoreCriteria
Nesne
geri yükleme işlemi için kubernetes Kümesi Yedekleme hedef bilgileri
| Veri Akışı Adı |
Tür |
Description |
|
conflictPolicy
|
ExistingResourcePolicy
|
Çakışma İlkesi özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında kaynakların çakışması sırasında ilkeyi ayarlar.
|
|
excludedNamespaces
|
string[]
|
Exclude namespaces özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında dışlanacak ad alanlarını ayarlar.
|
|
excludedResourceTypes
|
string[]
|
Dışlama kaynak türleri özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında dışlanacak kaynak türlerini ayarlar.
|
|
includeClusterScopeResources
|
boolean
|
Include cluster resources özelliğini alır veya ayarlar. Etkinleştirilirse bu özellik, geri yükleme sırasında küme kapsamı kaynaklarını içerir.
|
|
includedNamespaces
|
string[]
|
include ad alanları özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında eklenecek ad alanlarını ayarlar.
|
|
includedResourceTypes
|
string[]
|
Include kaynak türleri özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında dahil edilecek kaynak türlerini ayarlar.
|
|
labelSelectors
|
string[]
|
LabelSelectors özelliğini alır veya ayarlar. Bu özellik, bu tür etiket seçicileri olan kaynağı geri yükleme sırasında dahil edilecek şekilde ayarlar.
|
|
namespaceMappings
|
object
|
Ad Alanı Eşlemeleri özelliğini alır veya ayarlar. Bu özellik, geri yükleme sırasında ad alanının değiştirilmesi gerekip gerekmediğini ayarlar.
|
|
objectType
|
string:
KubernetesClusterRestoreCriteria
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
|
persistentVolumeRestoreMode
|
PersistentVolumeRestoreMode
|
PV (Kalıcı Birim) Geri Yükleme Modu özelliğini alır veya ayarlar. Bu özellik birimlerin geri yüklenmesi gerekip gerekmediğini ayarlar.
|
|
resourceModifierReference
|
NamespacedNameResource
|
Kaynak değiştirici başvuruyu alır veya ayarlar. Bu özellik, geri yükleme sırasında kaynak değiştirici için başvuruyu ayarlar.
|
|
restoreHookReferences
|
NamespacedNameResource[]
|
Geri yükleme kancası başvurularını alır veya ayarlar. Bu özellik, kanca başvuruyu geri yükleme sırasında yürütülecek şekilde ayarlar.
|
KubernetesClusterVaultTierRestoreCriteria
Nesne
kasadan geri yükleme işlemi için kubernetes Cluster Backup hedef bilgileri
| Veri Akışı Adı |
Tür |
Description |
|
conflictPolicy
|
ExistingResourcePolicy
|
Çakışma İlkesi özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında kaynakların çakışması sırasında ilkeyi ayarlar.
|
|
excludedNamespaces
|
string[]
|
Exclude namespaces özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında ad alanlarını dışlanacak şekilde ayarlar.
|
|
excludedResourceTypes
|
string[]
|
Dışlama kaynak türleri özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında kaynak türlerini dışlanacak şekilde ayarlar.
|
|
includeClusterScopeResources
|
boolean
|
Include cluster resources özelliğini alır veya ayarlar. Etkinleştirilirse bu özellik, kasadan geri yükleme sırasında küme kapsamı kaynaklarını içerir.
|
|
includedNamespaces
|
string[]
|
include ad alanları özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında eklenecek ad alanlarını ayarlar.
|
|
includedResourceTypes
|
string[]
|
Include kaynak türleri özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında dahil edilecek kaynak türlerini ayarlar.
|
|
labelSelectors
|
string[]
|
LabelSelectors özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında dahil edilecek etiket seçicileri olan kaynağı ayarlar.
|
|
namespaceMappings
|
object
|
Ad Alanı Eşlemeleri özelliğini alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında ad alanının değiştirilmesi gerekip gerekmediğini ayarlar.
|
|
objectType
|
string:
KubernetesClusterVaultTierRestoreCriteria
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
|
persistentVolumeRestoreMode
|
PersistentVolumeRestoreMode
|
PV (Kalıcı Birim) Geri Yükleme Modu özelliğini alır veya ayarlar. Bu özellik, birimlerin kasadan geri yüklenmesi gerekip gerekmediğini ayarlar.
|
|
resourceModifierReference
|
NamespacedNameResource
|
Kaynak değiştirici başvuruyu alır veya ayarlar. Bu özellik, geri yükleme sırasında kaynak değiştirici için başvuruyu ayarlar.
|
|
restoreHookReferences
|
NamespacedNameResource[]
|
Geri yükleme kancası başvurularını alır veya ayarlar. Bu özellik, kasadan geri yükleme sırasında yürütülecek kanca başvuruyu ayarlar.
|
|
stagingResourceGroupId
|
string
(arm-id)
|
Kasadan geri yükleme sırasında hazırlama diskleri ve anlık görüntüleri oluşturmak için hazırlama RG kimliğini alır veya ayarlar.
|
|
stagingStorageAccountId
|
string
(arm-id)
|
Kasadan geri yükleme sırasında yedekleme uzantısı nesne deposu verileri oluşturmak için hazırlama Depolama Hesabı Kimliğini alır veya ayarlar.
|
KubernetesPVRestoreCriteria
Nesne
Geri yükleme işlemi için Öğe Düzeyi kubernetes kalıcı birim hedef bilgileri
| Veri Akışı Adı |
Tür |
Description |
|
name
|
string
|
Seçili kalıcı birim talep adı
|
|
objectType
|
string:
KubernetesPVRestoreCriteria
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
|
storageClassName
|
string
|
Geri yükleme işlemi için seçilen depolama sınıfı adı
|
KubernetesStorageClassRestoreCriteria
Nesne
Geri yükleme işlemi için Öğe Düzeyi kubernetes depolama sınıfı hedef bilgileri
| Veri Akışı Adı |
Tür |
Description |
|
objectType
|
string:
KubernetesStorageClassRestoreCriteria
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
|
provisioner
|
string
|
Depolama sınıfının sağlayıcısı
|
|
selectedStorageClassName
|
string
|
Seçili depolama sınıfı adı
|
NamespacedNameResource
Nesne
Ad alanı ve ad alanı içeren kaynaklara başvurmak için sınıf
| Veri Akışı Adı |
Tür |
Description |
|
name
|
string
|
Kaynağın adı
|
|
namespace
|
string
|
Kaynağın bulunduğu ad alanı
|
OperationJobExtendedInfo
Nesne
İşlem İşi Genişletilmiş Bilgileri
| Veri Akışı Adı |
Tür |
Description |
|
jobId
|
string
|
Bu işlem için oluşturulan işin adı veya Arm Kimliği.
|
|
objectType
|
string:
OperationJobExtendedInfo
|
Bu özellik, türlerin polimorfik zincirinde belirli türlerin karar vermek için ayrımcı olarak kullanılır.
|
PersistentVolumeRestoreMode
Numaralandırma
PV (Kalıcı Birim) Geri Yükleme Modu özelliğini alır veya ayarlar. Bu özellik birimlerin geri yüklenmesi gerekip gerekmediğini ayarlar.
| Değer |
Description |
|
RestoreWithVolumeData
|
|
|
RestoreWithoutVolumeData
|
|
RangeBasedItemLevelRestoreCriteria
Nesne
Geri yükleme işlemi için Öğe Düzeyi hedef bilgileri
| Veri Akışı Adı |
Tür |
Description |
|
maxMatchingValue
|
string
|
aralık ön eki eşleşmesi için en büyük değer
|
|
minMatchingValue
|
string
|
aralık ön eki eşleşmesi için en düşük değer
|
|
objectType
|
string:
RangeBasedItemLevelRestoreCriteria
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
RecoveryOption
Numaralandırma
Kurtarma Seçeneği
| Değer |
Description |
|
FailIfExists
|
|
RehydrationPriority
Numaralandırma
Yeniden doldurma için kullanılacak öncelik. Yüksek veya Standart Değerler
| Değer |
Description |
|
Invalid
|
|
|
High
|
|
|
Standard
|
|
ResourceListSelectionCriteria
Nesne
Geri yüklenecek kaynaklar listesini belirtir
| Veri Akışı Adı |
Tür |
Description |
|
objectType
|
string
|
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
|
|
resourceIdentifiers
|
string[]
|
Geri yüklenecek kaynak tanımlayıcılarının listesi
|
|
resourceNameOverrides
|
object
|
Bu, kaynak isimlerinin hedef kaynak isimlerinin geri yüklenmesi için bir haritasıdır. Haritada yer almayan herhangi bir kaynak adı, varsayılan adlandırma formatıyla geri getirilir
|
ResourcePropertiesObjectType
Numaralandırma
Belirli nesnenin türü - seri durumdan çıkarma için kullanılır
| Değer |
Description |
|
DefaultResourceProperties
|
|
RestoreFilesTargetInfo
Nesne
Dosya hedef parametreleri olarak geri yüklemeyi kapsülleyen sınıf
| Veri Akışı Adı |
Tür |
Description |
|
objectType
|
string:
RestoreFilesTargetInfo
|
Doğru devralınan türü başlatmak için kullanılan Datasource nesnesinin türü
|
|
recoveryOption
|
RecoveryOption
|
Kurtarma Seçeneği
|
|
restoreLocation
|
string
|
Hedef Geri Yükleme bölgesi
|
|
targetDetails
|
TargetDetails
|
Hedef bir veri kaynağı olmadığında RestoreAsFiles işleminin hedefi
|
RestoreTargetInfo
Nesne
Geri yükleme hedef parametrelerini kapsülleyen sınıf
| Veri Akışı Adı |
Tür |
Description |
|
datasourceAuthCredentials
|
AuthCredentials:
SecretStoreBasedAuthCredentials
|
Veri kaynağı sağlayıcısıyla kimlik doğrulaması yapmak için kullanılacak kimlik bilgileri.
|
|
datasourceInfo
|
Datasource
|
Hedef DS bilgileri
|
|
datasourceSetInfo
|
DatasourceSet
|
Hedef DS Kümesi bilgileri
|
|
objectType
|
string:
RestoreTargetInfo
|
Doğru devralınan türü başlatmak için kullanılan Datasource nesnesinin türü
|
|
recoveryOption
|
RecoveryOption
|
Kurtarma Seçeneği
|
|
restoreLocation
|
string
|
Hedef Geri Yükleme bölgesi
|
RestoreTargetLocationType
Numaralandırma
Verilerin geri yükleneceği hedef konumu, {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType} sabit listesi için dize değerini belirtir
| Değer |
Description |
|
Invalid
|
|
|
AzureBlobs
|
|
|
AzureFiles
|
|
SecretStoreBasedAuthCredentials
Nesne
Gizli dizi deposu tabanlı kimlik doğrulaması kimlik bilgileri.
SecretStoreResource
Nesne
Gizli dizi deposu kaynağını temsil eden sınıf.
| Veri Akışı Adı |
Tür |
Description |
|
secretStoreType
|
SecretStoreType
|
Gizli dizi deposunun türünü alır veya ayarlar
|
|
uri
|
string
|
Kaynağa ulaşmak için Uri
|
|
value
|
string
|
Gizli dizi deposu kaynağında depolanan değeri alır veya ayarlar
|
SecretStoreType
Numaralandırma
Gizli dizi deposunun türünü alır veya ayarlar
| Değer |
Description |
|
Invalid
|
|
|
AzureKeyVault
|
|
SourceDataStoreType
Numaralandırma
Kaynak veri deposunun türünü alır veya ayarlar.
| Değer |
Description |
|
ArchiveStore
|
|
|
SnapshotStore
|
|
|
OperationalStore
|
|
|
VaultStore
|
|
TargetDetails
Nesne
Hedefin veri kaynağı olmadığı durumlarda kullanılan hedef ayrıntılarını kapsülleyen sınıf
| Veri Akışı Adı |
Tür |
Description |
|
filePrefix
|
string
|
Geri yükleme işlemi, aşağıdaki Url ile işaret edilen konumda birden çok dosya oluşturabilir, hepsi için ortak ön ek olacaktır
|
|
restoreTargetLocationType
|
RestoreTargetLocationType
|
Verilerin geri yükleneceği hedef konumu, {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType} sabit listesi için dize değerini belirtir
|
|
targetResourceArmId
|
string
|
Geri yükleme hedefini belirten tam ARM Kimliği. Kapsayıcı/dosya paylaşımını işaret eden ARM kimliğidir Hedef abonelik URL alanıyla tanımlanabilirse bu isteğe bağlıdır. Değilse, BackupVault'un CrossSubscriptionRestore alanı devre dışı durumdaysa bu gereklidir
|
|
url
|
string
|
Geri yükleme hedefini belirten URL. Kapsayıcıya / dosya paylaşımına vb. işaret edebilir
|