ScanopyScanopy
Daemons

Generate daemon upgrade commands

The steps to replace a daemon's binary and restart it, per OS, plus the docker method. Like the install command, a pure builder over the daemon record.

GET
/api/v1/daemons/{id}/upgrade-command

Authorization

Authorization<token>

User API key (Bearer scp_u_...). Create in Platform > API Keys.

In: header

Path Parameters

id*string

daemon ID

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/daemons/497f6eca-6276-4993-bfeb-53cbbbba6f08/upgrade-command"
{
  "meta": {
    "api_version": 1,
    "server_version": "0.18.1"
  },
  "success": true,
  "data": {
    "docker": {
      "pinned_image": "string",
      "pull": "string",
      "config_copy": "string"
    },
    "freebsd": [
      {
        "command": "string",
        "type": "Download"
      }
    ],
    "legacy_service_name": true,
    "linux": [
      {
        "command": "string",
        "type": "Download"
      }
    ],
    "macos": [
      {
        "command": "string",
        "type": "Download"
      }
    ],
    "windows": [
      {
        "command": "string",
        "type": "Download"
      }
    ]
  },
  "error": "string"
}
{
  "meta": {
    "api_version": 1,
    "server_version": "0.18.1"
  },
  "success": true,
  "code": "string",
  "error": "string",
  "params": {
    "property1": null,
    "property2": null
  }
}