Share via


NetworkTapCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}
  • Operation Id: NetworkTaps_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkTapResource>> GetIfExistsAsync (string networkTapName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkTapResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkTapResource>>
Public Overridable Function GetIfExistsAsync (networkTapName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetworkTapResource))

Parameters

networkTapName
String

Name of the Network Tap.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkTapName is null.

Applies to