:doc:`IoT <../../iot>` / Client / list_ota_updates

****************
list_ota_updates
****************



.. py:method:: IoT.Client.list_ota_updates(**kwargs)

  

  Lists OTA updates.

   

  Requires permission to access the `ListOTAUpdates <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ListOTAUpdates>`_  


  **Request Syntax**
  ::

    response = client.list_ota_updates(
        maxResults=123,
        nextToken='string',
        otaUpdateStatus='CREATE_PENDING'|'CREATE_IN_PROGRESS'|'CREATE_COMPLETE'|'CREATE_FAILED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return at one time.

    

  
  :type nextToken: string
  :param nextToken: 

    A token used to retrieve the next set of results.

    

  
  :type otaUpdateStatus: string
  :param otaUpdateStatus: 

    The OTA update job status.

    

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

    
    ::

      {
          'otaUpdates': [
              {
                  'otaUpdateId': 'string',
                  'otaUpdateArn': 'string',
                  'creationDate': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **otaUpdates** *(list) --* 

        A list of OTA update jobs.

        
        

        - *(dict) --* 

          An OTA update summary.

          
          

          - **otaUpdateId** *(string) --* 

            The OTA update ID.

            
          

          - **otaUpdateArn** *(string) --* 

            The OTA update ARN.

            
          

          - **creationDate** *(datetime) --* 

            The date when the OTA update was created.

            
      
    
      

      - **nextToken** *(string) --* 

        A token to use to get the next set of results.

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

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

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  