Language

DataReplicationPrivateLinkResourceCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateLinkResources/{privateLinkResourceName}.
  • Operation Id. : PrivateLinkResources_Get.
  • Default Api Version. : 2024-09-01.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPrivateLinkResource>> GetIfExistsAsync(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPrivateLinkResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPrivateLinkResource>>
Public Overridable Function GetIfExistsAsync (privateLinkResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DataReplicationPrivateLinkResource))

Parameters

privateLinkResourceName
String

The private link name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

privateLinkResourceName is null.

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

Applies to