Compartilhar via


NetworkManagementClientExtensions.DisconnectActiveSessionsAsync Método

Definição

Retorna a lista de sessões ativas no momento no Bastion.

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

Parâmetros

operations
INetworkManagementClient

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos.

bastionHostName
String

O nome do Bastion Host.

sessionIds
SessionIds

A lista de sessionids a serem desconectadas.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a