Share via


SparkSessionClient.GetSparkSessionAsync Method

Definition

Gets a single spark session.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.Spark.Models.SparkSession>> GetSparkSessionAsync (int sessionId, bool? detailed = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSparkSessionAsync : int * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.Spark.Models.SparkSession>>
override this.GetSparkSessionAsync : int * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.Spark.Models.SparkSession>>
Public Overridable Function GetSparkSessionAsync (sessionId As Integer, Optional detailed As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SparkSession))

Parameters

sessionId
Int32

Identifier for the session.

detailed
Nullable<Boolean>

Optional query param specifying whether detailed response is returned beyond plain livy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to