Перейти к содержанию

JSON RPC

Module description

Updater - a subsystem that manages system plugin updates

Operations

Delete Updater params

Context model: Params

Request data

{
    "context": {
        "op": "param_del"
    }
}

Add Updater params

Context model: Params

Request data

{
    "context": {
        "op": "param_add"
    },
    "data": {
        "enable": "<enable>",
        "mods": "<mods>",
        "profile": "<profile>",
        "cron": "<cron>"
    }
}

Description

enable [ ] - Network type ['yes', 'no']

mods [ * ] - List of plugins/components

profile [ ] - Schema profile ['dev', 'prod']

cron [ ] - CRON schedule

Show Updater params

Context model: Params

Request data

{
    "context": {
        "op": "param_show"
    }
}

Update Updater params

Context model: Params

Request data

{
    "context": {
        "op": "param_update"
    },
    "data": {
        "enable": "<enable>",
        "mods": "<mods>",
        "profile": "<profile>",
        "cron": "<cron>"
    }
}

Description

enable [ ] - Network type ['yes', 'no']

mods [ * ] - List of plugins/components

profile [ ] - Schema profile ['dev', 'prod']

cron [ ] - CRON schedule

Clear update task

Context model: UpdatesQ

Request data

{
    "context": {
        "op": "update_clear"
    },
    "data": {
        "uuid": "<uuid>"
    }
}

Description

uuid [ required ] - Task UUID

Add update task

Context model: UpdatesQ

Request data

{
    "context": {
        "op": "update_add"
    },
    "data": {
        "node": "<node>",
        "mods": "<mods>"
    }
}

Description

node [ ] - Node name

mods [ * ] - List of plugins/components

Show update

Context model: UpdatesQ

Request data

{
    "context": {
        "op": "update_show"
    },
    "data": {
        "uuid": "<uuid>"
    }
}

Description

uuid [ required ] - Task UUID

List all updates

Context model: UpdatesQ

Request data

{
    "context": {
        "op": "update_list"
    }
}

Models

Params

enable [ ] - Network type ['yes', 'no']

mods [ * ] - List of plugins/components

profile [ ] - Schema profile ['dev', 'prod']

cron [ ] - CRON schedule

UpdatesQ

uuid [ required ] - Task UUID

node [ ] - Node name

mods [ * ] - List of plugins/components