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

**************
list_ota_tasks
**************



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

  

  List all of the over-the-air (OTA) tasks.

  

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


  **Request Syntax**
  ::

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

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

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return at one time.

    

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

    
    ::

      {
          'Tasks': [
              {
                  'TaskId': 'string',
                  'TaskArn': 'string',
                  'CreatedAt': datetime(2015, 1, 1),
                  'LastUpdatedAt': datetime(2015, 1, 1),
                  'TaskConfigurationId': 'string',
                  'Status': 'IN_PROGRESS'|'CANCELED'|'COMPLETED'|'DELETION_IN_PROGRESS'|'SCHEDULED'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tasks** *(list) --* 

        A list of all of the over-the-air (OTA) tasks.

        
        

        - *(dict) --* 

          Structure representing one over-the-air (OTA) task.

          
          

          - **TaskId** *(string) --* 

            The id of the over-the-air (OTA) task.

            
          

          - **TaskArn** *(string) --* 

            The Amazon Resource Name (ARN) of the over-the-air (OTA) task.

            
          

          - **CreatedAt** *(datetime) --* 

            The timestamp value of when the over-the-air (OTA) task was created at.

            
          

          - **LastUpdatedAt** *(datetime) --* 

            The timestamp value of when the over-the-air (OTA) task was last updated at.

            
          

          - **TaskConfigurationId** *(string) --* 

            The identifier for the over-the-air (OTA) task configuration.

            
          

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

            The status of the over-the-air (OTA) task summary.

            
      
    
      

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

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

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

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

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

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

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

  