URI Definition
Method | URI and Fields |
---|
GET
| /iap/devs/firmwareImgList |
Returns a list of available firmware images for the specified device. Query ParameterArgument | Description |
---|
DID | (Required) ID of the device that is the target for the update. The content type is multipart/form-data. |
Examplehttps://localhost/iap/devs/firmwareImgList?deviceId=2 [ { "id": 551, "fileName": "LH-PM100E_6k.APB", "mimeType": { "primaryType": "application", "subType": "octet-stream", "parameters": { "empty": true, "names": { } }, "baseType": "application/octet-stream" }, "metafileHashtags": [ { "id": 552, "hashtagId": 40, "name": "fileSize", "value": "8 KB" }, { "id": 554, "hashtagId": 43, "name": "deviceType", "value": "LH-PM100E_S6k" }, { "id": 553, "hashtagId": 39, "name": "firmwareImage", "value": "true" } ], "dataUrlPrefix": "data:application/octet-stream;base64," } ]
|
|
/iap/devs/lonmode |
Returns the LON management mode: DMM (Device Management Mode) or IMM (Independent Management Mode). Examplehttps://localhost/iap/devs/lonmode
{value: "DMM"} |
|
PUT | /iap/devs/provision |
Performs provisioning operations on specified devices. Devices that don’t have this capability are skipped. Request Payload:Example:https://localhost/iap/devs/provision
Request Body:["2","3"] |
|
/iap/devs/deprovision |
Performs deprovisioning operations on specified devices. Devices that don’t have this capability are skipped. Request PayloadExamplehttps://localhost/iap/devs/deprovision
Request Body:["2","3"] |
|
/iap/devs/{id}/demand |
Sends an on-demand RTSM request to the specified device. When the RTSM message appears, any monitored datapoints will be published to the CMS. ArgumentArgument | Description |
---|
id | (Required) Device ID of the target device. |
Examplehttps://localhost/iap/devs/2/demand |
|
/iap/devs/{id}/replace |
Replaces one device with another. This operation replaces the physical device connected to the CMS’ representation of the device, with another physical device specified with the UNID parameter. ArgumentsArgument | Description |
---|
UNID | [integers] ID of the replacement device. Specified in the request payload. | id | (Required) ID of the device to be replaced. |
Request Payload{ value : [string] // this is the UNID of the replacement device } |
Examplehttps://localhost/iap/devs/3/replace
Request Body{ "value":"00D07111EA6B" } |
|
/iap/devs/reset |
Resets the specified collection of devices. Request PayloadExamplehttps://localhost/iap/devs/reset
Request Body["2","3"] |
|
/iap/devs/{id}/test |
Tests specified device whether it is available at the moment. A null payload is required. ArgumentArgument | Description |
---|
id | (Required) ID of the device to be tested. |
Examplehttps://localhost/iap/devs/2/test
|
|
/iap/devs/{id}/wink |
Sends wink command to the specified device. A null payload is required. ArgumentsArgument | Description |
---|
id | (Required) ID of the device to receive the wink. |
Examplehttps://localhost/iap/devs/2/wink
|
|
/iap/devs/load/{id} |
Updates the firmware or file of the specified device. This method currently has the following limitations: only manifest files with an external link to image can be processed. ArgumentsArgument | Description |
---|
id | (Required) ID of the device to be updated. |
Content Typemultipart/form-data. Request PayloadZip file containing the valid manifest file. Examplehttps://localhost/iap/devs/load/2
Request Body------WebKitFormBoundaryPV0P59KMDZGgMaBC Content-Disposition: form-data; name="metafile"; filename="LH-PM100E_6k.APB" Content-Type: application/octet-stream ------WebKitFormBoundaryPV0P59KMDZGgMaBC-- |
|
/iap/devs/loadWith/{fileId}/{devId} |
Performs load action for the specified device with the specified file. ArgumentsArgument | Description |
---|
fileId | (Required) ID of the file in the CMS. | devId | (Required) Device ID. |
Examplehttps://localhost/iap/devs/loadWith/55/2 |
|
/iap/devs/loadAllWith/{fileId} |
Performs load action for all devices with the specified file. ArgumentsArgument | Description |
---|
fileId | (Required) ID of the file in the CMS. |
Examplehttps://localhost/iap/devs/loadAllWith/551 |
|
/iap/devs/bulkFirmwareUpdate/{deviceModel} |
Updates firmware on all devices that meet the model criteria. ArgumentsArgument | Description |
---|
deviceModel | (Required) The device model that is to be updated. |
Content Typemultipart/form-data. Required payload:A file containing the firmware update image. Examplehttps://localhost/iap/devs/bulkFirmwareUpdate/LH-PM100E_S6k |
|
/iap/devs/lonmode/{mode} |
Sends a switch Management Mode request to every LON device with SYSTEM_MANAGEMENT_DEVICE_PROGRAM_ID available for the current user. Updates the LON mode for corresponding root geozones. ArgumentsArgument | Description |
---|
mode | (Required) Specifies either DMM or IMM. |
Examplehttps://localhost/iap/devs/lonmode/IMM |
|
/iap/devs/discover |
Sends request to discover devices for all available edge servers. Examplehttps://localhost/iap/devs/discover |
|
/iap/devs/{scId}/rebuild |
Rebuilds the segment controller with the specified ID. ArgumentsArgument | Description |
---|
scId | (Required) ID of segment controller to be rebuilt.. |
Examplehttps://localhost/iap/devs/1/rebuild |
|
Query Parameters
Optional query parameters can be used with your REST request. Specifying queries is described under Queries and Parameters, Path Parameters, and Query Parameters.