v1

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

Lists the model packages that have been created.

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

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'SageMaker.ListModelPackages' required

Request body

CreationTimeAfterstring date-time

A filter that returns only model packages created after the specified time (timestamp).

CreationTimeBeforestring date-time

A filter that returns only model packages created before the specified time (timestamp).

MaxResultsinteger

The maximum number of model packages to return in the response.

NameContainsstring

A string in the model package name. This filter returns only model packages whose name contains the specified string.

ModelApprovalStatus'Approved' | 'Rejected' | 'PendingManualApproval'

A filter that returns only the model packages with the specified approval status.

ModelPackageGroupNamestring

A filter that returns only model versions that belong to the specified model group.

ModelPackageType'Versioned' | 'Unversioned' | 'Both'
<p>A filter that returns only the model packages of the specified type. This can be one of the following values.</p> <ul> <li> <p> <code>UNVERSIONED</code> - List only unversioined models. This is the default value if no <code>ModelPackageType</code> is specified.</p> </li> <li> <p> <code>VERSIONED</code> - List only versioned models.</p> </li> <li> <p> <code>BOTH</code> - List both versioned and unversioned models.</p> </li> </ul>
NextTokenstring

If the response to a previous <code>ListModelPackages</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of model packages, use the token in the next request.

SortBy'Name' | 'CreationTime'

The parameter by which to sort the results. The default is <code>CreationTime</code>.

SortOrder'Ascending' | 'Descending'

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

Response

Success

NextTokenstring

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