:doc:`CodeArtifact <../../codeartifact>` / Client / list_repositories

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



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

  

  Returns a list of `RepositorySummary <https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html>`__ objects. Each ``RepositorySummary`` contains information about a repository in the specified Amazon Web Services account and that matches the input parameters.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositories>`_  


  **Request Syntax**
  ::

    response = client.list_repositories(
        repositoryPrefix='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type repositoryPrefix: string
  :param repositoryPrefix: 

    A prefix used to filter returned repositories. Only repositories with names that start with ``repositoryPrefix`` are returned.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return per page.

    

  
  :type nextToken: string
  :param nextToken: 

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    

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

    
    ::

      {
          'repositories': [
              {
                  'name': 'string',
                  'administratorAccount': 'string',
                  'domainName': 'string',
                  'domainOwner': 'string',
                  'arn': 'string',
                  'description': 'string',
                  'createdTime': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The returned list of `RepositorySummary <https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html>`__ objects.

        
        

        - *(dict) --* 

          Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The `ListRepositories <https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListRepositories.html>`__ operation returns a list of ``RepositorySummary`` objects.

          
          

          - **name** *(string) --* 

            The name of the repository.

            
          

          - **administratorAccount** *(string) --* 

            The Amazon Web Services account ID that manages the repository.

            
          

          - **domainName** *(string) --* 

            The name of the domain that contains the repository.

            
          

          - **domainOwner** *(string) --* 

            The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

            
          

          - **arn** *(string) --* 

            The ARN of the repository.

            
          

          - **description** *(string) --* 

            The description of the repository.

            
          

          - **createdTime** *(datetime) --* 

            A timestamp that represents the date and time the repository was created.

            
      
    
      

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

        If there are additional results, this is the token for the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`CodeArtifact.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`CodeArtifact.Client.exceptions.InternalServerException`

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

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

  