:doc:`WorkSpacesWeb <../../workspaces-web>` / Client / get_session

***********
get_session
***********



.. py:method:: WorkSpacesWeb.Client.get_session(**kwargs)

  

  Gets information for a secure browser session.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-web-2020-07-08/GetSession>`_  


  **Request Syntax**
  ::

    response = client.get_session(
        portalId='string',
        sessionId='string'
    )
    
  :type portalId: string
  :param portalId: **[REQUIRED]** 

    The ID of the web portal for the session.

    

  
  :type sessionId: string
  :param sessionId: **[REQUIRED]** 

    The ID of the session.

    

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

    
    ::

      {
          'session': {
              'portalArn': 'string',
              'sessionId': 'string',
              'username': 'string',
              'clientIpAddresses': [
                  'string',
              ],
              'status': 'Active'|'Terminated',
              'startTime': datetime(2015, 1, 1),
              'endTime': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **session** *(dict) --* 

        The sessions in a list.

        
        

        - **portalArn** *(string) --* 

          The ARN of the web portal.

          
        

        - **sessionId** *(string) --* 

          The ID of the session.

          
        

        - **username** *(string) --* 

          The username of the session.

          
        

        - **clientIpAddresses** *(list) --* 

          The IP address of the client.

          
          

          - *(string) --* 
      
        

        - **status** *(string) --* 

          The status of the session.

          
        

        - **startTime** *(datetime) --* 

          The start time of the session.

          
        

        - **endTime** *(datetime) --* 

          The end time of the session.

          
    
  
  **Exceptions**
  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.InternalServerException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ThrottlingException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ValidationException`

  