RecoveryServicesBackupExtensions.GetBackupProtectionIntentAsync 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. <item> Mocking. To mock this method, please mock GetBackupProtectionIntentAsync(String, String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentResource>> GetBackupProtectionIntentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default);
static member GetBackupProtectionIntentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentResource>>
<Extension()>
Public Function GetBackupProtectionIntentAsync (resourceGroupResource As ResourceGroupResource, vaultName As String, fabricName As String, intentObjectName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BackupProtectionIntentResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

vaultName
String

The name of the VaultResource.

fabricName
String

The name of the BackupFabricResource.

intentObjectName
String

Backed up item name whose details are to be fetched.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vaultName, fabricName or intentObjectName is an empty string, and was expected to be non-empty.

resourceGroupResource is null.

Applies to