ProtectionIntentOperationsExtensions.GetAsync(IProtectionIntentOperations, String, String, String, String, CancellationToken) Method

Definition

Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionIntentResource> GetAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionIntentOperations operations, string vaultName, string resourceGroupName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionIntentOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionIntentResource>
<Extension()>
Public Function GetAsync (operations As IProtectionIntentOperations, vaultName As String, resourceGroupName As String, fabricName As String, intentObjectName As String, 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 backed up item.

intentObjectName
System.String

Backed up item name whose details are to be fetched.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ProtectionIntentResource>

Applies to