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