Compartir a través de


NetworkManagementClientExtensions.GetActiveSessionsAsync Método

Definición

Devuelve la lista de sesiones activas actualmente en Bastion.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.BastionActiveSession>> GetActiveSessionsAsync (this Microsoft.Azure.Management.Network.INetworkManagementClient operations, string resourceGroupName, string bastionHostName, System.Threading.CancellationToken cancellationToken = default);
static member GetActiveSessionsAsync : Microsoft.Azure.Management.Network.INetworkManagementClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.BastionActiveSession>>
<Extension()>
Public Function GetActiveSessionsAsync (operations As INetworkManagementClient, resourceGroupName As String, bastionHostName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of BastionActiveSession))

Parámetros

operations
INetworkManagementClient

Grupo de operaciones para este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos.

bastionHostName
String

Nombre del host de Bastion.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a