Operation On IED - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of Industrial Edge APIs - CLI tools - Industrial Edge - References - APIs

Industrial Edge Platform Operation - APIs & References

Product
Industrial Edge
Edition
12/2024
Language
en-US (original)

You can do several operations on IED, the operation type could be systemReboot or systemShutdown. The delay time can be 0-60, it means the batch job may delay 0-60 seconds. The schedule time can be any date from now on. Use this request:

curl -i -X POST \
--header 'Accept: */*' \
-H "Authorization:<your-authorization-token>" \
'https://<your-iem-url>/portal/api/v1/batches/device-jobs' \
--data-raw '{
  "deviceJobInput": {
    "operation": "systemReboot",
    "metadata": "string",
    "schedule": "string",
    "devices": [
      "fbbeb5943ed244a1ab38bdd19b80a3ff"
    ],
    "delayTime": 60
  }
}'

A successful response looks like this for example:

{
  "batch-id": "152235943ed244a1ab38bdd19b80a3ff"
}