Partager via


NetworkManagementClientExtensions.DisconnectActiveSessionsAsync Méthode

Définition

Retourne la liste des sessions actuellement actives sur 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))

Paramètres

operations
INetworkManagementClient

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources.

bastionHostName
String

Nom de l’hôte Bastion.

sessionIds
SessionIds

Liste des sessionids à déconnecter.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à