:doc:`ManagedGrafana <../../grafana>` / Client / list_versions

*************
list_versions
*************



.. py:method:: ManagedGrafana.Client.list_versions(**kwargs)

  

  Lists available versions of Grafana. These are available when calling ``CreateWorkspace``. Optionally, include a workspace to list the versions to which it can be upgraded.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListVersions>`_  


  **Request Syntax**
  ::

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

    The maximum number of results to include in the response.

    

  
  :type nextToken: string
  :param nextToken: 

    The token to use when requesting the next set of results. You receive this token from a previous ``ListVersions`` operation.

    

  
  :type workspaceId: string
  :param workspaceId: 

    The ID of the workspace to list the available upgrade versions. If not included, lists all versions of Grafana that are supported for ``CreateWorkspace``.

    

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

    
    ::

      {
          'grafanaVersions': [
              'string',
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **grafanaVersions** *(list) --* 

        The Grafana versions available to create. If a workspace ID is included in the request, the Grafana versions to which this workspace can be upgraded.

        
        

        - *(string) --* 
    
      

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

        The token to use in a subsequent ``ListVersions`` operation to return the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`ManagedGrafana.Client.exceptions.ResourceNotFoundException`

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

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

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

  
  *   :py:class:`ManagedGrafana.Client.exceptions.InternalServerException`

  