|
Post by michaeldu on Jul 1, 2020 12:16:38 GMT
How can I specify the update apply time for SimpleUpdate? For example, I want the update to be applied on reset.
|
|
|
Post by mraineri on Jul 6, 2020 12:55:22 GMT
First, you'd need to check to see if the service allows you to specify the apply time. This can be checked with the "@redfish.OperationApplyTimeSupport" annotation in the action. For example:
{ "@odata.id": "/redfish/v1/UpdateService", "Actions": { "#UpdateService.SimpleUpdate": { "target": "/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate", "@Redfish.OperationApplyTimeSupport": { "@odata.type": "#Settings.v1_2_0.OperationApplyTimeSupport", "SupportedValues": [ "Immediate", "OnReset" ] } } }, ... }
Second, in the POST to the action, you would provide the "@redfish.OperationApplyTime" annotation.
{ "ImageURI": "http://someuri/image.bin", "@Redfish.OperationApplyTime": "OnReset" }
More information about this can be found in the "Operation apply time" clause of the spec.
|
|
|
Post by michaeldu on Jul 7, 2020 12:50:05 GMT
Thanks, I note it was described in the RF spec.
|
|