:doc:`SSM <../../ssm>` / Client / get_connection_status

*********************
get_connection_status
*********************



.. py:method:: SSM.Client.get_connection_status(**kwargs)

  

  Retrieves the Session Manager connection status for a managed node to determine whether it is running and ready to receive Session Manager connections.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetConnectionStatus>`_  


  **Request Syntax**
  ::

    response = client.get_connection_status(
        Target='string'
    )
    
  :type Target: string
  :param Target: **[REQUIRED]** 

    The managed node ID.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Target': 'string',
          'Status': 'connected'|'notconnected'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Target** *(string) --* 

        The ID of the managed node to check connection status.

        
      

      - **Status** *(string) --* 

        The status of the connection to the managed node.

        
  
  **Exceptions**
  
  *   :py:class:`SSM.Client.exceptions.InternalServerError`

  