v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141381,185842.7 KB

Retrieves a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30 days.

post/#X-Amz-Target=AmazonSSM.DescribeSessions

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AmazonSSM.DescribeSessions' required

Request body

State'Active' | 'History' required

The session status to retrieve a list of sessions for. For example, "Active".

MaxResultsinteger

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

NextTokenstring

The token for the next set of items to return. (You received this token from a previous call.)

Response

Success

NextTokenstring

The token for the next set of items to return. (You received this token from a previous call.)