Freigeben über


NetworkManagementClient.DisconnectActiveSessionsWithHttpMessagesAsync Methode

Definition

Gibt die Liste der derzeit aktiven Sitzungen auf der Bastion zurück.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.BastionSessionState>>> DisconnectActiveSessionsWithHttpMessagesAsync (string resourceGroupName, string bastionHostName, Microsoft.Azure.Management.Network.Models.SessionIds sessionIds, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DisconnectActiveSessionsWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Network.Models.SessionIds * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.BastionSessionState>>>
override this.DisconnectActiveSessionsWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Network.Models.SessionIds * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.BastionSessionState>>>
Public Function DisconnectActiveSessionsWithHttpMessagesAsync (resourceGroupName As String, bastionHostName As String, sessionIds As SessionIds, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of BastionSessionState)))

Parameter

resourceGroupName
String

Der Name der Ressourcengruppe.

bastionHostName
String

Der Name des Bastionhosts.

sessionIds
SessionIds

Die Liste der sessionids, die getrennt werden sollen.

customHeaders
Dictionary<String,List<String>>

Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Implementiert

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Gilt für: