Abort Firmware Upgrade

The Abort Firmware Upgrade element is a task used to forcefully terminate a firmware upgrade task in EnOS by sending a HTTP request.

Properties

The following table describes the properties of the task.

Property Description
Name Specify a name for your own reference.
Firmware Upgrade Task ID Specify the ID of the upgrade task. You can use a UEL expression to extract the information from the result variable of the Upgrade Firmware task. For example, use ${result.data.jobId} to extract the task ID if the result variable is named “result”.
Result Variable Name Specify a unique name for identifying the JSON variable that is used to store the response parameters.
Status Code Variable Name Specify a unique name for identifying the variable that is used to store the response status code. Status code 0 indicates that the task is successful.


Note

You need to specify the variable names if you want to display or process the task result in a later process element.

Results

The following code shows an example of the result returned when the task is successful.

{
    "code":0,
    "msg":"OK",
    "requestId":"a37e8666-212c-4b18-91d1-c7254724aec8",
    "data":null
}

If you specified variable names, all parameters will be stored in the result variable while the code parameter will also be stored in the status code variable. You can obtain the parameter values by using the dot notation. For example, if the result variable name is “result”, use ${result.msg} to extract the description of the status code.


For more information about aborting firmware upgrades in EnOS and the details of each property, see: