:doc:`Chime <../../chime>` / Client / list_rooms

**********
list_rooms
**********



.. py:method:: Chime.Client.list_rooms(**kwargs)

  

  Lists the room details for the specified Amazon Chime Enterprise account. Optionally, filter the results by a member ID (user ID or bot ID) to see a list of rooms that the member belongs to.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRooms>`_  


  **Request Syntax**
  ::

    response = client.list_rooms(
        AccountId='string',
        MemberId='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Chime account ID.

    

  
  :type MemberId: string
  :param MemberId: 

    The member ID (user ID or bot ID).

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return in a single call.

    

  
  :type NextToken: string
  :param NextToken: 

    The token to use to retrieve the next page of results.

    

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

    
    ::

      {
          'Rooms': [
              {
                  'RoomId': 'string',
                  'Name': 'string',
                  'AccountId': 'string',
                  'CreatedBy': 'string',
                  'CreatedTimestamp': datetime(2015, 1, 1),
                  'UpdatedTimestamp': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Rooms** *(list) --* 

        The room details.

        
        

        - *(dict) --* 

          The Amazon Chime chat room details.

          
          

          - **RoomId** *(string) --* 

            The room ID.

            
          

          - **Name** *(string) --* 

            The room name.

            
          

          - **AccountId** *(string) --* 

            The Amazon Chime account ID.

            
          

          - **CreatedBy** *(string) --* 

            The identifier of the room creator.

            
          

          - **CreatedTimestamp** *(datetime) --* 

            The room creation timestamp, in ISO 8601 format.

            
          

          - **UpdatedTimestamp** *(datetime) --* 

            The room update timestamp, in ISO 8601 format.

            
      
    
      

      - **NextToken** *(string) --* 

        The token to use to retrieve the next page of results.

        
  
  **Exceptions**
  
  *   :py:class:`Chime.Client.exceptions.NotFoundException`

  
  *   :py:class:`Chime.Client.exceptions.BadRequestException`

  
  *   :py:class:`Chime.Client.exceptions.ForbiddenException`

  
  *   :py:class:`Chime.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`Chime.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`Chime.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`Chime.Client.exceptions.ServiceFailureException`

  