Load Action and Manifest Properties
The load action and manifest support a number of properties. Some properties are used exclusively by one, and some are supported by both. The following table describes the properties, and indicates whether they are supported in the Load Action, the Manifest, or both:
Property | Load Action or Manifest Property | Type | Description | ||||||||||||||||||||||
version | Manifest Property | string | (Optional) version provides version information about this image. We recommended using this field. The CMS can display this information when asking the user for approval to proceed with the load process. | ||||||||||||||||||||||
issuer | Manifest Property | string | (Optional) issuer provides the publisher's identity. We recommended using this field. The CMS can display this information when asking the user for approval to proceed with the load process. | ||||||||||||||||||||||
description | Manifest Property | string | (Optional) description provides a brief description of the image, its contents, and purpose. We recommended using this field. The CMS can display this information when asking the user for approval to proceed with the load process. | ||||||||||||||||||||||
readme | Manifest Property | string | (Optional) readme provides information about this image. We recommended using this field. The CMS can display this information when asking the user for approval to proceed with the load process. readme is a link to a more detailed document or page. | ||||||||||||||||||||||
image | Manifest Property | string | (Required) The image property provides the name of a file, such as "top900_v12_2.bin". If the filename is found within the outer IAP image archive, then that archive member is the image. If that filename is not found, it is assumed to be a reference to a remote image, such as an HTTPS link. Example: top900_v12_2.bin | ||||||||||||||||||||||
user | Both | string | (Optional) user provides optional credentials for fetching an image using HTTP BasicAuth. | ||||||||||||||||||||||
passwd | Both | string | (Optional) passwd provides optional credentials for fetching such an image using HTTP BasicAuth. | ||||||||||||||||||||||
url | Load Action Property | string | (Required) WGET-compatible HTTP/HTTPS URL to the image that is to be loaded onto the target. The iapmq pseudo-protocol is permitted for certain images The image URL must lead to the image file itself. It must not lead to a download page or to a redirecting link, such as those provided as "download link" with many popular file sharing services. You need a direct HTTP reference to the file. WGET of this URL must produce the image file. See also the information under The Load Object. Example: "http://www.acme.com/downloads/sc/321.zip" | ||||||||||||||||||||||
imgpwd | Both | string | (Optional) Image password, used to decompress the image (from a ZIP archive) retrieved from url. | ||||||||||||||||||||||
integrity | Both | string | (Optional) Specifies the ASCII-encoded image checksum algorithm used to ensure image integrity. It can be either null, MD5, SHA256, SHA512. | ||||||||||||||||||||||
method | Both | string | (Required) Image application method. method informs the edge server how to handle the loaded image. The standard choices are native, hybrid, setup, and system. No standard method identifier contains a period. Specific edge servers may support non-standard load methods. These use identifiers containing at least one period, such as “iox.” or “iox.ble."
| ||||||||||||||||||||||
protocol | Both | string | (Optional) Edge protocol selection. protocol is required to support bulk load requests that upgrade every device within the segment for the selected protocol and type. The manifest should always define the protocol, if the manifest relates to a specific edge protocol. See also Load Many Edge Devices. Example: "cm" | ||||||||||||||||||||||
switchover | Load Action Property | string | (Optional) Timestamp (in UTC or local time) to indicate when the switchover will occur. When not specified, or specified in the past, targets switch to the new image immediately. The time when the load action is issued, perhaps with a scheduled IAP job, controls when the load action transfers, validates, and prepares the image in readiness for switchover. Note that some images may not be loaded for execution, such as supplementary data for language packs. For those, “switchover” means “activation.” Timed switchover is the responsibility of the edge processor for images that apply to edge devices, and is the responsibility of the edge server for images that apply to the edge server. See IAP/MQ Fundamentals for the timestamp format. Example: ‘2016-09-28 12:00:00.000 BST’ | ||||||||||||||||||||||
type | Both | string | (Optional) type contains a regular expression in POSIX BRE syntax. When provided, it must match the type reported in a device’s status object. For example, one type of LonWorks devices might report type “8000010203040506”. The image manifest can be restricted to this type with a “^8000010203040506$” regular expression. Because the type is a regular expression, a type of “^80000102030405” matches this application type accepting all model numbers (the last pair of hex digits). For images that apply to a specific edge server, set the image type to match the model property defined in About. The CMS can check this property to prevent an invalid load attempt. The edge server is responsible to avoid loading incompatible images, to the extent possible, subject to the data provided with the IAP load action and subject to edge protocol properties. | ||||||||||||||||||||||
flags | Both | string | (Optional) A set of flags. Each flag is a key whose value is any valid JSON value. No flags are defined at this time, but specific applications or protocol engines can declare custom flags within the manifest. Flags are set to null when no flag is required. Example:
| ||||||||||||||||||||||
checksum | Both | string | Hex-encoded reference checksum over the entire image (the data retrieved from url). Example: ‘708662ee8cc7b7129bdd75b731d61a784608a8067cfb7d26c1c15d4d8dc2863a’ | ||||||||||||||||||||||
response | Load Action Property | string | Optional response request. Errors are reported when a load operation fails, but not all successful load operations yield a deterministic response to determine when the operation completed successfully. Clients can set the response argument to an event channel topic of their choice, such as:
Note: The = sign is used to indicate that the topic is addressing a service, instead of an object. When a response is requested in this manner, a load completion object (properties shown below) is published when the image is successfully retrieved, validated, and prepared.
Load Completion Object PropertiesThe load completion object with the standard IAP/MQ channel-specific publication properties if the response belongs to a recognized channel (event channel: QoS=1, retain=false, feedback channel: QoS=1, retain=true), otherwise with QoS=1, retain=false.
|