:doc:`DirectoryService <../../ds>` / Client / list_schema_extensions

**********************
list_schema_extensions
**********************



.. py:method:: DirectoryService.Client.list_schema_extensions(**kwargs)

  

  Lists all schema extensions applied to a Microsoft AD Directory.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensions>`_  


  **Request Syntax**
  ::

    response = client.list_schema_extensions(
        DirectoryId='string',
        NextToken='string',
        Limit=123
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The identifier of the directory from which to retrieve the schema extension information.

    

  
  :type NextToken: string
  :param NextToken: 

    The ``ListSchemaExtensions.NextToken`` value from a previous call to ``ListSchemaExtensions``. Pass null if this is the first call.

    

  
  :type Limit: integer
  :param Limit: 

    The maximum number of items to return.

    

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

    
    ::

      {
          'SchemaExtensionsInfo': [
              {
                  'DirectoryId': 'string',
                  'SchemaExtensionId': 'string',
                  'Description': 'string',
                  'SchemaExtensionStatus': 'Initializing'|'CreatingSnapshot'|'UpdatingSchema'|'Replicating'|'CancelInProgress'|'RollbackInProgress'|'Cancelled'|'Failed'|'Completed',
                  'SchemaExtensionStatusReason': 'string',
                  'StartDateTime': datetime(2015, 1, 1),
                  'EndDateTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SchemaExtensionsInfo** *(list) --* 

        Information about the schema extensions applied to the directory.

        
        

        - *(dict) --* 

          Information about a schema extension.

          
          

          - **DirectoryId** *(string) --* 

            The identifier of the directory to which the schema extension is applied.

            
          

          - **SchemaExtensionId** *(string) --* 

            The identifier of the schema extension.

            
          

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

            A description of the schema extension.

            
          

          - **SchemaExtensionStatus** *(string) --* 

            The current status of the schema extension.

            
          

          - **SchemaExtensionStatusReason** *(string) --* 

            The reason for the ``SchemaExtensionStatus``.

            
          

          - **StartDateTime** *(datetime) --* 

            The date and time that the schema extension started being applied to the directory.

            
          

          - **EndDateTime** *(datetime) --* 

            The date and time that the schema extension was completed.

            
      
    
      

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

        If not null, more results are available. Pass this value for the ``NextToken`` parameter in a subsequent call to ``ListSchemaExtensions`` to retrieve the next set of items.

        
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  