CodeCommit.Client.
batch_get_repositories
(**kwargs)¶Returns information about one or more repositories.
Note
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
See also: AWS API Documentation
Request Syntax
response = client.batch_get_repositories(
repositoryNames=[
'string',
]
)
[REQUIRED]
The names of the repositories to get information about.
Note
The length constraint limit is for each string in the array. The array itself can be empty.
{
'repositories': [
{
'accountId': 'string',
'repositoryId': 'string',
'repositoryName': 'string',
'repositoryDescription': 'string',
'defaultBranch': 'string',
'lastModifiedDate': datetime(2015, 1, 1),
'creationDate': datetime(2015, 1, 1),
'cloneUrlHttp': 'string',
'cloneUrlSsh': 'string',
'Arn': 'string'
},
],
'repositoriesNotFound': [
'string',
]
}
Response Structure
Represents the output of a batch get repositories operation.
A list of repositories returned by the batch get repositories operation.
Information about a repository.
The ID of the AWS account associated with the repository.
The ID of the repository.
The repository's name.
A comment or description about the repository.
The repository's default branch name.
The date and time the repository was last modified, in timestamp format.
The date and time the repository was created, in timestamp format.
The URL to use for cloning the repository over HTTPS.
The URL to use for cloning the repository over SSH.
The Amazon Resource Name (ARN) of the repository.
Returns a list of repository names for which information could not be found.
Exceptions
CodeCommit.Client.exceptions.RepositoryNamesRequiredException
CodeCommit.Client.exceptions.MaximumRepositoryNamesExceededException
CodeCommit.Client.exceptions.InvalidRepositoryNameException
CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
CodeCommit.Client.exceptions.EncryptionKeyDisabledException
CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
CodeCommit.Client.exceptions.EncryptionKeyUnavailableException