Share via


SparkSessionClient.GetSparkSessions Method

Definition

List all spark sessions which are running under a particular spark pool.

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

Parameters

from
Nullable<Int32>

Optional param specifying which index the list should begin from.

size
Nullable<Int32>

Optional param specifying the size of the returned list. By default it is 20 and that is the maximum.

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