Initiates a connection to a target (for example, a managed node) for a Session Manager session. Returns a URL and token that can be used to open a WebSocket connection for sending input and receiving outputs.
Request
Header Params
Body Params application/json
Examples
Responses
🟢200Success
application/json
Body
🟠480InvalidDocument
🟠481TargetNotConnected
🟠482InternalServerError
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request POST 'http://ssm.{region}.amazonaws.com/' \
--header'X-Amz-Target;' \
--header'Content-Type: application/json' \
--data-raw''