:doc:`WorkSpaces <../../workspaces>` / Client / reboot_workspaces

*****************
reboot_workspaces
*****************



.. py:method:: WorkSpaces.Client.reboot_workspaces(**kwargs)

  

  Reboots the specified WorkSpaces.

   

  You cannot reboot a WorkSpace unless its state is ``AVAILABLE``, ``UNHEALTHY``, or ``REBOOTING``. Reboot a WorkSpace in the ``REBOOTING`` state only if your WorkSpace has been stuck in the ``REBOOTING`` state for over 20 minutes.

   

  This operation is asynchronous and returns before the WorkSpaces have rebooted.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootWorkspaces>`_  


  **Request Syntax**
  ::

    response = client.reboot_workspaces(
        RebootWorkspaceRequests=[
            {
                'WorkspaceId': 'string'
            },
        ]
    )
    
  :type RebootWorkspaceRequests: list
  :param RebootWorkspaceRequests: **[REQUIRED]** 

    The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

    

  
    - *(dict) --* 

      Describes the information used to reboot a WorkSpace.

      

    
      - **WorkspaceId** *(string) --* **[REQUIRED]** 

        The identifier of the WorkSpace.

        

      
    

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

    
    ::

      {
          'FailedRequests': [
              {
                  'WorkspaceId': 'string',
                  'ErrorCode': 'string',
                  'ErrorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **FailedRequests** *(list) --* 

        Information about the WorkSpaces that could not be rebooted.

        
        

        - *(dict) --* 

          Describes a WorkSpace that could not be rebooted. (  RebootWorkspaces), rebuilt (  RebuildWorkspaces), restored (  RestoreWorkspace), terminated (  TerminateWorkspaces), started (  StartWorkspaces), or stopped (  StopWorkspaces).

          
          

          - **WorkspaceId** *(string) --* 

            The identifier of the WorkSpace.

            
          

          - **ErrorCode** *(string) --* 

            The error code that is returned if the WorkSpace cannot be rebooted.

            
          

          - **ErrorMessage** *(string) --* 

            The text of the error message that is returned if the WorkSpace cannot be rebooted.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.OperationNotSupportedException`

  