Preference

POST /api/v1/preference/(string: key)
Request JSON Object:
 
  • value (string) – set the value of key
Response JSON Object:
 
  • id (int) – primary key ID

Example request

$ curl -XPOST -sq -b cookies.txt -d '{"value":"I am sphinx"}' \
    http://${QIP}:${QPORT}/container-station/api/v1/preference/doc_test

Example response

{
    "id": 51
}
GET /api/v1/preference/
Response JSON Object:
 
  • key-name (string) – value

Example request

$ curl -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/

Example response

{
    "cert_enddate": "2024-07-26",
    "cert_md5": "44bfbeb4b81770a474125f2fd0cbe4a4",
    "cert_outdated_notify": "False",
    "cert_startdate": "2021-08-11",
    "ch_data_path": "/share/Container/container-station-data/",
    "ch_new_network": "10.0.3.1/24",
    "ch_new_network_lxdbr0": "10.0.7.1/24",
    "ch_status": "success",
    "ct:image:ai_en-US": "[{\"qcsVersion\": \"2.0\", \"displayName\": \"CAFFE Demo - GPU\", \"name\": \"qnapnas/caffedemo\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"0.1beta-gpu\", \"location\": \"https://hub.docker.com/r/qnapnas/caffedemo/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_default.png\", \"arch\": \"amd64\", \"description\": \"This is a photo recognition demo version generated using CAFFE deep learning framework.\"}, {\"qcsVersion\": \"2.0\", \"displayName\": \"CAFFE - GPU\", \"name\": \"bvlc/caffe\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"gpu\", \"location\": \"https://hub.docker.com/r/bvlc/caffe/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_default.png\", \"arch\": \"amd64\", \"description\": \"CAFFE (Convolutional Architecture for Fast Feature Embedding) is a deep learning framework. This is official CAFFE image.\"}, {\"qcsVersion\": \"2.0\", \"displayName\": \"CNTK - GPU\", \"name\": \"microsoft/cntk\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"2.6-gpu-python3.5-cuda9.0-cudnn7.0\", \"location\": \"https://hub.docker.com/r/microsoft/cntk/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_default.png\", \"arch\": \"amd64\", \"description\": \"Microsoft Cognitive Toolkit (CNTK) is an open source deep-learning toolkit.\"}, {\"qcsVersion\": \"2.0\", \"displayName\": \"MXNet - GPU\", \"name\": \"mxnet/python\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"1.3.1_gpu_cu92_mkl_py3\", \"location\": \"https://hub.docker.com/r/mxnet/python/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_mxnet.png\", \"arch\": \"amd64\", \"description\": \"MXNet is a deep learning framework used to train and deploy deep neural networks. This is MXNet with the Python package.\"}, {\"qcsVersion\": \"2.0\", \"displayName\": \"TensorFlow - GPU\", \"name\": \"tensorflow/tensorflow\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"1.13.1-gpu-py3\", \"location\": \"https://hub.docker.com/r/tensorflow/tensorflow/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_tensorflow.png\", \"arch\": \"amd64\", \"description\": \"TensorFlow is an open-source software library for Machine Intelligence. This is official docker image for deep learning framework TensorFlow.\"}, {\"qcsVersion\": \"2.0\", \"displayName\": \"Pytorch - GPU\", \"name\": \"pytorch/pytorch\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"1.0.1-cuda10.0-cudnn7-devel\", \"location\": \"https://hub.docker.com/r/pytorch/pytorch\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_default.png\", \"arch\": \"amd64\", \"description\": \"PyTorch is a deep learning framework that puts Python first. It provides Tensors and Dynamic neural networks in Python with strong GPU acceleration.\"}, {\"qcsVersion\": \"2.0\", \"displayName\": \"Chainer - GPU\", \"name\": \"chainer/chainer\", \"repository\": \"dockerhub\", \"type\": \"ai\", \"version\": \"v6.0.0b1\", \"location\": \"https://hub.docker.com/r/chainer/chainer\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ai_default.png\", \"arch\": \"amd64\", \"description\": \"Chainer is a Python-based deep learning framework aiming at flexibility. This is official Chainer image.\"}]",
    "ct:image:iot_en-US": "[{\"qcsVersion\": \"1.5\", \"displayName\": \"Node-RED\", \"name\": \"nodered/node-red\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"latest\", \"location\": \"https://hub.docker.com/r/nodered/node-red/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_node_red.png\", \"arch\": \"amd64\", \"description\": \"Node-RED visual tool for wiring the Internet of Things\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Ponte\", \"name\": \"qnapnas/qiot-ponte_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-ponte_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"amd64\", \"description\": \"Ponte is an Internet of Things / Machine to Machine platform that connect Things to Web developers\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"RabbitMQ\", \"name\": \"qnapnas/qiot-rabbitmq_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"3.6.6-management\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-rabbitmq_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_rabbit_mq.png\", \"arch\": \"amd64\", \"description\": \"RabbitMQ is a highly reliable enterprise messaging system based on the emerging AMQP standard\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"MQTT\", \"name\": \"qnapnas/qiot-mosquitto_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-mosquitto_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_mqtt.png\", \"arch\": \"amd64\", \"description\": \"MQTT Mosquitto 1.5.8 build on ubuntu 14.4\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Dashing\", \"name\": \"qnapnas/qiot-dashing_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-dashing_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"amd64\", \"description\": \"Run Dashing in a Docker container\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Redis\", \"name\": \"qnapnas/qiot-redis_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"3.0.7\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-redis_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_redis.png\", \"arch\": \"amd64\", \"description\": \"Redis is an open source key-value store that functions as a data structure server\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Redis Commander\", \"name\": \"qnapnas/qiot-redis-commander_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-redis-commander_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"amd64\", \"description\": \"Redis management tool written in node.js\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"MongoDB\", \"name\": \"qnapnas/qiot-mongodb_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"3.2\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-mongodb_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_mongo.png\", \"arch\": \"amd64\", \"description\": \"MongoDB document databases provide high availability and easy scalability\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"mqtt-spy\", \"name\": \"qnapnas/qiot-mqtt-spy_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-mqtt-spy_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"amd64\", \"description\": \"mqtt-spy is an open source utility intended to help you with monitoring activity on MQTT topics\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"freeboard\", \"name\": \"qnapnas/qiot-freeboard_amd64\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-freeboard_amd64/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_freeboard.png\", \"arch\": \"amd64\", \"description\": \"A damn-sexy, open source real-time dashboard builder for IOT and other web mashups\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Node-RED\", \"name\": \"qnapnas/qiot-node-red_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-node-red_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_node_red.png\", \"arch\": \"armhf\", \"description\": \"Node-RED visual tool for wiring the Internet of Things\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Ponte\", \"name\": \"qnapnas/qiot-ponte_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-ponte_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"armhf\", \"description\": \"Ponte is an Internet of Things / Machine to Machine platform that connect Things to Web developers\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"RabbitMQ\", \"name\": \"qnapnas/qiot-rabbitmq_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-rabbitmq_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_rabbit_mq.png\", \"arch\": \"armhf\", \"description\": \"RabbitMQ is a highly reliable enterprise messaging system based on the emerging AMQP standard\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"MQTT\", \"name\": \"qnapnas/qiot-mosquitto_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-mosquitto_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_mqtt.png\", \"arch\": \"armhf\", \"description\": \"MQTT Mosquitto 1.5.8 build on ubuntu 14.4\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Dashing\", \"name\": \"qnapnas/qiot-dashing_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.4\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-dashing_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"armhf\", \"description\": \"Run Dashing in a Docker container\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Redis\", \"name\": \"qnapnas/qiot-redis_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"3.0.7\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-redis_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_redis.png\", \"arch\": \"armhf\", \"description\": \"Redis is an open source key-value store that functions as a data structure server\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"Redis Commander\", \"name\": \"qnapnas/qiot-redis-commander_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-redis-commander_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_default.png\", \"arch\": \"armhf\", \"description\": \"Redis management tool written in node.js\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"MongoDB\", \"name\": \"qnapnas/qiot-mongodb_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"2.4.10\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-mongodb_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_mongo.png\", \"arch\": \"armhf\", \"description\": \"MongoDB document databases provide high availability and easy scalability\"}, {\"qcsVersion\": \"1.5\", \"displayName\": \"freeboard\", \"name\": \"qnapnas/qiot-freeboard_armhf\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.1\", \"location\": \"https://hub.docker.com/r/qnapnas/qiot-freeboard_armhf/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_freeboard.png\", \"arch\": \"armhf\", \"description\": \"A damn-sexy, open source real-time dashboard builder for IOT and other web mashups\"}, {\"qcsVersion\": \"1.8\", \"displayName\": \"openHAB\", \"name\": \"openhab/openhab\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"2.2.0-amd64-debian\", \"location\": \"https://hub.docker.com/r/openhab/openhab/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_openhab.png\", \"arch\": \"amd64\", \"description\": \"A vendor and technology agnostic open source automation software for home.\"}, {\"qcsVersion\": \"1.8\", \"displayName\": \"openHAB\", \"name\": \"openhab/openhab\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"2.2.0-armhf-alpine\", \"location\": \"https://hub.docker.com/r/openhab/openhab/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_openhab.png\", \"arch\": \"armhf\", \"description\": \"A vendor and technology agnostic open source automation software for home.\"}, {\"qcsVersion\": \"1.8\", \"displayName\": \"iFrogLab/LoRaGateway\", \"name\": \"ifroglab/loragateway\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"latest\", \"location\": \"https://hub.docker.com/r/ifroglab/loragateway/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_ifroglab.png\", \"arch\": \"amd64\", \"description\": \"LoRaGateWay, PHP, MySQL, myphpadmin, Dashboard\"}, {\"qcsVersion\": \"1.8\", \"displayName\": \"Home Assistant\", \"name\": \"homeassistant/home-assistant\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"0.65.5\", \"location\": \"https://hub.docker.com/r/homeassistant/home-assistant/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_home_assistant.png\", \"arch\": \"amd64\", \"description\": \"Open-source home automation platform running on Python 3.\"}, {\"qcsVersion\": \"1.8\", \"displayName\": \"Wio Link\", \"name\": \"killingjacky/wio_link\", \"repository\": \"dockerhub\", \"type\": \"iot\", \"version\": \"latest\", \"location\": \"https://hub.docker.com/r/killingjacky/wio_link/\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/iot_wiolink.png\", \"arch\": \"amd64\", \"description\": \"Wio Link is designed to simplify your IoT development. It is an ESP8266 based Wi-Fi development board for you to create IoT applications with open-source, plug and play electronics, mobile APPs and RESTful APIs.\"}]",
    "ct:image:list_en-US": "[{\"displayName\": \"GitLab\", \"name\": \"gitlab\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"11.4.0\", \"location\": \"https://hub.docker.com/r/sameersbn/gitlab\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_gitlab.png\", \"arch\": \"amd64\", \"description\": \"GitLab is a web-based Git repository manager with code reviews, issue tracking, activity feeds and wikis.\"}, {\"displayName\": \"Redmine\", \"name\": \"redmine\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"3.4.6\", \"location\": \"https://hub.docker.com/r/sameersbn/redmine\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_redmine.png\", \"arch\": \"amd64\", \"description\": \"Redmine is a free and open source web-based project management system.\"}, {\"displayName\": \"Registry\", \"name\": \"registry\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"2.6.2\", \"location\": \"https://hub.docker.com/_/registry\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_registry.png\", \"arch\": \"amd64\", \"description\": \"The Registry is a tool for building private registries. It is highly scalable server side application for storing and distributing Docker images.\"}, {\"displayName\": \"Joomla!\", \"name\": \"joomla\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"3.8.13\", \"location\": \"https://hub.docker.com/r/seterrychen/joomla-without-database\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_joomla.png\", \"arch\": \"amd64\", \"description\": \"Joomla! is a free, powerful open source content management system. It is designed for quickly creating online communities, blogs and eCommerce applications.\"}, {\"displayName\": \"Odoo\", \"name\": \"odoo\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"12\", \"location\": \"https://hub.docker.com/_/odoo\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_odoo.png\", \"arch\": \"amd64\", \"description\": \"Odoo (formerly OpenERP): open source ERP and Apps to grow your business.\"}, {\"displayName\": \"WordPress\", \"name\": \"wordpress\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"4.9.8\", \"location\": \"https://hub.docker.com/_/wordpress\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_wordpress.png\", \"arch\": \"amd64\", \"description\": \"WordPress is a rich content management system for creating blogs and websites with plugins, widgets, and themes.\"}, {\"kernelVersion\": \"3.19\", \"displayName\": \"Ubuntu\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"ubuntu-xenial\", \"version\": \"16.04\", \"location\": \"http://download.qnap.com/QPKG/container/ubuntu-xenial_16.04_20171130_amd64.tar.gz\", \"arch\": \"amd64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\"}, {\"displayName\": \"Ubuntu\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"ubuntu-bionic\", \"version\": \"18.04\", \"location\": \"http://download.qnap.com/QPKG/container/ubuntu-bionic_18.04_20191009_amd64.tar.gz\", \"arch\": \"amd64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\"}, {\"displayName\": \"Debian\", \"description\": \"Debian is a Linux distribution that is composed entirely of free and open-source software (most of which is under the GNU General Public License) and packaged by a group called the Debian project.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"debian-buster\", \"version\": \"10\", \"location\": \"http://download.qnap.com/QPKG/container/debian-buster_10_20191009_amd64.tar.gz\", \"arch\": \"amd64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/debian_icon.png\"}, {\"kernelVersion\": \"4.2.8\", \"displayName\": \"Fedora\", \"description\": \"Fedora (formerly Fedora Core) is an operating system based on the Linux kernel, developed by the community-supported Fedora Project and owned by Red Hat.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"fedora-twentyeight\", \"version\": \"28\", \"location\": \"http://download.qnap.com/QPKG/container/fedora-twentyeight_28_amd64.tar.gz\", \"arch\": \"amd64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/fedora_icon.png\"}, {\"displayName\": \"Odoo\", \"name\": \"odooarm\", \"repository\": \"dockerhub\", \"type\": \"app\", \"version\": \"8\", \"location\": \"https://hub.docker.com/r/dmisdani/arm-odoo\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/app_odoo.png\", \"arch\": \"armhf\", \"description\": \"Odoo (formerly OpenERP): open source ERP and Apps to grow your business.\"}, {\"kernelVersion\": \"4.2.8\", \"displayName\": \"Ubuntu\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"ubuntu-xenial-armhf\", \"version\": \"16.04\", \"location\": \"http://download.qnap.com/QPKG/container/ubuntu-xenial_16.04_20180212_armhf.tar.gz\", \"arch\": \"armhf\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\"}, {\"displayName\": \"Ubuntu\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"ubuntu-bionic-armhf\", \"version\": \"18.04\", \"location\": \"http://download.qnap.com/QPKG/container/ubuntu-bionic_18.04_20191009_armhf.tar.gz\", \"arch\": \"armhf\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\"}, {\"displayName\": \"Debian\", \"description\": \"The Debian Project is an association of individuals who have made common cause to create a free operating system.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"debian-buster-armhf\", \"version\": \"10\", \"location\": \"http://download.qnap.com/QPKG/container/debian-buster_10_20191009_armhf.tar.gz\", \"arch\": \"armhf\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/debian_icon.png\"}, {\"displayName\": \"Ubuntu desktop with noVNC\", \"name\": \"dorowu/ubuntu-desktop-lxde-vnc\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"bionic\", \"location\": \"https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"amd64\", \"description\": \"Remote desktop Sharing in Ubuntu 18.04.\"}, {\"displayName\": \"Deluge\", \"name\": \"linuxserver/deluge\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"143\", \"location\": \"https://hub.docker.com/r/linuxserver/deluge\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/deluge_icon.png\", \"arch\": \"amd64\", \"description\": \"Deluge is a lightweight, free, cross-platform BT client.\"}, {\"displayName\": \"Minecraft\", \"name\": \"terrychu/minecraft-server\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"latest\", \"location\": \"https://hub.docker.com/r/terrychu/minecraft-server\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/minecraft_icon.png\", \"arch\": \"amd64\", \"description\": \"The Minecraft multiplayer server allows multiple players to play Minecraft together.\"}, {\"displayName\": \"LibreOffice with noVNC\", \"name\": \"colinhuang/ubuntu-libreoffice\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.0\", \"location\": \"https://hub.docker.com/r/colinhuang/ubuntu-libreoffice\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/libreoffice_icon.png\", \"arch\": \"amd64\", \"description\": \"Ubuntu Desktop is pre-loaded with LibreOffice and Firefox. LibreOffice is a powerful office suite that includes: Writer (word processor), Calc (spreadsheet application), Impress (presentation engine), Draw (drawing and flowcharting application), Base (database and database frontend), and Math (editing mathematics).\"}, {\"displayName\": \"Jenkins\", \"name\": \"jenkins\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"2.60.3\", \"location\": \"https://hub.docker.com/_/jenkins\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/jenkins_icon.png\", \"arch\": \"amd64\", \"description\": \"The official build of Jenkins.\"}, {\"displayName\": \"Ubuntu\", \"name\": \"arm32v7/ubuntu\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"xenial\", \"location\": \"https://hub.docker.com/r/arm32v7/ubuntu\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"armhf\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\"}, {\"displayName\": \"Ubuntu\", \"name\": \"arm32v7/ubuntu\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"bionic\", \"location\": \"https://hub.docker.com/r/arm32v7/ubuntu\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"armhf\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\"}, {\"displayName\": \"Ruby\", \"name\": \"arm32v7/ruby\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"2.6\", \"location\": \"https://hub.docker.com/r/arm32v7/ruby\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"Ruby is a dynamic, reflective, object-oriented, general-purpose, open-source programming language.\"}, {\"displayName\": \"Busybox\", \"name\": \"arm32v7/busybox\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.29.3\", \"location\": \"https://hub.docker.com/r/arm32v7/busybox\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"Busybox base image.\"}, {\"displayName\": \"Python\", \"name\": \"arm32v7/python\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"3.7\", \"location\": \"https://hub.docker.com/r/arm32v7/python\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"Python is an interpreted, interactive, object-oriented, open-source programming language.\"}, {\"displayName\": \"Perl\", \"name\": \"arm32v7/perl\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"5.28.0\", \"location\": \"https://hub.docker.com/r/arm32v7/perl\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"Perl is a high-level, general-purpose, interpreted, dynamic programming language.\"}, {\"displayName\": \"PHP\", \"name\": \"arm32v7/php\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"7.3\", \"location\": \"https://hub.docker.com/r/arm32v7/php\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"While designed for web development, the PHP scripting language also provides general-purpose use.\"}, {\"displayName\": \"Node.js\", \"name\": \"arm32v7/node\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"11.6.0\", \"location\": \"https://hub.docker.com/r/arm32v7/node\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\"}, {\"displayName\": \"Go\", \"name\": \"arm32v7/golang\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.11.1\", \"location\": \"https://hub.docker.com/r/arm32v7/golang\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.\"}, {\"displayName\": \"Irssi\", \"name\": \"arm32v7/irssi\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.1.1\", \"location\": \"https://hub.docker.com/r/arm32v7/irssi\", \"icon\": \"\", \"arch\": \"armhf\", \"description\": \"The IRC client of the future\"}, {\"displayName\": \"Ubuntu with noVNC\", \"name\": \"colinhuang/ubuntu-novnc-armhf\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.0\", \"location\": \"https://hub.docker.com/r/colinhuang/ubuntu-novnc-armhf\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"armhf\", \"description\": \"Remote desktop Sharing in Ubuntu 14.04.\"}, {\"displayName\": \"APT mirroring server\", \"name\": \"seterrychen/apt-mirror-http-server\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"0.1.2\", \"location\": \"https://hub.docker.com/r/seterrychen/apt-mirror-http-server\", \"icon\": \"\", \"arch\": \"amd64\", \"description\": \"A small and efficient tool that lets you mirror a part of or the whole Debian GNU/Linux distribution or any other apt sources.\"}, {\"displayName\": \"Ubuntu\", \"name\": \"ubuntu\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"16.04\", \"location\": \"https://hub.docker.com/_/ubuntu\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"amd64\", \"description\": \"The official build of Ubuntu.\"}, {\"displayName\": \"Ubuntu\", \"name\": \"ubuntu\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"18.04\", \"location\": \"https://hub.docker.com/_/ubuntu\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"amd64\", \"description\": \"The official build of Ubuntu.\"}, {\"displayName\": \"CentOS\", \"name\": \"centos\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"7\", \"location\": \"https://hub.docker.com/_/centos\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/centos_icon.png\", \"arch\": \"amd64\", \"description\": \"The official build of CentOS.\"}, {\"displayName\": \"Redis\", \"name\": \"redis\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"5.0\", \"location\": \"https://hub.docker.com/_/redis\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/redis_icon.png\", \"arch\": \"amd64\", \"description\": \"Redis is an open source key-value store that functions as a data structure server.\"}, {\"displayName\": \"MySQL\", \"name\": \"edhongcy/mysql\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"8.0.12\", \"location\": \"https://hub.docker.com/r/edhongcy/mysql\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/mysql_icon.png\", \"arch\": \"amd64\", \"description\": \"MySQL Server image - listens in port 3306. For the root account password, either set MYSQL_ROOT_PASSWORD environment variable, or check the logs for a randomly generated one.\"}, {\"displayName\": \"Node.js\", \"name\": \"node\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"11.6.0\", \"location\": \"https://hub.docker.com/_/node\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/nodejs_icon.png\", \"arch\": \"amd64\", \"description\": \"Node.js is a JavaScript-based platform for server-side and networking applications.\"}, {\"displayName\": \"Nginx\", \"name\": \"nginx\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.14\", \"location\": \"https://hub.docker.com/_/nginx\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/nginx_icon.png\", \"arch\": \"amd64\", \"description\": \"The official build of Nginx.\"}, {\"displayName\": \"MongoDB\", \"name\": \"mongo\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"4.1.4\", \"location\": \"https://hub.docker.com/_/mongo\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/mongo_icon.png\", \"arch\": \"amd64\", \"description\": \"MongoDB document databases provide high availability and easy scalability.\"}, {\"displayName\": \"PostgreSQL\", \"name\": \"postgres\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"11.0\", \"location\": \"https://hub.docker.com/_/postgres\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/postgresql_icon.png\", \"arch\": \"amd64\", \"description\": \"Official PostgreSQL Docker image. The PostgreSQL object-relational database system provides reliability and data integrity.\"}, {\"displayName\": \"Ubuntu\", \"name\": \"arm64v8/ubuntu\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"xenial\", \"location\": \"https://hub.docker.com/r/arm64v8/ubuntu\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"arm64\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\"}, {\"displayName\": \"Ubuntu\", \"name\": \"arm64v8/ubuntu\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"bionic\", \"location\": \"https://hub.docker.com/r/arm64v8/ubuntu\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"arm64\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\"}, {\"displayName\": \"Ruby\", \"name\": \"arm64v8/ruby\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"2.6\", \"location\": \"https://hub.docker.com/r/arm64v8/ruby\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"Ruby is a dynamic, reflective, object-oriented, general-purpose, open-source programming language.\"}, {\"displayName\": \"Busybox\", \"name\": \"arm64v8/busybox\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.29.3\", \"location\": \"https://hub.docker.com/r/arm64v8/busybox\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"Busybox base image.\"}, {\"displayName\": \"Python\", \"name\": \"arm64v8/python\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"3.7\", \"location\": \"https://hub.docker.com/r/arm64v8/python\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"Python is an interpreted, interactive, object-oriented, open-source programming language.\"}, {\"displayName\": \"Perl\", \"name\": \"arm64v8/perl\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"5.28\", \"location\": \"https://hub.docker.com/r/arm64v8/perl\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"Perl is a high-level, general-purpose, interpreted, dynamic programming language.\"}, {\"displayName\": \"PHP\", \"name\": \"arm64v8/php\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"7.3\", \"location\": \"https://hub.docker.com/r/arm64v8/php\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"While designed for web development, the PHP scripting language also provides general-purpose use.\"}, {\"displayName\": \"Node.js\", \"name\": \"arm64v8/node\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"11.6.0\", \"location\": \"https://hub.docker.com/r/arm64v8/node\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\"}, {\"displayName\": \"Go\", \"name\": \"arm64v8/golang\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.11.1\", \"location\": \"https://hub.docker.com/r/arm64v8/golang\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.\"}, {\"displayName\": \"Ubuntu with noVNC\", \"name\": \"terrychu/docker-ubuntu-novnc\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"arm64v8-1.0\", \"location\": \"https://hub.docker.com/r/terrychu/docker-ubuntu-novnc\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\", \"arch\": \"arm64\", \"description\": \"Remote desktop Sharing in Ubuntu 14.04.\"}, {\"displayName\": \"Ubuntu\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"ubuntu-xenial-arm64\", \"version\": \"16.04\", \"location\": \"http://download.qnap.com/QPKG/container/ubuntu-xenial_16.04_20180808_arm64.tar.gz\", \"arch\": \"arm64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\"}, {\"displayName\": \"Ubuntu\", \"description\": \"Fast, free and incredibly easy to use, the Ubuntu operating system powers millions of desktop PCs, laptops and servers around the world.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"ubuntu-bionic-arm64\", \"version\": \"18.04\", \"location\": \"http://download.qnap.com/QPKG/container/ubuntu-bionic_18.04_20191009_arm64.tar.gz\", \"arch\": \"arm64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/ubuntu_icon.png\"}, {\"displayName\": \"Debian\", \"description\": \"The Debian Project is an association of individuals who have made common cause to create a free operating system.\", \"repository\": \"qnap\", \"type\": \"lxc\", \"inspect\": \"{}\", \"name\": \"debian-buster-arm64\", \"version\": \"10\", \"location\": \"http://download.qnap.com/QPKG/container/debian-buster_10_20191009_arm64.tar.gz\", \"arch\": \"arm64\", \"icon\": \"https://raw.githubusercontent.com/qnap-dev/container-apps/2.0/images/debian_icon.png\"}, {\"displayName\": \"Irssi\", \"name\": \"arm64v8/irssi\", \"repository\": \"dockerhub\", \"type\": \"docker\", \"version\": \"1.1.1\", \"location\": \"https://hub.docker.com/r/arm64v8/irssi\", \"icon\": \"\", \"arch\": \"arm64\", \"description\": \"The IRC client of the future\"}]",
    "ct:image:render_en-US": "[]",
    "doc_test": "I am sphinx",
    "log_rotate": "30",
    "my_registry": "1",
    "qcs_1.5": "ok",
    "repo_branch": "2.0",
    "repo_from": "default",
    "repo_project": "container-apps",
    "repo_user": "qnap-dev",
    "set_lxd": "true",
    "set_system_docker": "false",
    "setfattr": "done"
}
GET /api/v1/preference/(string: key)
Response JSON Object:
 
  • key-name (string) – value

