Compartir a través de


NetworkWatcherResource.GetConnectionMonitor(String, CancellationToken) Método

Definición

Obtiene un monitor de conexión por nombre.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}
  • IdConnectionMonitors_Get de operaciones
public virtual Azure.Response<Azure.ResourceManager.Network.ConnectionMonitorResource> GetConnectionMonitor (string connectionMonitorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionMonitor : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.ConnectionMonitorResource>
override this.GetConnectionMonitor : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.ConnectionMonitorResource>
Public Overridable Function GetConnectionMonitor (connectionMonitorName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ConnectionMonitorResource)

Parámetros

connectionMonitorName
String

Nombre del monitor de conexión.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

connectionMonitorName es una cadena vacía y se espera que no esté vacía.

connectionMonitorName es null.

Se aplica a