Share via


ResourceGuardProxyBaseResourceCollection.GetAsync 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>> GetAsync (string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>>
Public Overridable Function GetAsync (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 an empty string, and was expected to be non-empty.

resourceGuardProxyName is null.

Applies to