다음을 통해 공유


INetworkManagementClient.DisconnectActiveSessionsWithHttpMessagesAsync Method

Definition

Returns the list of currently active sessions on the Bastion.

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>>>
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)))

Parameters

resourceGroupName
String

The name of the resource group.

bastionHostName
String

The name of the Bastion Host.

sessionIds
SessionIds

The list of sessionids to disconnect.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to