v1

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

Permanently ends a session and closes the data connection between the Session Manager client and SSM Agent on the managed node. A terminated session can't be resumed.

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

Headers

X-Amz-Target'AmazonSSM.TerminateSession' required

Request body

SessionIdstring required

The ID of the session to terminate.

Response

Success

SessionIdstring

The ID of the session that has been terminated.