v1

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

Lists the contexts in your account and their properties.

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

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'SageMaker.ListContexts' required

Request body

SourceUristring

A filter that returns only contexts with the specified source URI.

ContextTypestring

A filter that returns only contexts of the specified type.

CreatedAfterstring date-time

A filter that returns only contexts created on or after the specified time.

CreatedBeforestring date-time

A filter that returns only contexts created on or before the specified time.

SortBy'Name' | 'CreationTime'

The property used to sort results. The default value is <code>CreationTime</code>.

SortOrder'Ascending' | 'Descending'

The sort order. The default value is <code>Descending</code>.

NextTokenstring

If the previous call to <code>ListContexts</code> didn't return the full set of contexts, the call returns a token for getting the next set of contexts.

MaxResultsinteger

The maximum number of contexts to return in the response. The default value is 10.

Response

Success

NextTokenstring

A token for getting the next set of contexts, if there are any.