다음을 통해 공유


ResourceGuardProxyBaseResourceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • 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 Azure.NullableResponse<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource> GetIfExists (string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DataProtectionBackup.ResourceGuardProxyBaseResource>
Public Overridable Function GetIfExists (resourceGuardProxyName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(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