Synpse
🤖 Devices⚡ ApplicationsTry Synpse!
  • Intro to Synpse
  • Start here
    • Quick Start (web user)
    • Quick Start (CLI)
  • Agent
    • Install
      • Raspberry Pi
      • Linux (Docker)
      • MacOS
      • NVIDIA Jetson
      • Headless (Ubuntu)
      • BeagleBoard AI
      • Bulk Provisioning
      • 🪄Beta - Universal Synpse image
      • Containerized agent
      • Configuration
    • Uninstall
  • CLI
    • Install & Usage
  • synpse core
    • Devices
      • Device Provisioning
      • HTTPS Tunnel Access
      • SSH Access
      • Device Labels
      • Environment Variables
      • Proxy Application Ports
      • OS & Architectures
      • Operations
      • Device API
    • Applications
      • Deploy
      • Secrets
      • Environment variables
      • Substitution (dynamic templates)
      • Volumes
      • Networking
      • Scheduling
      • Registry authentication
      • Using GPUs
      • Tips & Tricks
      • Logs and status
      • Application specification (API reference)
    • Account
      • Personal Access Tokens
      • Service (Robot) Accounts
      • Teams (Share Devices)
    • Monitoring (beta)
      • Device Monitoring
      • Application Monitoring
  • Manage
    • Projects
    • Namespaces
    • Quotas
  • Examples
    • 🏠Home Automation
      • Gladys Assistant
      • Home Assistant
    • 🛠️Preparing OS Images
      • Synpse CLI Builder
      • Build a custom Raspberry Pi image
      • Cloud-init (advanced)
    • 💡Dynamic Templates
    • ☁️Public Cloud IoT
      • AWS IoT Core
      • Azure IoT Hub
      • GCP IoT Core
    • 🚀Device management
      • VNC to remove devices
      • Ansible
  • On-prem Deployment
    • 🐳Docker Compose
    • 🌤️kubernetes
  • Resources
    • API Documentation
    • Deployment patterns
    • Security & Tech
Powered by GitBook
On this page

Was this helpful?

  1. synpse core
  2. Devices

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:

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.

PreviousOperationsNextApplications

Last updated 7 months ago

Was this helpful?

API returns this in Device status fields: deviceUpdatesDisabled. See for more details.

https://cloud.synpse.net/swagger.html
UI showing disabled updates