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

**********************
list_pipeline_versions
**********************



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

  

  Gets a list of all versions of the pipeline.

  

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


  **Request Syntax**
  ::

    response = client.list_pipeline_versions(
        PipelineName='string',
        CreatedAfter=datetime(2015, 1, 1),
        CreatedBefore=datetime(2015, 1, 1),
        SortOrder='Ascending'|'Descending',
        NextToken='string',
        MaxResults=123
    )
    
  :type PipelineName: string
  :param PipelineName: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the pipeline.

    

  
  :type CreatedAfter: datetime
  :param CreatedAfter: 

    A filter that returns the pipeline versions that were created after a specified time.

    

  
  :type CreatedBefore: datetime
  :param CreatedBefore: 

    A filter that returns the pipeline versions that were created before a specified time.

    

  
  :type SortOrder: string
  :param SortOrder: 

    The sort order for the results.

    

  
  :type NextToken: string
  :param NextToken: 

    If the result of the previous ``ListPipelineVersions`` request was truncated, the response includes a ``NextToken``. To retrieve the next set of pipeline versions, use this token in your next request.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of pipeline versions to return in the response.

    

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

    
    ::

      {
          'PipelineVersionSummaries': [
              {
                  'PipelineArn': 'string',
                  'PipelineVersionId': 123,
                  'CreationTime': datetime(2015, 1, 1),
                  'PipelineVersionDescription': 'string',
                  'PipelineVersionDisplayName': 'string',
                  'LastExecutionPipelineExecutionArn': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PipelineVersionSummaries** *(list) --* 

        Contains a sorted list of pipeline version summary objects matching the specified filters. Each version summary includes the pipeline version ID, the creation date, and the last pipeline execution created from that version. This list can be empty.

        
        

        - *(dict) --* 

          The summary of the pipeline version.

          
          

          - **PipelineArn** *(string) --* 

            The Amazon Resource Name (ARN) of the pipeline.

            
          

          - **PipelineVersionId** *(integer) --* 

            The ID of the pipeline version.

            
          

          - **CreationTime** *(datetime) --* 

            The creation time of the pipeline version.

            
          

          - **PipelineVersionDescription** *(string) --* 

            The description of the pipeline version.

            
          

          - **PipelineVersionDisplayName** *(string) --* 

            The display name of the pipeline version.

            
          

          - **LastExecutionPipelineExecutionArn** *(string) --* 

            The Amazon Resource Name (ARN) of the most recent pipeline execution created from this pipeline version.

            
      
    
      

      - **NextToken** *(string) --* 

        If the result of the previous ``ListPipelineVersions`` request was truncated, the response includes a ``NextToken``. To retrieve the next set of pipeline versions, use this token in your next request.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  