MockableManagedNetworkFabricResourceGroupResource.GetNetworkMonitorAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements NetworkMonitor GET method.
- 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.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkMonitorResource>> GetNetworkMonitorAsync(string networkMonitorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetworkMonitorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkMonitorResource>>
override this.GetNetworkMonitorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkMonitorResource>>
Public Overridable Function GetNetworkMonitorAsync (networkMonitorName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkMonitorResource))
Parameters
- networkMonitorName
- String
Name of the Network Monitor.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
networkMonitorName is null.
networkMonitorName is an empty string, and was expected to be non-empty.