Example request

$ curl -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/doc_test

Example response

{
    "doc_test": "I am sphinx"
}
PUT /api/v1/preference/(string: key)
Request JSON Object:
 
  • value (string) – set the value of key
Response JSON Object:
 
  • result (boolean) – true when success

Example request

$ curl -XPUT -sq -b cookies.txt -d '{"value":"I am container station"}' \
    http://${QIP}:${QPORT}/container-station/api/v1/preference/doc_test
$ curl -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/doc_test

Example response

{
    "result": true
}
{
    "doc_test": "I am container station"
}
DELETE /api/v1/preference/(string: key)

Example request

$ curl -XDELETE -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/doc_test

Example response

{}

Workspace

GET /api/v1/wizard/workspace
Response JSON Object:
 
  • data_path (string) – Current image and container workspace path

Example request

$ curl -XGET -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/wizard/workspace

Example response

{
    "data_path": "/share/Container/container-station-data/"
}
GET /api/v1/wizard/workspace/status
Response JSON Object:
 
  • status (string) – Workspace setting status
  • data_path (string) – Current image and container workspace path

Example request

$ curl -XGET -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/wizard/workspace/status

Example response

{
    "access": true,
    "data_path": "/share/Container/container-station-data/",
    "is_support_zfs": false,
    "percentage": "",
    "speed": "",
    "status": "success",
    "total_size": "",
    "transfer_size": ""
}

