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
Request Syntax
response = client.create_job_for_devices(
DeviceIds=[
'string',
],
DeviceJobConfig={
'OTAJobConfig': {
'AllowMajorVersionUpdate': True|False,
'ImageVersion': 'string'
}
},
JobType='OTA'|'REBOOT'
)
[REQUIRED]
ID of target device.
Configuration settings for a software update job.
A configuration for an over-the-air (OTA) upgrade. Required for OTA jobs.
Whether to apply the update if it is a major version change.
The target version of the device software.
[REQUIRED]
The type of job to run.
dict
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
Panorama.Client.exceptions.ConflictException
Panorama.Client.exceptions.ValidationException
Panorama.Client.exceptions.AccessDeniedException
Panorama.Client.exceptions.ResourceNotFoundException
Panorama.Client.exceptions.InternalServerException