Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
137 lines (111 sloc) 7.58 KB

ListCodeRepositories

Gets a list of the Git repositories in your account.

Request Syntax

{
   "[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"
}

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 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

Response Syntax

{
   "[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"
}

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 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: .*

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:

You can’t perform that action at this time.