Partilhar via


BackupProtectedItemResource.TriggerBackupAsync Método

Definição

Dispara o backup para o item de backup especificado. Esta é uma operação assíncrona. Para saber o status da operação, chame a API GetProtectedItemOperationResult.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup
  • IdBackups_Trigger de operação
public virtual System.Threading.Tasks.Task<Azure.Response> TriggerBackupAsync (Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerBackupContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member TriggerBackupAsync : Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerBackupContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.TriggerBackupAsync : Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerBackupContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function TriggerBackupAsync (content As TriggerBackupContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

content
TriggerBackupContent

solicitação de backup de recursos.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a