CodeCommit / Client / list_repositories

list_repositories#

CodeCommit.Client.list_repositories(**kwargs)#

Gets information about one or more repositories.

See also: AWS API Documentation

Request Syntax

response = client.list_repositories(
    nextToken='string',
    sortBy='repositoryName'|'lastModifiedDate',
    order='ascending'|'descending'
)
Parameters:
  • 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.

  • sortBy (string) – The criteria used to sort the results of a list repositories operation.

  • order (string) – The order in which to sort the results of a list repositories operation.

Return type:

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