ListCodeRepositories
Gets a list of the Git repositories in your account.
Request Syntax
{
"CreationTimeAfter": number
,
"CreationTimeBefore": number
,
"LastModifiedTimeAfter": number
,
"LastModifiedTimeBefore": number
,
"MaxResults": number
,
"NameContains": "string
",
"NextToken": "string
",
"SortBy": "string
",
"SortOrder": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- CreationTimeAfter
-
A filter that returns only Git repositories that were created after the specified time.
Type: Timestamp
Required: No
- CreationTimeBefore
-
A filter that returns only Git repositories that were created before the specified time.
Type: Timestamp
Required: No
- LastModifiedTimeAfter
-
A filter that returns only Git repositories that were last modified after the specified time.
Type: Timestamp
Required: No
- LastModifiedTimeBefore
-
A filter that returns only Git repositories that were last modified before the specified time.
Type: Timestamp
Required: No
- MaxResults
-
The maximum number of Git repositories to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NameContains
-
A string in the Git repositories name. This filter returns only repositories whose name contains the specified string.
Type: String
Length Constraints: Maximum length of 63.
Pattern:
[a-zA-Z0-9-]+
Required: No
- NextToken
-
If the result of a
ListCodeRepositoriesOutput
request was truncated, the response includes aNextToken
. To get the next set of Git repositories, use the token in the next request.Type: String
Length Constraints: Maximum length of 8192.
Pattern:
.*
Required: No
- SortBy
-
The field to sort results by. The default is
Name
.Type: String
Valid Values:
Name | CreationTime | LastModifiedTime
Required: No
- SortOrder
-
The sort order for results. The default is
Ascending
.Type: String
Valid Values:
Ascending | Descending
Required: No
Response Syntax
{
"CodeRepositorySummaryList": [
{
"CodeRepositoryArn": "string",
"CodeRepositoryName": "string",
"CreationTime": number,
"GitConfig": {
"Branch": "string",
"RepositoryUrl": "string",
"SecretArn": "string"
},
"LastModifiedTime": number
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- CodeRepositorySummaryList
-
Gets a list of summaries of the Git repositories. Each summary specifies the following values for the repository:
-
Name
-
Amazon Resource Name (ARN)
-
Creation time
-
Last modified time
-
Configuration information, including the URL location of the repository and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
Type: Array of CodeRepositorySummary objects
-
- NextToken
-
If the result of a
ListCodeRepositoriesOutput
request was truncated, the response includes aNextToken
. To get the next set of Git repositories, use the token in the next request.Type: String
Length Constraints: Maximum length of 8192.
Pattern:
.*
Errors
For information about the errors that are common to all actions, see Common Errors.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: