Share via


DataProtectionBackupVaultResource.GetResourceGuardProxyBaseResourceAsync Method

Definition

Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the request

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}
  • Operation Id: DppResourceGuardProxy_Get
  • Default Api Version: 2024-04-01
  • Resource: ResourceGuardProxyBaseResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>> GetResourceGuardProxyBaseResourceAsync (string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetResourceGuardProxyBaseResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>>
override this.GetResourceGuardProxyBaseResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>>
Public Overridable Function GetResourceGuardProxyBaseResourceAsync (resourceGuardProxyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ResourceGuardProxyBaseResource))

Parameters

resourceGuardProxyName
String

name of the resource guard proxy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGuardProxyName is null.

resourceGuardProxyName is an empty string, and was expected to be non-empty.

Applies to