v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-143021,9861.6 MB

Lists training jobs.

When StatusEquals and MaxResults are set at the same time, the MaxResults number of training jobs are first retrieved ignoring the StatusEquals parameter and then they are filtered by the StatusEquals parameter, which is returned as a response.

For example, if ListTrainingJobs is invoked with the following parameters:

{ ... MaxResults: 100, StatusEquals: InProgress ... }

First, 100 trainings jobs with any status, including those other than InProgress, are selected (sorted according to the creation time, from the most current to the oldest). Next, those with a status of InProgress are returned.

You can quickly test the API using the following Amazon Web Services CLI code.

aws sagemaker list-training-jobs --max-results 100 --status-equals InProgress

post/#X-Amz-Target=SageMaker.ListTrainingJobs

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'SageMaker.ListTrainingJobs' required

Request body

NextTokenstring

If the result of the previous <code>ListTrainingJobs</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of training jobs, use the token in the next request.

MaxResultsinteger

The maximum number of training jobs to return in the response.

CreationTimeAfterstring date-time

A filter that returns only training jobs created after the specified time (timestamp).

CreationTimeBeforestring date-time

A filter that returns only training jobs created before the specified time (timestamp).

LastModifiedTimeAfterstring date-time

A filter that returns only training jobs modified after the specified time (timestamp).

LastModifiedTimeBeforestring date-time

A filter that returns only training jobs modified before the specified time (timestamp).

NameContainsstring

A string in the training job name. This filter returns only training jobs whose name contains the specified string.

StatusEquals'InProgress' | 'Completed' | 'Failed' | 'Stopping' | 'Stopped'

A filter that retrieves only training jobs with a specific status.

SortBy'Name' | 'CreationTime' | 'Status'

The field to sort results by. The default is <code>CreationTime</code>.

SortOrder'Ascending' | 'Descending'

The sort order for results. The default is <code>Ascending</code>.

WarmPoolStatusEquals'Available' | 'Terminated' | 'Reused' | 'InUse'

A filter that retrieves only training jobs with a specific warm pool status.

Response

Success

NextTokenstring

If the response is truncated, SageMaker returns this token. To retrieve the next set of training jobs, use it in the subsequent request.