Difference between revisions of "API: App manager"
m (Fgsfds переименовал страницу API: менеджер приложений в API: App manager) |
|||
Line 1: | Line 1: | ||
− | + | Administrative functions require API root rights in order to use any login hosted on the server. If you do not have root rights, you can only use your login. | |
− | + | <div data-placeholder="Перевод" dir="ltr">Incoming data marked with an asterisk are required.</div> | |
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" | {| border="1" cellpadding="5" | ||
|- | |- | ||
− | | <p dir="ltr" style="text-align: center;">''' | + | | <p dir="ltr" style="text-align: center;">'''Module'''</p> |
− | | <p dir="ltr" style="text-align: center;">''' | + | | <p dir="ltr" style="text-align: center;">'''Function'''</p> |
− | | <p dir="ltr" style="text-align: center;">''' | + | | <p dir="ltr" style="text-align: center;">'''Incoming data'''</p> |
− | | <p dir="ltr" style="text-align: center;">''' | + | | <p dir="ltr" style="text-align: center;">'''Error variants'''</p> |
|- | |- | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
Line 17: | Line 13: | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | + | List of applications. | |
list_applications | list_applications | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | username (post или get)* — | + | username (post или get)* — Username; |
− | password (post или get)* — | + | password (post или get)* — User password; |
− | packet_manager (post или get)* | + | packet_manager (post или get)* —constant, module name; |
− | list_applications (post или get)* — | + | list_applications (post или get)* — constant, operation name; |
− | language (post или get) — | + | language (post или get) — can take the value: en/ru (by default ru). |
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | error:0, mess:' | + | error:0, mess:'List of applications', detail [array_application]; |
− | error:100, mess:' | + | error:100, mess:'List of applications is empty'; |
− | error:400, mess:' | + | error:400, mess:'Unfortunately, this module is not available for you'. |
|- | |- | ||
Line 44: | Line 40: | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | + | Installing application. | |
install_application | install_application | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | username (post или get)* — | + | username (post или get)* — Username; |
− | password (post или get)* — | + | password (post или get)* — User password; |
− | packet_manager (post или get)* — | + | packet_manager (post или get)* — Constant, module name; |
− | install_application (post или get)* — | + | install_application (post или get)* — constant, operation name; |
− | service (post или get)* — | + | service (post или get)* — selecting a service; |
− | language (post или get) — | + | language (post или get) — can take a value: en/ru (by default ru). |
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | error:0, mess:' | + | error:0, mess:'Command is performed', detail [id_stream]; |
− | error:100, mess:' | + | error:100, mess:'The servise is set incorrectly', detail [array_service]; |
− | error:400, mess:' | + | error:400, mess:'Unfortunately, this module is not available for you'. |
|- | |- | ||
Line 73: | Line 69: | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | + | Deleting application. | |
delete_application | delete_application | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | username (post или get)* — | + | username (post или get)* — Username; |
− | password (post или get)* — | + | password (post или get)* — User password; |
− | packet_manager (post или get)* — | + | packet_manager (post или get)* — кconstant, module name; |
− | delete_application (post или get)* — | + | delete_application (post или get)* — constant, operation name; |
− | service (post или get)* — | + | service (post или get)* — selecting a service; |
− | language (post или get) — | + | language (post или get) — can take a value: en/ru (by default ru). |
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | error:0, mess:' | + | error:0, mess:'Command is performed', detail [id_stream]; |
− | error:100, mess:' | + | error:100, mess:'The serviced is incorrectly set', detail [array_service]; |
− | error:400, mess:' | + | error:400, mess:'Unfortunately, this module is unavailable for you'. |
|- | |- | ||
Line 102: | Line 98: | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | + | Start / Stop / Restart / Adding to auto installer/ deleting from auto installer. | |
operation | operation | ||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | username (post или get)* — | + | username (post или get)* — Username; |
− | password (post или get)* — | + | password (post или get)* — user password; |
− | packet_manager (post или get)* — | + | packet_manager (post или get)* — constant, module name; |
− | operation (post или get)* — | + | operation (post или get)* — constant, operation name; |
− | service (post или get)* — | + | service (post или get)* — selecting a service; |
− | command (post или get)* — | + | command (post или get)* — select a command: |
− | autoload_true — | + | autoload_true — add to auto installer; |
− | autoload_false — | + | autoload_false — remove from auto installer; |
− | start — | + | start — start service; |
− | stop — | + | stop — stop service; |
− | restart — | + | restart — restart service. |
− | language (post или get) — | + | language (post или get) — can take a value: en/ru (by default ru). |
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | error:0, mess:' | + | error:0, mess:'Command is performed', detail [console message]; |
− | error:100, mess:' | + | error:100, mess:'The command is entered incorrectly', detail [list of commands]; |
− | error:101, mess:' | + | error:101, mess:'Error in performing the command'; |
− | error:400, mess:' | + | error:400, mess:'Unfortunately, this module is unavailable for you'. |
|} | |} | ||
− | + | Other useful articles: | |
{| style="width: 1191px;" | {| style="width: 1191px;" |
Revision as of 21:54, 9 April 2021
Administrative functions require API root rights in order to use any login hosted on the server. If you do not have root rights, you can only use your login.
Module |
Function |
Incoming data |
Error variants |
packet_manager |
List of applications. list_applications |
username (post или get)* — Username; password (post или get)* — User password; packet_manager (post или get)* —constant, module name; list_applications (post или get)* — constant, operation name; language (post или get) — can take the value: en/ru (by default ru). |
error:0, mess:'List of applications', detail [array_application]; error:100, mess:'List of applications is empty'; error:400, mess:'Unfortunately, this module is not available for you'. |
packet_manager |
Installing application. install_application |
username (post или get)* — Username; password (post или get)* — User password; packet_manager (post или get)* — Constant, module name; install_application (post или get)* — constant, operation name; service (post или get)* — selecting a service; language (post или get) — can take a value: en/ru (by default ru). |
error:0, mess:'Command is performed', detail [id_stream]; error:100, mess:'The servise is set incorrectly', detail [array_service]; error:400, mess:'Unfortunately, this module is not available for you'. |
packet_manager |
Deleting application. delete_application |
username (post или get)* — Username; password (post или get)* — User password; packet_manager (post или get)* — кconstant, module name; delete_application (post или get)* — constant, operation name; service (post или get)* — selecting a service; language (post или get) — can take a value: en/ru (by default ru). |
error:0, mess:'Command is performed', detail [id_stream]; error:100, mess:'The serviced is incorrectly set', detail [array_service]; error:400, mess:'Unfortunately, this module is unavailable for you'. |
packet_manager |
Start / Stop / Restart / Adding to auto installer/ deleting from auto installer. operation |
username (post или get)* — Username; password (post или get)* — user password; packet_manager (post или get)* — constant, module name; operation (post или get)* — constant, operation name; service (post или get)* — selecting a service; command (post или get)* — select a command: autoload_true — add to auto installer; autoload_false — remove from auto installer; start — start service; stop — stop service; restart — restart service. language (post или get) — can take a value: en/ru (by default ru). |
error:0, mess:'Command is performed', detail [console message]; error:100, mess:'The command is entered incorrectly', detail [list of commands]; error:101, mess:'Error in performing the command'; error:400, mess:'Unfortunately, this module is unavailable for you'. |
Other useful articles: