ProtectionIntentOperationsExtensions.CreateOrUpdateAsync(IProtectionIntentOperations, String, String, String, String, ProtectionIntentResource, CancellationToken) Method

Definition

Create Intent for Enabling backup of an item. This is a synchronous operation.

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)

Parameters

operations
IProtectionIntentOperations

The operations group for this extension method.

vaultName
System.String

The name of the recovery services vault.

resourceGroupName
System.String

The name of the resource group where the recovery services vault is present.

fabricName
System.String

Fabric name associated with the backup item.

intentObjectName
System.String

Intent object name.

parameters
ProtectionIntentResource

resource backed up item

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ProtectionIntentResource>

Applies to