Image list repository

GET /api/v1/preference/repo
Response JSON Object:
 
  • user (string) – Get GitHub username
  • project (string) – Get GitHub project name
  • branch (string) – Get GitHub project branch name

Example request

$ curl -XGET -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/repo

Example response

{
    "branch": "2.0",
    "default": "qnap-dev/container-apps:2.0",
    "from": "default",
    "project": "container-apps",
    "user": "qnap-dev"
}
PUT /api/v1/preference/repo
Request JSON Object:
 
  • user (string) – Set GitHub username
  • project (string) – Set GitHub project name
  • branch (string) – Set GitHub project branch name

Example request

$ curl -XPUT -sq -b cookies.txt -d \
    '{"user":"qnap-dev","project":"container-apps","branch":"master"}' \
    http://${QIP}:${QPORT}/container-station/api/v1/preference/repo

Example response

{
    "error": "'from'",
    "result": false
}

Network settings

GET /api/v1/preference/network
Response JSON Object:
 
  • LXC_DHCP_MAX (string) – DHCP Max
  • LXC_NETMASK (string) – Netmask
  • LXC_ADDR (string) – IP address
  • LXC_DHCP_RANGE (string) – DHCP range
  • LXC_NETWORK (string) – Network
  • LXC_BRIDGE (string) – Bridge name
  • LXC_DNS_PRIMARY (string) – Primary DNS server
  • LXC_DNS_SECONDARY (string) – Secondary DNS server

