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

****************************
describe_workspace_snapshots
****************************



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

  

  Describes the snapshots for the specified WorkSpace.

  

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


  **Request Syntax**
  ::

    response = client.describe_workspace_snapshots(
        WorkspaceId='string'
    )
    
  :type WorkspaceId: string
  :param WorkspaceId: **[REQUIRED]** 

    The identifier of the WorkSpace.

    

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

    
    ::

      {
          'RebuildSnapshots': [
              {
                  'SnapshotTime': datetime(2015, 1, 1)
              },
          ],
          'RestoreSnapshots': [
              {
                  'SnapshotTime': datetime(2015, 1, 1)
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RebuildSnapshots** *(list) --* 

        Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume.

        
        

        - *(dict) --* 

          Describes a snapshot.

          
          

          - **SnapshotTime** *(datetime) --* 

            The time when the snapshot was created.

            
      
    
      

      - **RestoreSnapshots** *(list) --* 

        Information about the snapshots that can be used to restore a WorkSpace. These snapshots include both the root volume and the user volume.

        
        

        - *(dict) --* 

          Describes a snapshot.

          
          

          - **SnapshotTime** *(datetime) --* 

            The time when the snapshot was created.

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

  
  *   :py:class:`WorkSpaces.Client.exceptions.ResourceNotFoundException`

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

  