:doc:`SageMaker <../../sagemaker>` / Client / list_hub_content_versions

*************************
list_hub_content_versions
*************************



.. py:method:: SageMaker.Client.list_hub_content_versions(**kwargs)

  

  List hub content versions.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHubContentVersions>`_  


  **Request Syntax**
  ::

    response = client.list_hub_content_versions(
        HubName='string',
        HubContentType='Model'|'Notebook'|'ModelReference'|'DataSet'|'JsonDoc',
        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'
    )
    
  :type HubName: string
  :param HubName: **[REQUIRED]** 

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

    

  
  :type HubContentType: string
  :param HubContentType: **[REQUIRED]** 

    The type of hub content to list versions of.

    

  
  :type HubContentName: string
  :param HubContentName: **[REQUIRED]** 

    The name of the hub content.

    

  
  :type MinVersion: string
  :param MinVersion: 

    The lower bound of the hub content versions to list.

    

  
  :type MaxSchemaVersion: string
  :param MaxSchemaVersion: 

    The upper bound of the hub content schema version.

    

  
  :type CreationTimeBefore: datetime
  :param CreationTimeBefore: 

    Only list hub content versions that were created before the time specified.

    

  
  :type CreationTimeAfter: datetime
  :param CreationTimeAfter: 

    Only list hub content versions that were created after the time specified.

    

  
  :type SortBy: string
  :param SortBy: 

    Sort hub content versions by either name or creation time.

    

  
  :type SortOrder: string
  :param SortOrder: 

    Sort hub content versions by ascending or descending order.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of hub content versions to list.

    

  
  :type NextToken: string
  :param NextToken: 

    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.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'HubContentSummaries': [
              {
                  'HubContentName': 'string',
                  'HubContentArn': 'string',
                  'SageMakerPublicHubContentArn': 'string',
                  'HubContentVersion': 'string',
                  'HubContentType': 'Model'|'Notebook'|'ModelReference'|'DataSet'|'JsonDoc',
                  'DocumentSchemaVersion': 'string',
                  'HubContentDisplayName': 'string',
                  'HubContentDescription': 'string',
                  'SupportStatus': 'Supported'|'Deprecated'|'Restricted',
                  'HubContentSearchKeywords': [
                      'string',
                  ],
                  'HubContentStatus': 'Available'|'Importing'|'Deleting'|'ImportFailed'|'DeleteFailed'|'PendingImport'|'PendingDelete',
                  'CreationTime': datetime(2015, 1, 1),
                  'OriginalCreationTime': 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.

            
          

          - **SageMakerPublicHubContentArn** *(string) --* 

            The ARN of the public 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.

            
          

          - **SupportStatus** *(string) --* 

            The support status 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.

            
          

          - **OriginalCreationTime** *(datetime) --* 

            The date and time when the hub content was originally created, before any updates or revisions.

            
      
    
      

      - **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**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  