:doc:`Panorama <../../panorama>` / Client / list_devices_jobs

*****************
list_devices_jobs
*****************



.. py:method:: Panorama.Client.list_devices_jobs(**kwargs)

  

  Returns a list of jobs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/panorama-2019-07-24/ListDevicesJobs>`_  


  **Request Syntax**
  ::

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

    Filter results by the job's target device ID.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of device jobs to return in one page of results.

    

  
  :type NextToken: string
  :param NextToken: 

    Specify the pagination token from a previous request to retrieve the next page of results.

    

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

    
    ::

      {
          'DeviceJobs': [
              {
                  'CreatedTime': datetime(2015, 1, 1),
                  'DeviceId': 'string',
                  'DeviceName': 'string',
                  'JobId': 'string',
                  'JobType': 'OTA'|'REBOOT'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DeviceJobs** *(list) --* 

        A list of jobs.

        
        

        - *(dict) --* 

          A job that runs on a device.

          
          

          - **CreatedTime** *(datetime) --* 

            When the job was created.

            
          

          - **DeviceId** *(string) --* 

            The ID of the target device.

            
          

          - **DeviceName** *(string) --* 

            The name of the target device

            
          

          - **JobId** *(string) --* 

            The job's ID.

            
          

          - **JobType** *(string) --* 

            The job's type.

            
      
    
      

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

        A pagination token that's included if more results are available.

        
  
  **Exceptions**
  
  *   :py:class:`Panorama.Client.exceptions.ConflictException`

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

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

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

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

  