Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0

ListCodeRepositories

Gets a list of the Git repositories in your account.

{
   "[CreationTimeAfter](#SageMaker-ListCodeRepositories-request-CreationTimeAfter)": number,
   "[CreationTimeBefore](#SageMaker-ListCodeRepositories-request-CreationTimeBefore)": number,
   "[LastModifiedTimeAfter](#SageMaker-ListCodeRepositories-request-LastModifiedTimeAfter)": number,
   "[LastModifiedTimeBefore](#SageMaker-ListCodeRepositories-request-LastModifiedTimeBefore)": number,
   "[MaxResults](#SageMaker-ListCodeRepositories-request-MaxResults)": number,
   "[NameContains](#SageMaker-ListCodeRepositories-request-NameContains)": "string",
   "[NextToken](#SageMaker-ListCodeRepositories-request-NextToken)": "string",
   "[SortBy](#SageMaker-ListCodeRepositories-request-SortBy)": "string",
   "[SortOrder](#SageMaker-ListCodeRepositories-request-SortOrder)": "string"
}

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 a NextToken. 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

{
   "[CodeRepositorySummaryList](#SageMaker-ListCodeRepositories-response-CodeRepositorySummaryList)": [ 
      { 
         "[CodeRepositoryArn](API_CodeRepositorySummary.md#SageMaker-Type-CodeRepositorySummary-CodeRepositoryArn)": "string",
         "[CodeRepositoryName](API_CodeRepositorySummary.md#SageMaker-Type-CodeRepositorySummary-CodeRepositoryName)": "string",
         "[CreationTime](API_CodeRepositorySummary.md#SageMaker-Type-CodeRepositorySummary-CreationTime)": number,
         "[GitConfig](API_CodeRepositorySummary.md#SageMaker-Type-CodeRepositorySummary-GitConfig)": { 
            "[Branch](API_GitConfig.md#SageMaker-Type-GitConfig-Branch)": "string",
            "[RepositoryUrl](API_GitConfig.md#SageMaker-Type-GitConfig-RepositoryUrl)": "string",
            "[SecretArn](API_GitConfig.md#SageMaker-Type-GitConfig-SecretArn)": "string"
         },
         "[LastModifiedTime](API_CodeRepositorySummary.md#SageMaker-Type-CodeRepositorySummary-LastModifiedTime)": number
      }
   ],
   "[NextToken](#SageMaker-ListCodeRepositories-response-NextToken)": "string"
}

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 a NextToken. To get the next set of Git repositories, use the token in the next request.
Type: String
Length Constraints: Maximum length of 8192.
Pattern: .*

For information about the errors that are common to all actions, see Common Errors.

For more information about using this API in one of the language-specific AWS SDKs, see the following: + AWS Command Line Interface + AWS SDK for .NET + AWS SDK for C++ + AWS SDK for Go + AWS SDK for Go - Pilot + AWS SDK for Java + AWS SDK for JavaScript + AWS SDK for PHP V3 + AWS SDK for Python + AWS SDK for Ruby V2