Example request

$ curl -XGET -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/network

Example response

{
    "LXC_ADDR": "10.0.3.1",
    "LXC_BRIDGE": "lxcbr0",
    "LXC_DHCP_MAX": "253",
    "LXC_DHCP_RANGE": "10.0.3.2,10.0.3.240",
    "LXC_DNS_PRIMARY": "10.0.3.1",
    "LXC_DNS_SECONDARY": "0.0.0.0",
    "LXC_DNS_SERVERS": "10.0.3.1,0.0.0.0",
    "LXC_NETMASK": "255.255.255.0",
    "LXC_NETWORK": "10.0.3.0/24"
}
PUT /api/v1/preference/network

Example request

$ curl -XPUT -sq -b cookies.txt -d '{"LXC_NETWORK":"10.0.4.0/24"}' \
    http://${QIP}:${QPORT}/container-station/api/v1/preference/network
GET /api/v1/preference/network_docker
Response JSON Object:
 
  • DOCKER_NET_DHCP_MAX (string) – DHCP Max
  • DOCKER_NET_NETMASK (string) – Netmask
  • DOCKER_NET_ADDR (string) – IP address
  • DOCKER_NET_DHCP_RANGE (string) – DHCP range
  • DOCKER_NET_NETWORK (string) – Network
  • DOCKER_NET_BRIDGE (string) – Bridge name
  • DOCKER_NET_DNS_PRIMARY (string) – Primary DNS server
  • DOCKER_NET_DNS_SECONDARY (string) – Secondary DNS server

