list_hub_content_versions

list_hub_content_versions(**kwargs)

List hub content versions.

Note

Hub APIs are only callable through SageMaker Studio.

See also: AWS API Documentation

Request Syntax

response = client.list_hub_content_versions(
    HubName='string',
    HubContentType='Model'|'Notebook',
    HubContentName='string',
    MinVersion='string',
    MaxSchemaVersion='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1),
    SortBy='HubContentName'|'CreationTime'|'HubContentStatus',
    SortOrder='Ascending'|'Descending',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • HubName (string) --

    [REQUIRED]

    The name of the hub to list the content versions of.

  • HubContentType (string) --

    [REQUIRED]

    The type of hub content to list versions of.

  • HubContentName (string) --

    [REQUIRED]

    The name of the hub content.

  • MinVersion (string) -- The lower bound of the hub content versions to list.
  • MaxSchemaVersion (string) -- The upper bound of the hub content schema version.
  • CreationTimeBefore (datetime) -- Only list hub content versions that were created before the time specified.
  • CreationTimeAfter (datetime) -- Only list hub content versions that were created after the time specified.
  • SortBy (string) -- Sort hub content versions by either name or creation time.
  • SortOrder (string) -- Sort hub content versions by ascending or descending order.
  • MaxResults (integer) -- The maximum number of hub content versions to list.
  • NextToken (string) -- If the response to a previous ListHubContentVersions request was truncated, the response includes a NextToken . To retrieve the next set of hub content versions, use the token in the next request.
Return type

dict

Returns

Response Syntax

{
    'HubContentSummaries': [
        {
            'HubContentName': 'string',
            'HubContentArn': 'string',
            'HubContentVersion': 'string',
            'HubContentType': 'Model'|'Notebook',
            'DocumentSchemaVersion': 'string',
            'HubContentDisplayName': 'string',
            'HubContentDescription': 'string',
            'HubContentSearchKeywords': [
                'string',
            ],
            'HubContentStatus': 'Available'|'Importing'|'Deleting'|'ImportFailed'|'DeleteFailed',
            'CreationTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • HubContentSummaries (list) --

      The summaries of the listed hub content versions.

      • (dict) --

        Information about hub content.

        • HubContentName (string) --

          The name of the hub content.

        • HubContentArn (string) --

          The Amazon Resource Name (ARN) of the hub content.

        • HubContentVersion (string) --

          The version of the hub content.

        • HubContentType (string) --

          The type of hub content.

        • DocumentSchemaVersion (string) --

          The version of the hub content document schema.

        • HubContentDisplayName (string) --

          The display name of the hub content.

        • HubContentDescription (string) --

          A description of the hub content.

        • HubContentSearchKeywords (list) --

          The searchable keywords for the hub content.

          • (string) --
        • HubContentStatus (string) --

          The status of the hub content.

        • CreationTime (datetime) --

          The date and time that the hub content was created.

    • NextToken (string) --

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

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound