:doc:`CodeCommit <../../codecommit>` / Client / list_repositories

*****************
list_repositories
*****************



.. py:method:: CodeCommit.Client.list_repositories(**kwargs)

  

  Gets information about one or more repositories.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories>`_  


  **Request Syntax**
  ::

    response = client.list_repositories(
        nextToken='string',
        sortBy='repositoryName'|'lastModifiedDate',
        order='ascending'|'descending'
    )
    
  :type nextToken: string
  :param nextToken: 

    An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to CodeCommit, another page of 1,000 records is retrieved.

    

  
  :type sortBy: string
  :param sortBy: 

    The criteria used to sort the results of a list repositories operation.

    

  
  :type order: string
  :param order: 

    The order in which to sort the results of a list repositories operation.

    

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

    
    ::

      {
          'repositories': [
              {
                  'repositoryName': 'string',
                  'repositoryId': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the output of a list repositories operation.

      
      

      - **repositories** *(list) --* 

        Lists the repositories called by the list repositories operation.

        
        

        - *(dict) --* 

          Information about a repository name and ID.

          
          

          - **repositoryName** *(string) --* 

            The name associated with the repository.

            
          

          - **repositoryId** *(string) --* 

            The ID associated with the repository.

            
      
    
      

      - **nextToken** *(string) --* 

        An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list repository operations. When the client sends the token back to CodeCommit, another page of 1,000 records is retrieved.

        
  
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidSortByException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidOrderException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidContinuationTokenException`

  