:doc:`RedshiftServerless <../../redshift-serverless>` / Client / list_tracks

***********
list_tracks
***********



.. py:method:: RedshiftServerless.Client.list_tracks(**kwargs)

  

  List the Amazon Redshift Serverless versions.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListTracks>`_  


  **Request Syntax**
  ::

    response = client.list_tracks(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

    

  
  :type nextToken: string
  :param nextToken: 

    If your initial ``ListTracksRequest`` operation returns a ``nextToken``, you can include the returned ``nextToken`` in following ``ListTracksRequest`` operations, which returns results in the next page.

    

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

    
    ::

      {
          'nextToken': 'string',
          'tracks': [
              {
                  'trackName': 'string',
                  'updateTargets': [
                      {
                          'trackName': 'string',
                          'workgroupVersion': 'string'
                      },
                  ],
                  'workgroupVersion': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        When ``nextToken`` is returned, there are more results available. The value of ``nextToken`` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

        
      

      - **tracks** *(list) --* 

        The returned tracks.

        
        

        - *(dict) --* 

          Defines a track that determines which Amazon Redshift version to apply after a new version is released. If the value for ``ServerlessTrack`` is ``current``, the workgroup is updated to the most recently certified release. If the value is ``trailing``, the workgroup is updated to the previously certified release.

          
          

          - **trackName** *(string) --* 

            The name of the track. Valid values are ``current`` and ``trailing``.

            
          

          - **updateTargets** *(list) --* 

            An array of ``UpdateTarget`` objects to update with the track.

            
            

            - *(dict) --* 

              A track that you can switch the current track to.

              
              

              - **trackName** *(string) --* 

                The name of the new track.

                
              

              - **workgroupVersion** *(string) --* 

                The workgroup version for the new track.

                
          
        
          

          - **workgroupVersion** *(string) --* 

            The workgroup version number for the workgroup release.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`RedshiftServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`RedshiftServerless.Client.exceptions.InvalidPaginationException`

  
  *   :py:class:`RedshiftServerless.Client.exceptions.ValidationException`

  
  *   :py:class:`RedshiftServerless.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`RedshiftServerless.Client.exceptions.ThrottlingException`

  