:doc:`Schemas <../../schemas>` / Client / list_schema_versions

********************
list_schema_versions
********************



.. py:method:: Schemas.Client.list_schema_versions(**kwargs)

  

  Provides a list of the schema versions and related information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListSchemaVersions>`_  


  **Request Syntax**
  ::

    response = client.list_schema_versions(
        Limit=123,
        NextToken='string',
        RegistryName='string',
        SchemaName='string'
    )
    
  :type Limit: integer
  :param Limit: 

  
  :type NextToken: string
  :param NextToken: 

    The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

    

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

    The name of the registry.

    

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

    The name of the schema.

    

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

    
    ::

      {
          'NextToken': 'string',
          'SchemaVersions': [
              {
                  'SchemaArn': 'string',
                  'SchemaName': 'string',
                  'SchemaVersion': 'string',
                  'Type': 'OpenApi3'|'JSONSchemaDraft4'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      200 response

      
      

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

        The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

        
      

      - **SchemaVersions** *(list) --* 

        An array of schema version summaries.

        
        

        - *(dict) --* 
          

          - **SchemaArn** *(string) --* 

            The ARN of the schema version.

            
          

          - **SchemaName** *(string) --* 

            The name of the schema.

            
          

          - **SchemaVersion** *(string) --* 

            The version number of the schema.

            
          

          - **Type** *(string) --* 

            The type of schema.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Schemas.Client.exceptions.BadRequestException`

  
  *   :py:class:`Schemas.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Schemas.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`Schemas.Client.exceptions.ForbiddenException`

  
  *   :py:class:`Schemas.Client.exceptions.NotFoundException`

  
  *   :py:class:`Schemas.Client.exceptions.ServiceUnavailableException`

  