Difference between revisions of "API: connection"

From BrainyCP
Jump to: navigation, search
Line 35: Line 35:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_мониторинг <font><font>API: monitoring</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Monitoring <font><font>API: monitoring</font></font>]'''
  
 
|  
 
|  
Line 45: Line 45:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_настройка_бекапов <font><font>API: configuring backups</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Configuring_backups <font><font>API: configuring backups</font></font>]'''
  
 
|  
 
|  
Line 55: Line 55:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_настройки_сервера <font><font>API: server settings</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Server_configuration <font><font>API: server settings</font></font>]'''
  
 
|  
 
|  
Line 65: Line 65:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_пользовательские_сертификаты <font><font>API: custom certificates</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_User_Certificates <font><font>API: custom certificates</font></font>]'''
  
 
|  
 
|  
Line 75: Line 75:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_почта <font><font>API: mail</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Mail <font><font>API: mail</font></font>]'''
  
 
|  
 
|  
Line 85: Line 85:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_почтовые_ящики_клиента <font><font>API: client mailboxes</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Client_mail <font><font>API: client mailboxes</font></font>]'''
  
 
|  
 
|  
Line 95: Line 95:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_сервер_имен <font><font>API: name server</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Nameserver <font><font>API: name server</font></font>]'''
  
 
|  
 
|  
Line 105: Line 105:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_сертификаты_сервисов <font><font>API: service certificates</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Certificates_of_services <font><font>API: service certificates</font></font>]'''
  
 
|  
 
|  
Line 115: Line 115:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_сетевые_инструменты <font><font>API: network tools</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Network_tools <font><font>API: network tools</font></font>]'''
  
 
|  
 
|  
Line 125: Line 125:
  
 
|  
 
|  
'''[https://docs.brainycp.io/index.php/API:_средняя_нагрузка <font><font>API: average load</font></font>]'''
+
'''[https://docs.brainycp.io/index.php/API:_Load_average <font><font>API: average load</font></font>]'''
  
 
|  
 
|  

Revision as of 14:01, 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:

RTENOTITLE

Go back to creating a host account and assign a group to the user who will be given the API connection:

RTENOTITLE

 

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:
RTENOTITLE

If you entered an incorrect username or password, an error {"code": 1, "message": "Not perm2"} is displayed:

RTENOTITLE

Другие полезные статьи:

API: connection

API: monitoring

API: web server status

API: auto installer CMS

API: configuring backups

API: transfer between servers

API: antivirus

API: server settings

API: web server management

API: database

API: custom certificates

API: mailbox management

API: server information

API: mail

API: DNS zone management

API: traffic usage

API: client mailboxes

API: web server installation

API: logging

API: name server

API: host accounts

API: application manager

API: service certificates

API: CRON

API: process manager

API: network tools

API: FTP server

API: IP address manager

API: average load

API: MySQL processlist