:doc:`ManagedintegrationsforIoTDeviceManagement <../../iot-managed-integrations>` / Client / list_schema_versions

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



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

  

  Lists schema versions with the provided information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-managed-integrations-2025-03-03/ListSchemaVersions>`_  


  **Request Syntax**
  ::

    response = client.list_schema_versions(
        Type='capability'|'definition',
        MaxResults=123,
        NextToken='string',
        SchemaId='string',
        Namespace='string',
        Visibility='PUBLIC'|'PRIVATE',
        SemanticVersion='string'
    )
    
  :type Type: string
  :param Type: **[REQUIRED]** 

    Filter on the type of schema version.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return at one time.

    

  
  :type NextToken: string
  :param NextToken: 

    A token that can be used to retrieve the next set of results.

    

  
  :type SchemaId: string
  :param SchemaId: 

    Filter on the id of the schema version.

    

  
  :type Namespace: string
  :param Namespace: 

    Filter on the name of the schema version.

    

  
  :type Visibility: string
  :param Visibility: 

    The visibility of the schema version.

    

  
  :type SemanticVersion: string
  :param SemanticVersion: 

    The schema version. If this is left blank, it defaults to the latest version.

    

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

    
    ::

      {
          'Items': [
              {
                  'SchemaId': 'string',
                  'Type': 'capability'|'definition',
                  'Description': 'string',
                  'Namespace': 'string',
                  'SemanticVersion': 'string',
                  'Visibility': 'PUBLIC'|'PRIVATE'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Items** *(list) --* 

        The list of schema versions.

        
        

        - *(dict) --* 

          List item describing a schema version.

          
          

          - **SchemaId** *(string) --* 

            The identifier of the schema version.

            
          

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

            The type of schema version.

            
          

          - **Description** *(string) --* 

            A description of the schema version.

            
          

          - **Namespace** *(string) --* 

            The name of the schema version.

            
          

          - **SemanticVersion** *(string) --* 

            The schema version. If this is left blank, it defaults to the latest version.

            
          

          - **Visibility** *(string) --* 

            The visibility of the schema version.

            
      
    
      

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

        A token that can be used to retrieve the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ConflictException`

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

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

  