Difference between revisions of "Защита BrainyCP от несанкционированного доступа"
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">To connect via the API, you need to create a host account in your Brainy dashboard:<br/> go to the "Host Accounts" section → fill in the fields in the "Add Host Account" section:</font></font> | |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Username;</font></font> |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">password;</font></font> |
− | *IP | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">IP address;</font></font> |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">group (if there is no group, create);</font></font> |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">tariff (if there is no tariff, create);</font></font> |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">language;</font></font> |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">shell access;</font></font> |
− | * | + | *<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">owner.</font></font> |
− | + | <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">When creating a group, you must enable the "API access" and / or "Full API access (administrator)" option. The last parameter is responsible for adding administrative functions:</font></font> | |
− | [[File: | + | [[File:Add hostacc.png|1000px|RTENOTITLE]] |
− | + | <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Go back to creating a host account and assign a group to the user who will be given the API connection:</font></font> | |
− | + | [[File:Group.png|1000px|RTENOTITLE]] | |
− | + | | |
− | [[File: | + | <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">To connect via the API, you need to open a new page in your browser and enter [http://your-IP:8002/api/api.php?Login=username&pass=password http://your-IP:8002/api/api.php?Login=username&pass=password]. If done correctly, you will see a blank page:</font></font><br/> [[File:Image02.png|1000px|RTENOTITLE]] |
− | + | <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">If you entered an incorrect username or password, an error {"code": 1, "message": "Not perm2"} is displayed:</font></font> | |
− | {| style="width: | + | [[File:Image03.png|1000px|RTENOTITLE]] |
+ | |||
+ | <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Другие полезные статьи:</font></font> | ||
+ | |||
+ | {| style="width: 1172px;" | ||
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_подключение <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: connection</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_мониторинг <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: monitoring</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_статус_веб-сервера <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: web server status</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_автоустановщик_CMS <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: auto installer CMS</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_настройка_бекапов <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: configuring backups</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_трансфер_между_серверами <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: transfer between servers</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_антивирус <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: antivirus</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_настройки_сервера <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: server settings</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_управление_веб-сервером <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: web server management</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_базы_данных <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: database</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_пользовательские_сертификаты <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: custom certificates</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_управление_почтовыми_ящиками <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: mailbox management</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_информация_о_сервере <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: server information</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_почта <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: mail</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_управление_DNS-зонами <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: DNS zone management</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_использование_трафика <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: traffic usage</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_почтовые_ящики_клиента <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: client mailboxes</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_установка_веб-сервера <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: web server installation</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_логирование <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: logging</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_сервер_имен <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: name server</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_хост-аккаунты <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: host accounts</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_менеджер_приложений <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: application manager</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_сертификаты_сервисов <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: service certificates</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_CRON <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: CRON</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_менеджер_процессов <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: process manager</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_сетевые_инструменты <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: network tools</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_FTP-сервер <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: FTP server</font></font>]''' |
|- | |- | ||
− | | style="width: | + | | style="width: 360px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_менеджер_IP-адресов <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: IP address manager</font></font>]''' |
− | | style="width: | + | | style="width: 376px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_средняя_нагрузка <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: average load</font></font>]''' |
− | | style="width: | + | | style="width: 415px;" | |
− | '''[https://docs.brainycp. | + | '''[https://docs.brainycp.io/index.php/API:_MySQL_processlist <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">API: MySQL processlist</font></font>]''' |
|} | |} |
Latest revision as of 11:35, 17 November 2021
To connect via the API, you need to create a host account in your Brainy dashboard:
go to the "Host Accounts" section → fill in the fields in the "Add Host Account" section:
- Username;
- password;
- IP address;
- group (if there is no group, create);
- tariff (if there is no tariff, create);
- language;
- shell access;
- owner.
When creating a group, you must enable the "API access" and / or "Full API access (administrator)" option. The last parameter is responsible for adding administrative functions:
Go back to creating a host account and assign a group to the user who will be given the API connection:
To connect via the API, you need to open a new page in your browser and enter http://your-IP:8002/api/api.php?Login=username&pass=password. If done correctly, you will see a blank page:
If you entered an incorrect username or password, an error {"code": 1, "message": "Not perm2"} is displayed:
Другие полезные статьи: