eq.php¶
Equipment Management Module (eq.php): API for server deployment, power management, IPMI, backups, searching, and retrieving detailed hardware configuration information.
API Methods¶
| Method | Action | Description |
|---|---|---|
abort_reinstall | abort_reinstall | Stops the server reinstallation process, removes associated tags (reinstall_start, autodeploy_start, autodeploy_timeout), and restores VLAN settings. |
add_ipmi_admin | add_ipmi_admin | Creates a new user with administrator privileges for IPMI management. If the user already exists, returns their data. |
add_ipmi_user | add_ipmi_user | Adds a new user to the IPMI management system for a specific server. If the user is an administrator, parameters may be overridden. |
announceip | announceip | Performs announcement of a specified subnet or IP address via BGP. Supports permission checks and sub-account handling. |
backup_get_schedule | backup_get_schedule | Returns the current automatic backup schedule for the specified server. |
backup_list | backup_list | Returns a list of available backups for the specified equipment (server). |
backup_save_schedule | backup_save_schedule | Saves the configured backup schedule for the specified server. |
boot_dev | boot_dev | Requests a server reboot to boot from the specified media (PXE or disk) depending on the boot mode. |
check_backup_lock | check_backup_lock | Checks if there is an active lock on backup operations for the specified server. |
clear_pxe | clear_pxe | Clears the current PXE configuration for the specified host. |
create_backup | create_backup | Initiates the backup creation process for the specified server. The operation is performed asynchronously. |
create_pxe | create_pxe | Requests the creation of a PXE configuration for subsequent OS reinstallation on the server. Returns a callback to track the process. |
delete_backup | delete_backup | Deletes the specified server backup. Requires execution of an asynchronous task. |
deploy | deploy | Starts the deployment process for the selected server or preset. Supports OS selection, hostname configuration, SSH keys, and post-install scripts. |
get_ipmi | get_ipmi | Returns the IP address and IPMI interface model for the specified server. May return multiple interfaces. |
get_traffic | get_traffic | Returns IPv4 traffic usage data for the specified server. |
getserversforannounce | getserversforannounce | Returns a list of available (rent/power_off) user servers that match IPv4 mask restrictions (/23 and /24) which can be used for IP address announcement. |
groups | groups | Returns the list of groups for a specific server. |
hard_off | hard_off | Performs a forced (hard) power-off of the equipment by the specified ID. |
history | history | Returns the server event history. |
list | list | Returns a list of available equipment with filtering options by various parameters (location, status, type, etc.). |
off | off | Powers off the server. |
on | on | Powers on the server. |
order_instance | order_instance | Starts the deployment process for a new server from a preset or reinstallation of an existing server with OS and additional software selection. |
reboot | reboot | Sends a request to reboot the specified server. If the server belongs to a client, a lock (lock) is checked. |
reinstall | reinstall | Creates a key to start the server reinstallation process and sets the initial stage (create_pxe). |
remove_ipmi_user | remove_ipmi_user | Removes an additional IPMI user for the specified server. |
request_backup_link | request_backup_link | Requests the generation of a temporary link to download a server backup. |
restore_backup | restore_backup | Starts the process of restoring the server from the specified backup. The operation is asynchronous. |
search | search | Returns a list of available servers and instances based on various filtering criteria (location, status, type, IP, MAC, etc.). |
sensors | sensors | Returns current sensor readings for the specified server. |
show | show | Returns full data about the server, including hardware configuration (hwconfig), operating system, IP addresses, interfaces, and IPMI. |
status | status | Returns the current equipment status (power_off, rent, TT, etc.) and related data. |
suspend | suspend | Requests suspension (suspend) or unsuspension (unsuspend) of a VPS/server. If the action is suspend, the server will be locked. |
unified_server_search | unified_server_search | Unified search for servers by query. |
unit_reset | unit_reset | Requests an IPMI module reset for the specified server. |
unsuspend | unsuspend | Request to remove a lock (unsuspend) from a server. If the request is successful, the server will be unlocked. |
update_servers | update_servers | Updates the list of available servers linked to the client account in WHMCS, including checking active services and prebill servers. |
eq/abort_reinstall¶
Stops the server reinstallation process, removes associated tags (reinstall_start, autodeploy_start, autodeploy_timeout), and restores VLAN settings.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: abort_reinstall |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "\(module/\)action: invalid server id" }
```
eq/add_ipmi_admin¶
Creates a new user with administrator privileges for IPMI management. If the user already exists, returns their data.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add_ipmi_admin |
| id | ✅ | integer | Server ID |
| admin_user | ❌ | string | Username (if empty, generated automatically) |
| admin_pass | ❌ | string | Administrator password |
| token | ✅ | string | Authentication API token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Add IPMI user request failed" }
```
eq/add_ipmi_user¶
Adds a new user to the IPMI management system for a specific server. If the user is an administrator, parameters may be overridden.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add_ipmi_user |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
| admin_user | ❌ | string | Username (if administrative access is required) |
| admin_pass | ❌ | string | Password for administrative access |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Add IPMI user request failed" }
```
eq/announceip¶
Performs announcement of a specified subnet or IP address via BGP. Supports permission checks and sub-account handling.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: announceip |
| token | ❌ | string | Authorization token |
| id | ✅ | integer | Server/object ID |
| subnet | ❌ | string | Subnet for announcement |
| server | ❌ | string | Server (boolean/string) |
| subnetaddr | ❌ | string | Address in the subnet |
| subnetaddrmask | ❌ | string | Subnet address mask |
| asn | ❌ | string | Autonomous System number (can be 'own') |
| ownasn | ❌ | boolean | Use own ASN |
| annonce | ❌ | boolean | Announcement flag |
| return | ❌ | boolean | Return result |
| route | ❌ | boolean | Routing flag |
| cmnt | ❌ | string | Announcement comment |
| checkboxes | ❌ | boolean | Terms confirmation (ASRegistered, RKPIValid, SubNetNotSpamhaus, DataIsCorrect) |
Example Request
Failure response
``` { "code": -2, "message": "EQ: action required" }
```
eq/backup_get_schedule¶
Returns the current automatic backup schedule for the specified server.
HTTP-method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: backup_get_schedule |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Equipment (server) ID |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "Authentication required" }
```
eq/backup_list¶
Returns a list of available backups for the specified equipment (server).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: backup_list |
| id | ✅ | int | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/backup_list: invalid server id" }
```
eq/backup_save_schedule¶
Saves the configured backup schedule for the specified server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: backup_save_schedule |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
| backup_schedule | ✅ | array | Array of backup schedule settings (days, time, timezone) |
Example Request
Failure response
``` { "code": -1, "message": "Request execution error" }
```
eq/boot_dev¶
Requests a server reboot to boot from the specified media (PXE or disk) depending on the boot mode.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: boot_dev |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
| media | ✅ | string | Boot media type |
| boot_mode | ❌ | string | Boot mode (auto, uefi or legacy). If auto, it is determined automatically based on hardware configuration. |
Example Request
Failure response
``` { "code": -1, "message": "Bootable media change request failed: [error]" }
```
eq/check_backup_lock¶
Checks if there is an active lock on backup operations for the specified server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: check_backup_lock |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Equipment (server) ID |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/check_backup_lock: invalid server id" }
```
eq/check_pin¶
Checks the PIN code for operations.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: check_pin |
| token | ✅ | string | Authorization token |
| pin | ✅ | string | PIN code for verification |
Example Request
Example of a successful response
eq/clear_pxe¶
Clears the current PXE configuration for the specified host.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: clear_pxe |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Equipment ID |
| hostname | ❌ | string | Hostname to clear |
Example Request
Failure response
``` { "code": -1, "message": "Failed to submit clear PXE config request" }
```
eq/create_backup¶
Initiates the backup creation process for the specified server. The operation is performed asynchronously.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: create_backup |
| id | ✅ | integer | Equipment (server) ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Request execution error" }
```
eq/create_pxe¶
Requests the creation of a PXE configuration for subsequent OS reinstallation on the server. Returns a callback to track the process.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: create_pxe |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
| root_pass | ✅ | string | Root password |
| os_id | ✅ | int | Operating system ID |
| ssh_key | ❌ | string | SSH key |
| post_install_script | ❌ | string | Post-installation script |
| post_install_callback | ❌ | string | Callback URL for script completion |
| hostname | ✅ | string | Hostname |
| reinstall_key | ❌ | string | Reinstallation key |
| ❌ | string | User email | |
| os_name | ❌ | string | OS name (alias) |
| disk_mirror | ❌ | int | Disk mirroring |
| activate_windows | ❌ | int | Windows activation (0/1) |
| activation_key | ❌ | string | Activation key |
| uefi | ❌ | int | UEFI boot mode (0/1) |
| attendedInstall | ❌ | string | Attended installation |
| root_size | ❌ | int | Root partition size |
| deploy_ticket | ❌ | string | Kayako ticket ID |
| ignore_duplicated_install | ❌ | int | Ignore duplicate installations |
| no_lvm | ❌ | string | Disable LVM |
| custom_domain | ❌ | string | Custom domain |
| manual_choice_dsk | ❌ | int | Manual disk selection |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Create PXE config request failed: error_details" }
```
eq/delete_backup¶
Deletes the specified server backup. Requires execution of an asynchronous task.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: delete_backup |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Equipment (server) ID |
| name | ✅ | string | Backup name to delete |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Error during backup deletion" }
```
eq/deploy¶
Starts the deployment process for the selected server or preset. Supports OS selection, hostname configuration, SSH keys, and post-install scripts.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: deploy |
| token | ✅ | string | Authorization token |
| id | ❌ | integer | Specific server ID for deployment. If not specified, the preset is used. |
| preset | ❌ | string | Preset name for deploying a new server |
| location | ✅ | integer | Location (datacenter) ID |
| hostname | ❌ | string | Desired hostname |
| os_id | ✅ | integer | Operating system ID to install |
| root_pass | ✅ | string | Root password (minimum 8 characters) |
| ssh_key | ❌ | string | Public SSH key |
| post_install_script | ❌ | string | Script to execute after installation |
| post_install_callback | ❌ | string | URL/method for callback upon completion |
| deploy_data | ✅ | string | Invoice data (WHMCS ID or email) |
| deploy_options | ✅ | string | Deployment parameters (e.g., billing type) |
| traffic_plan | ❌ | integer | Traffic plan ID |
| ipv4_amount | ❌ | integer | Number of IPv4 addresses |
| custom_domain | ❌ | string | Custom domain for the server |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/deploy: Empty billing data." }
```
eq/get_ipmi¶
Returns the IP address and IPMI interface model for the specified server. May return multiple interfaces.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_ipmi |
| id | ✅ | int | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "Authentication required" }
```
eq/get_traffic¶
Returns IPv4 traffic usage data for the specified server.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_traffic |
| id | ✅ | int | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "\(module/\)action: invalid server id" }
```
eq/get_upgrade_key¶
Returns a key to perform an upgrade operation, linked to a specific invoice (invoice_id).
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_upgrade_key |
| token | ✅ | string | Authorization token |
| invoice_id | ✅ | int | Invoice ID to get the upgrade key |
Example Request
Failure response
``` { "code": -1, "message": "Request execution error" }
```
eq/getserversforannounce¶
Returns a list of available (rent/power_off) user servers that match IPv4 mask restrictions (/23 and /24), which can be used for IP address announcement.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: getserversforannounce |
| token | ✅ | string | Authentication API token |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "Authentication required" }
```
eq/groups¶
Returns the list of groups for a specific server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: groups |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "EQ: action required" }
```
eq/hard_off¶
Performs a forced (hard) power-off of the equipment by the specified ID.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: hard_off |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "Stop request failed" }
```
eq/history¶
Returns the server event history.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: history |
| id | ✅ | int | Server ID |
| token | ✅ | string | Authorization token |
| type | ❌ | array<string> | Filter by event types |
| date_from | ❌ | string | Start date (YYYY-MM-DD) |
| date_to | ❌ | string | End date (YYYY-MM-DD) |
Example Request
Example of a successful response
eq/list¶
Returns a list of available equipment with filtering options by various parameters (location, status, type, etc.).
HTTP-method: GET|POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name (list) |
| token | ✅ | string | Authorization token |
| group[] | ❌ | string[] | Equipment groups |
| dc[] | ❌ | int[] | Datacenter ID |
| location[] | ❌ | string[] | Location code (NL, etc.) |
| rack[] | ❌ | int[] | Rack ID |
| status[] | ❌ | string[] | Server status (rented, prepare_full, etc.) |
| owner[] | ❌ | string[] | Equipment owner |
| component[] | ❌ | int[] | Hardware component ID |
| type[] | ❌ | string[] | Equipment type (server, switch, etc.) |
| ip[] | ❌ | string[] | IP address |
| mac[] | ❌ | string[] | MAC address |
| account_id[] | ❌ | int[] | Billing account ID |
| billing[] | ❌ | string[] | Billing region (en/ru) |
| email[] | ❌ | string[] | User email |
| id[] | ❌ | int[] | Equipment ID |
| full | ❌ | boolean | Return full data (for admins) |
| kvm | ❌ | string | KVM parameters |
| serialNumber | ❌ | string | Serial number |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "EQ: action required" }
```
eq/off¶
Powers off the server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: off |
| id | ✅ | int | Server ID |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
eq/on¶
Powers on the server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: on |
| id | ✅ | int | Server ID |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
eq/order_instance¶
Starts the deployment process for a new server from a preset or reinstallation of an existing server with OS and additional software selection.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: order_instance |
| token | ✅ | string | Authorization token |
| id | ❌ | int | Existing server ID for reinstallation |
| preset | ❌ | string | Preset ID or name for ordering a new instance |
| root_pass | ✅ | string | Root password (must not contain @ or #) |
| os_template | ❌ | string | OS template for deployment from template |
| soft_id | ❌ | int | Additional software ID |
| os_id | ❌ | int | Operating system ID |
| ssh_key | ❌ | string | Public SSH key |
| post_install_script | ❌ | string | Post-installation script |
| hostname | ❌ | string | Hostname |
| root_size | ❌ | int | Root partition size (GB) |
| ❌ | string | Email for notifications/deployment | |
| deploy_period | ❌ | string | Payment period (hourly, quarterly, semi-annually, annually) |
| ipv4_amount | ❌ | int | Number of IPv4 addresses |
| custom_domain | ❌ | string | Custom domain |
| vlan | ❌ | int | Private VLAN ID |
| deploy_data | ❌ | string | Deployment data (for admin) |
| deploy_options | ❌ | string | Deployment options (for admin) |
| traffic_plan | ❌ | int | Traffic plan ID |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Reinstall init for server 123 failed: error message" }
```
eq/ovirt_novnc¶
Requests the launch of a NoVNC console for the server via the oVirt interface. Requires access permissions to the server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: ovirt_novnc |
| id | ✅ | int | Server ID |
| token | ✅ | string | Authorization token |
| white_ip | ❌ | string | Public IP for console access |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/ovirt_novnc: invalid server id" }
```
eq/reboot¶
Sends a request to reboot the specified server. If the server belongs to a client, a lock (lock) is checked.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: reboot |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "Reboot request failed" }
```
eq/reinstall¶
Creates a key to start the server reinstallation process and sets the initial stage (create_pxe).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ✅ | int | Server ID for reinstallation |
| token | ❌ | string | Authorization token |
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/reinstall: invalid server id" }
```
eq/remove_ipmi_user¶
Removes an additional IPMI user for the specified server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: remove_ipmi_user |
| id | ✅ | integer | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "\(module/\)action: invalid server id" }
```
eq/request_backup_link¶
Requests the generation of a temporary link to download a server backup.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: request_backup_link |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Equipment (server) ID |
| name | ✅ | string | Backup name for the link request |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Error during backup link request" }
```
eq/restore_backup¶
Starts the process of restoring the server from the specified backup. The operation is asynchronous.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: restore_backup |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
| name | ✅ | string | Backup name for restoration |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Restore request failed: error_details" }
```
eq/search¶
Returns a list of available servers and instances based on various filtering criteria (location, status, type, IP, MAC, etc.).
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: search |
| group[] | ❌ | array<string> | Equipment groups |
| dc[] | ❌ | array<int> | Datacenter ID |
| location[] | ❌ | array<string> | Location code (NL, etc.) |
| rack[] | ❌ | array<int> | Rack ID |
| status[] | ❌ | array<string> | Server status (rented, prepare_full, etc.) |
| owner[] | ❌ | array<string> | Equipment owner |
| component[] | ❌ | array<int> | Hardware component ID |
| type[] | ❌ | array<string> | Equipment type (server, switch, etc.) |
| ip[] | ❌ | array<string> | Search by IP address |
| mac[] | ❌ | array<string> | Search by MAC address |
| account_id[] | ❌ | array<int> | Billing account ID |
| billing[] | ❌ | array<string> | Billing region (en/ru) |
| email[] | ❌ | array<string> | Search by client email |
| id[] | ❌ | array<int> | Search by Equipment ID |
| full | ❌ | boolean | Return full data (for admins) |
| token | ✅ | string | Authentication API token |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "EQ: action required" }
```
eq/sensors¶
Returns current sensor readings for the specified server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: sensors |
| id | ✅ | int | Equipment ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/sensors: invalid server id" }
```
eq/set_pin¶
Sets the PIN code for operations.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: set_pin |
| token | ✅ | string | Authorization token |
| new_pin | ✅ | string | New PIN code (4-10 characters) |
| old_pin | ❌ | string | Old PIN code |
| no_pin_req | ❌ | string | Skip PIN check flag (true/false) |
Example Request
Example of a successful response
eq/show¶
Returns full data about the server, including hardware configuration (hwconfig), operating system, IP addresses, interfaces, and IPMI.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: show |
| id | ✅ | int | Equipment ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
{
"result": "OK",
"server_data": {
"id": 123,
"status": "rent",
"Condition_Component": "power_on",
"owner": "[email protected]",
"type_billing": "Server",
"hostname": "srv-01.example.com"
},
"hardware": {
"cpu": "Intel Xeon E5-2680",
"ram": 64,
"hdd": 1000,
"components": []
},
"groups": [
{
"tag": "group_name",
"value": "val"
}
],
"location": {
"rack_id": 5,
"dc_location": 10,
"dc_name": "Amsterdam"
},
"OS": {
"id": 312,
"name": "Ubuntu 22.04 LTS",
"active": 1
},
"IP": [
{
"IP": "192.168.1.1",
"status": "active"
}
],
"interfaces": [],
"IPMI": {
"model": "Dell iDRAC",
"interfaces": []
},
"tags": [
{
"tag": "server_name",
"value": "my-server"
}
],
"reinstall": "",
"licenses": [],
"preset": null,
"commitment": ""
}
Failure response
``` { "code": -1, "message": "Nothing found for 123" }
```
eq/status¶
Returns the current equipment status (power_off, rent, TT, etc.) and related data.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: status |
| id | ✅ | int | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Failure response
``` { "code": -1, "message": "EQ/status: invalid server id" }
```
eq/status_check¶
Performs a check of the current equipment state (eq_status_check).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: status_check |
| token | ✅ | string | Authentication token |
| id | ✅ | int | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "Status request failed" }
```
eq/suspend¶
Requests suspension (suspend) or unsuspension (unsuspend) of a VPS/server. If the action is suspend, the server will be locked.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: suspend |
| id | ✅ | int | Server ID |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "\(module/\)action: invalid server id" }
```
eq/traffic_add¶
Increases the outbound traffic limit for the server and generates an invoice in WHMCS.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: traffic_add |
| id | ✅ | int | Server ID |
| new_limit | ✅ | int | New traffic limit in TB |
| token | ✅ | string | Authentication API token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "\(module/\)action: invalid new_limit" }
```
eq/unified_server_search¶
Unified search for servers by query.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: unified_server_search |
| token | ✅ | string | Authorization token |
| query | ✅ | string | Search query (string or numeric ID) |
Example Request
Example of a successful response
{
"result": "OK",
"results": {
"servers": [
{
"id": 123,
"name": "Server 1",
"owner": "[email protected]",
"status": "rent",
"billing": "en",
"type": "server"
}
]
},
"limited": {
"servers": false
},
"category": "servers"
}
eq/unit_reset¶
Requests an IPMI module reset for the specified server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: unit_reset |
| id | ✅ | int | Equipment ID |
| token | ❌ | string | Authorization token |
Example Request
Failure response
``` { "code": -1, "message": "IPMI unit reset request failed: error_details" }
```
eq/unsuspend¶
Request to remove a lock (unsuspend) from a server. If the request is successful, the server will be unlocked.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ✅ | int | Server ID |
| token | ❌ | string | Authorization token |
Example of a successful response
Failure response
``` { "code": -1, "message": "Unsuspend request failed" }
```
eq/update_servers¶
Updates the list of available servers linked to the client account in WHMCS, including checking active services and prebill servers.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: update_servers |
| token | ✅ | string | Authorization token |
| show_products | ❌ | int | Show products flag |
| load_servers_only | ❌ | string | Filter: only servers (true) |
Example Request
``` curl -s "https://invapi.hostkey.com/eq