Software management using Web API service
This section allows you to control the collection of software that can be installed through the API web service.
This section allows you to control the collection of software that can be installed through the API web service.
Refresh the index
Send order to download the repository collection.
GET http://[server]:[port]/system/softwares/refresh
return a json
{ "Status": true, "Info": "Get Softwares index success" }
Get the softwares collection list
Get a json of all available softwares from the repository
GET http://[server]:[port]/system/softwares/indexes
Return a json :
{ "Softwares": [
{
"ProductKey": "APP_FAIL2BAN",
"Collection": [
{
"KeyVer": 1103,
"Version": "0.11.0.3",
"Url": "http://mirror.articatech.com/download/Debian10-Fail2ban/0.11.0.3.tar.gz",
"SizeBytes": 655360,
"MD5": "74fd2c8bf63479de22b541ac5ec63302"
}
]
},
{
"ProductKey": "APP_ZABBIX_AGENT",
"Collection": [
{
"KeyVer": 4044,
"Version": "4.0.44",
"Url": "http://mirror.articatech.com/download/Debian10-zabbix/4.0.44.tar.gz",
"SizeBytes": 2598009,
"MD5": "87384e6aa83b41126417f7086397de80"
},
Install or upgrade a software
From the Software collection list, use the ProductKey and the Keyver
GET http://[server]:[port]/system/softwares/install/[ProductKey]/Keyver
Example: Install the version 2.14.1 of the DNS Statistics tool
GET http://[server]:[port]/system/softwares/install/APP_DSC/2141
return a json
{ "Status": true,
"Info": "Install Product APP_DSC keyver 2141",
"Traces": "Starting {APP_DSC} (2141)\nVERSION: 2.14.1\nDISTRI: 9.."
}