Skip to content

software.php

Software management module: provides methods to get a list of available software filtered by server characteristics or preset, as well as selecting compatible presets and operating systems for specific software.

API Methods

Method Action Description
list get list of software Returns a list of available software components including their IDs, internal status, and associated tags.

software/list

Returns a list of available software components including their IDs, internal status, and associated tags.

HTTP Method: POST

Parameters:

Parameter Required Type Description
action string The action to perform (list)
token string Authentication token for the request

Example Request

curl -s "https://invapi.hostkey.com/software.php" -X POST \
--data "action=list"
Example of a successful response
{
"result": "OK",
"action": "list",
"data": [
{
"id": 101,
"name": "Example Software",
"active": 1,
"tags": [
{
"component_id": 101,
"tag": "os",
"value": [
"Windows",
"Linux"
]
}
]
}
]
}
Failure response
{
"code": -1,
"message": "soft: action required"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×