NetworkMonitorCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkMonitors/{networkMonitorName}
  • Operation Id: NetworkMonitors_Get
  • Default Api Version: 2025-07-15
  • Resource: NetworkMonitorResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkMonitorResource>> GetIfExistsAsync(string networkMonitorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkMonitorResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkMonitorResource>>
Public Overridable Function GetIfExistsAsync (networkMonitorName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetworkMonitorResource))

Parameters

networkMonitorName
String

Name of the Network Monitor.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkMonitorName is null.

Applies to