Device API

Devices itself supports minimal API to interact with devices on the machines itself bound to localhost:4444

Disable/Enable scheduling

This feature is available from Agent Version 0.32.10 ONLY.

You can disable/enable device application updates using local device API. This is useful if you want to schedule device application updates only at certain times when interruptions are desired to be minimal. All other device operations will function normally (retries, ssh, etc).

To check local device API:

# Get device status
GET      localhost:4444/device
# Enable/disable application updates
GET/POST localhost:4444/device/updates-resume
GET/POST localhost:4444/device/updates-suspend

Example to Disable updates, check status and re-enable:

curl localhost:4444/device/updates-suspend
"Updates disabled"

# check the status again
curl localhost:4444/device
{"deviceUpdatesDisabled": true}

# resume updates
curl localhost:4444/device/updates-resume

This will disable all application updates from the platform:

API returns this in Device status fields: deviceUpdatesDisabled. See https://cloud.synpse.net/swagger.html for more details.

Configuration value is persistent ONLY when UI/API starts reporting flag disabled/enabled. Once it is persistent - it will be used if the device restarts.

Last updated