Example request

$ curl -XGET -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/network_docker

Example response

{
    "DOCKER_NET_ADDR": "10.0.5.1",
    "DOCKER_NET_BRIDGE": "docker0",
    "DOCKER_NET_DHCP_MAX": "253",
    "DOCKER_NET_DHCP_RANGE": "10.0.5.239,10.0.5.254",
    "DOCKER_NET_DNS_PRIMARY": "10.0.5.1",
    "DOCKER_NET_NETMASK": "255.255.255.0",
    "DOCKER_NET_NETWORK": "10.0.5.0/24"
}
PUT /api/v1/preference/network_docker

Example request

$ curl -XPUT -sq -b cookies.txt -d '{"DOCKER_NET_NETWORK":"10.0.4.0/24"}' \
    http://${QIP}:${QPORT}/container-station/api/v1/preference/network_docker
GET /api/v1/preference/network_lxdbr0
Response JSON Object:
 
  • LXD_DHCP_MAX (string) – DHCP Max
  • LXD_NETMASK (string) – Netmask
  • LXD_ADDR (string) – IP address
  • LXD_DHCP_RANGE (string) – DHCP range
  • LXD_NETWORK (string) – Network
  • LXD_BRIDGE (string) – Bridge name
  • LXD_DNS_PRIMARY (string) – Primary DNS server
  • LXD_DNS_SECONDARY (string) – Secondary DNS server

Example request

$ curl -XGET -sq -b cookies.txt http://${QIP}:${QPORT}/container-station/api/v1/preference/network_lxdbr0

Example response

{
    "LXD_ADDR": "10.0.7.1",
    "LXD_BRIDGE": "lxdbr0",
    "LXD_DHCP_MAX": "253",
    "LXD_DHCP_RANGE": "10.0.7.2,10.0.7.240",
    "LXD_DNS_PRIMARY": "10.0.7.1",
    "LXD_DNS_SECONDARY": "0.0.0.0",
    "LXD_DNS_SERVERS": "10.0.7.1,0.0.0.0",
    "LXD_NETMASK": "255.255.255.0",
    "LXD_NETWORK": "10.0.7.0/24"
}
PUT /api/v1/preference/network_lxdbr0

Example request

$ curl -XPUT -sq -b cookies.txt -d '{"LXD_NETWORK":"10.0.4.0/24"}' \
    http://${QIP}:${QPORT}/container-station/api/v1/preference/network_lxdbr0