v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465378349.0 KB

Lists the sessions on a cluster. You can filter the results by session state. Newer sessions are returned first.

post/#X-Amz-Target=ElasticMapReduce.ListSessions

Headers

X-Amz-Target'ElasticMapReduce.ListSessions' required

Request body

ClusterIdstring required

The ID of the cluster to list sessions for.

SessionStatesSessionState[]

An optional filter that limits the results to sessions in the specified states.

NextTokenstring

The pagination token returned by a previous <code>ListSessions</code> call. Use it to retrieve the next page of results.

MaxResultsinteger

The maximum number of sessions to return in each page of results.

Response

Success

NextTokenstring

The pagination token to use in a subsequent <code>ListSessions</code> call to retrieve the next page of results. This field is absent when there are no more results.