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

**********************
create_job_for_devices
**********************



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

  

  Creates a job to run on a device. A job can update a device's software or reboot it.

  

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


  **Request Syntax**
  ::

    response = client.create_job_for_devices(
        DeviceIds=[
            'string',
        ],
        DeviceJobConfig={
            'OTAJobConfig': {
                'AllowMajorVersionUpdate': True|False,
                'ImageVersion': 'string'
            }
        },
        JobType='OTA'|'REBOOT'
    )
    
  :type DeviceIds: list
  :param DeviceIds: **[REQUIRED]** 

    ID of target device.

    

  
    - *(string) --* 

    

  :type DeviceJobConfig: dict
  :param DeviceJobConfig: 

    Configuration settings for a software update job.

    

  
    - **OTAJobConfig** *(dict) --* 

      A configuration for an over-the-air (OTA) upgrade. Required for OTA jobs.

      

    
      - **AllowMajorVersionUpdate** *(boolean) --* 

        Whether to apply the update if it is a major version change.

        

      
      - **ImageVersion** *(string) --* **[REQUIRED]** 

        The target version of the device software.

        

      
    
  
  :type JobType: string
  :param JobType: **[REQUIRED]** 

    The type of job to run.

    

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

    
    ::

      {
          'Jobs': [
              {
                  'DeviceId': 'string',
                  'JobId': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Jobs** *(list) --* 

        A list of jobs.

        
        

        - *(dict) --* 

          A job for a device.

          
          

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

            The target device's ID.

            
          

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

            The job's ID.

            
      
    
  
  **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`

  