Partager via


ProtectionIntentOperationsExtensions.CreateOrUpdateAsync Méthode

Définition

Créer une intention pour l’activation de la sauvegarde d’un élément. Il s’agit d’une opération synchrone.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionIntentResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionIntentOperations operations, string vaultName, string resourceGroupName, string fabricName, string intentObjectName, Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionIntentResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionIntentOperations * string * string * string * string * Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionIntentResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionIntentResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IProtectionIntentOperations, vaultName As String, resourceGroupName As String, fabricName As String, intentObjectName As String, parameters As ProtectionIntentResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ProtectionIntentResource)

Paramètres

operations
IProtectionIntentOperations

Groupe d’opérations pour cette méthode d’extension.

vaultName
String

Nom du coffre Recovery Services.

resourceGroupName
String

Nom du groupe de ressources où se trouve le coffre Recovery Services.

fabricName
String

Nom de la structure associée à l’élément de sauvegarde.

intentObjectName
String

Nom de l’objet intention.

parameters
ProtectionIntentResource

élément sauvegardé de ressource

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à