v1

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

List the contents of a hub.

Hub APIs are only callable through SageMaker Studio.

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

Headers

X-Amz-Target'SageMaker.ListHubContents' required

Request body

HubNamestring required

The name of the hub to list the contents of.

HubContentType'Model' | 'Notebook' required

The type of hub content to list.

NameContainsstring

Only list hub content if the name contains the specified string.

MaxSchemaVersionstring

The upper bound of the hub content schema verion.

CreationTimeBeforestring date-time

Only list hub content that was created before the time specified.

CreationTimeAfterstring date-time

Only list hub content that was created after the time specified.

SortBy'HubContentName' | 'CreationTime' | 'HubContentStatus'

Sort hub content versions by either name or creation time.

SortOrder'Ascending' | 'Descending'

Sort hubs by ascending or descending order.

MaxResultsinteger

The maximum amount of hub content to list.

NextTokenstring

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

Response

Success

NextTokenstring

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