:doc:`DataSync <../../datasync>` / Client / list_task_executions

********************
list_task_executions
********************



.. py:method:: DataSync.Client.list_task_executions(**kwargs)

  

  Returns a list of executions for an DataSync transfer task.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutions>`_  


  **Request Syntax**
  ::

    response = client.list_task_executions(
        TaskArn='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type TaskArn: string
  :param TaskArn: 

    Specifies the Amazon Resource Name (ARN) of the task that you want execution information about.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    Specifies how many results you want in the response.

    

  
  :type NextToken: string
  :param NextToken: 

    Specifies an opaque string that indicates the position at which to begin the next list of results in the response.

    

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

    
    ::

      {
          'TaskExecutions': [
              {
                  'TaskExecutionArn': 'string',
                  'Status': 'QUEUED'|'CANCELLING'|'LAUNCHING'|'PREPARING'|'TRANSFERRING'|'VERIFYING'|'SUCCESS'|'ERROR',
                  'TaskMode': 'BASIC'|'ENHANCED'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      ListTaskExecutionsResponse

      
      

      - **TaskExecutions** *(list) --* 

        A list of the task's executions.

        
        

        - *(dict) --* 

          Represents a single entry in a list of DataSync task executions that's returned with the `ListTaskExecutions <https://docs.aws.amazon.com/datasync/latest/userguide/API_ListTaskExecutions.html>`__ operation.

          
          

          - **TaskExecutionArn** *(string) --* 

            The Amazon Resource Name (ARN) of a task execution.

            
          

          - **Status** *(string) --* 

            The status of a task execution. For more information, see `Task execution statuses <https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses>`__.

            
          

          - **TaskMode** *(string) --* 

            The task mode that you're using. For more information, see `Choosing a task mode for your data transfer <https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html>`__.

            
      
    
      

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

        The opaque string that indicates the position to begin the next list of results in the response.

        
  
  **Exceptions**
  
  *   :py:class:`DataSync.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`DataSync.Client.exceptions.InternalException`

  