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 | Interrupts the OS reinstallation process, removes associated tags (reinstall_start, autodeploy_start, etc.) and returns deployment logs. |
add_ipmi_admin | add_ipmi_admin | Creates a new user with administrator privileges for IPMI management. If admin_user is specified, a user with the given name is created. |
add_ipmi_user | add_ipmi_user | Creates a new IPMI user for the server. If the user is an administrator, admin_user and admin_pass parameters are required. |
announceip | announceip | Performs the announcement procedure of the specified subnet for the server. Supports permission checks and sub-account operations. |
backup_get_schedule | backup_get_schedule | Returns the current 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 automatic backup schedule for the specified server. |
boot_dev | boot_dev | Requests to boot the server from the specified media type (PXE or disk) in UEFI or Legacy mode. |
check_backup_lock | check_backup_lock | Checks for an active lock for performing operations with server backups. |
clear_pxe | clear_pxe | Clears the PXE configuration for the specified host. If the full parameter is 1, all content is deleted; if 0, only the platform remains. |
create_backup | create_backup | Initiates the backup creation process for the specified equipment. The operation is performed asynchronously. |
create_pxe | create_pxe | Initiates the preparation of PXE configuration for installing an operating system on the server. Supports OS selection, SSH key configuration, post-install scripts, and UEFI parameters. |
delete_backup | delete_backup | Deletes the specified server backup. The backup name is required. |
deploy | deploy | Initiates the deployment process of a new server by ID or preset. Supports OS selection, hostname configuration, SSH keys, and disk parameters. |
get_ipmi | get_ipmi | Returns a list of available IPMI interfaces for the server, including their IP addresses and vendor model. |
get_traffic | get_traffic | Returns IPv4 traffic usage data for the specified server. |
getserversforannounce | getserversforannounce | Returns a list of available servers (status: rent or power_off) that match the subnet and mask constraints to perform the announcement procedure. |
groups | groups | Returns the list of groups for the specified server. |
hard_off | hard_off | Sends a request for a hard stop or hardware reboot via IPMI/OpenStack. |
history | history | Returns the server event history. |
list | list | Returns a list of available servers and equipment with advanced search support by various parameters (location, status, type, IP, MAC, etc.). |
off | off | Turns off the server. |
on | on | Turns on the server. |
order_instance | order_instance | Starts the process of ordering a new server by preset or performs a reinstall of an existing server with OS and additional software selection. |
reboot | reboot | Sends a request to reboot the hardware. If the server is in standby mode, execution via IPMI may be required. |
reinstall | reinstall | Starts the preparation process for server reinstallation, creates a task key, and notifies the client. |
remove_ipmi_user | remove_ipmi_user | Deletes additional IPMI user accounts for the specified server. |
request_backup_link | request_backup_link | Requests a temporary link to download a server backup. |
restore_backup | restore_backup | Starts the process of restoring the server from the specified backup. The method is asynchronous and returns a task tracking key. |
search | search | Returns a list of available equipment based on various filters (group, location, status, type, etc.). |
sensors | sensors | Returns current sensor readings (temperature, fan speed, etc.) for the specified server. |
show | show | Returns detailed information about the server, including hardware (hwconfig), operating system, IP addresses, interfaces, and IPMI. |
status | status | Returns the current server status and related data (IP, interfaces, IPMI, tags). |
suspend | suspend | Requests to suspend or unsuspend a VPS/server. The operation requires appropriate permissions and, in some cases, an administrator lock check. |
unified_server_search | unified_server_search | Unified server search by query. |
unit_reset | unit_reset | Request for device reset (IPMI reset) for the specified server. If the request is non-synchronous, it returns a callback. |
unsuspend | unsuspend | Request to remove the suspension (unsuspend) from the server. If the server was suspended by an administrator, the action will be executed immediately. |
update_servers | update_servers | Updates the list of active and pending payment servers for the current user, synchronizing them with WHMCS data. |
eq/abort_reinstall¶
Interrupts the OS reinstallation process, removes associated tags (reinstall_start, autodeploy_start, etc.) and returns deployment logs.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
Example Request
Example of a successful response
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 admin_user is specified, a user with the given name is created.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add_ipmi_admin |
| id | ✅ | int | Server ID |
| admin_user | ❌ | string | Admin username (if not specified, a random one is generated) |
| admin_pass | ❌ | string | Admin 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¶
Creates a new IPMI user for the server. If the user is an administrator, admin_user and admin_pass parameters are required.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add_ipmi_user |
| token | ✅ | string | Authentication token |
| id | ✅ | integer | Server ID |
| admin_user | ❌ | string | Admin username (if applicable) |
| admin_pass | ❌ | string | Admin password |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Add IPMI user request failed" }
```
eq/announceip¶
Performs the announcement procedure of the specified subnet for the server. Supports permission checks and sub-account operations.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: announceip |
| id | ✅ | integer | Server ID |
| subnet | ❌ | string | Subnet for announcement |
| server | ❌ | string | Server name |
| subnetaddr | ❌ | string | Subnet address |
| subnetaddrmask | ❌ | string | Subnet mask |
| asn | ❌ | string | Autonomous System Number (can specify 'own') |
| ownasn | ❌ | boolean | Use own ASN |
| annonce | ❌ | boolean | Announcement flag |
| return | ❌ | boolean | Return result |
| route | ❌ | boolean | Routing flag |
| cmnt | ❌ | string | Request comment |
| checkboxes | ❌ | boolean | Terms confirmation (ASRegistered, RKPIValid, SubNetNotSpamhaus, DataIsCorrect) |
| token | ✅ | string | Authentication API-token |
Example Request
Example of a successful response
Failure response
``` { "code": -2, "message": "Authentication required" }
```
eq/backup_get_schedule¶
Returns the current backup schedule for the specified server.
HTTP-method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name: backup_get_schedule |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Equipment (server) ID |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/backup_get_schedule: invalid server id" }
```
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 | ✅ | integer | 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 automatic 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 | Equipment (server) ID |
| backup_schedule | ✅ | object | Schedule object. Contains fields: days (array |
Example Request
curl -s "https://invapi.hostkey.com/eq.php" -X POST \
--data "action=backup_save_schedule" \
--data "token=HOSTKEY_TOKEN" \
--data "id=123" \
--data "backup_schedule[days][]=1" \
--data "backup_schedule[days][]=2" \
--data "backup_schedule[time]=03:00" \
--data "backup_schedule[timezone]=Europe/London"
Failure response
``` { "code": -1, "message": "Error saving backup schedule" }
```
eq/boot_dev¶
Requests to boot the server from the specified media type (PXE or disk) in UEFI or Legacy 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 | Bootable media type (e.g., pxe) |
| boot_mode | ❌ | string | Boot mode: auto (detected automatically), uefi or legacy |
Example Request
Failure response
``` { "code": -1, "message": "Bootable media change request failed" }
```
eq/check_backup_lock¶
Checks for an active lock for performing operations with server backups.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: check_backup_lock |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | 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 PXE configuration for the specified host. If the full parameter is 1, all content is deleted; if 0, only the platform remains.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name (clear_pxe) |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Equipment ID |
| hostname | ❌ | string | Hostname for PXE configuration clearing |
Example Request
Failure response
``` { "code": -1, "message": "Operation execution error or invalid ID" }
```
eq/console¶
Requests access to the server management console via IPMI/NoVNC.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action (console) |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "Console request failed" }
```
eq/create_backup¶
Initiates the backup creation process for the specified equipment. The operation is performed asynchronously.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: create_backup |
| id | ✅ | int | Server/equipment ID for backup creation |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Error during backup creation" }
```
eq/create_pxe¶
Initiates the preparation of PXE configuration for installing an operating system on the server. Supports OS selection, SSH key configuration, post-install scripts, and UEFI parameters.
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 |
| hostname | ❌ | string | Hostname |
| ssh_key | ❌ | string | SSH key |
| post_install_script | ❌ | string | Post-installation script |
| post_install_callback | ❌ | string | URL for callback notification |
| reinstall_key | ❌ | string | Reinstallation key |
| ❌ | string | User email | |
| os_name | ❌ | string | OS name (alias) |
| disk_mirror | ❌ | string | Disk mirroring |
| activate_windows | ❌ | int | Windows activation (0/1) |
| activation_key | ❌ | string | Activation key |
| uefi | ❌ | int | UEFI boot mode (0/1/-1) |
| attendedInstall | ❌ | string | Automated installation |
| root_size | ❌ | int | Root partition size |
| deploy_ticket | ❌ | string | Kayako ticket ID |
| ignore_duplicated_install | ❌ | int | Ignore duplicate installations |
| no_lvm | ❌ | int | Without LVM (0/1) |
| custom_domain | ❌ | string | Custom domain |
| manual_choice_dsk | ❌ | int | Manual disk selection (0/1) |
Example Request
Failure response
``` { "code": -1, "message": "Create PXE config request failed: error_details" }
```
eq/delete_backup¶
Deletes the specified server backup. The backup name is required.
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 for deletion |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Error deleting backup" }
```
eq/deploy¶
Initiates the deployment process of a new server by ID or preset. Supports OS selection, hostname configuration, SSH keys, and disk parameters.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: deploy |
| id | ❌ | int | Specific server ID for deployment. If not specified, a preset is used. |
| preset | ❌ | string | Hardware preset name or ID |
| location | ✅ | int | Location (datacenter) ID |
| hostname | ❌ | string | Desired hostname |
| root_pass | ✅ | string | Root user password (minimum 8 characters) |
| os_id | ✅ | int | Operating system ID for installation |
| ssh_key | ❌ | string | Public SSH key |
| post_install_script | ❌ | string | Script to execute after installation |
| post_install_callback | ❌ | string | Callback URL after installation completion |
| root_size | ❌ | int | Root partition size in GB |
| ipv4_amount | ❌ | int | Number of IPv4 addresses |
| custom_domain | ❌ | string | Custom domain for the server |
| deploy_data | ✅ | string | Billing data (invoice ID or email) |
| deploy_options | ✅ | string | Billing/location parameters |
| traffic_plan | ❌ | int | Traffic plan ID |
| disk_mirror | ❌ | string | Disk mirroring configuration (e.g., raid1) |
| deploy_period | ❌ | string | Payment period (hourly, monthly, quarterly, semi-annually, annually) |
| imitate_deploy | ❌ | int | Deployment simulation mode (1 - dry run) |
| token | ✅ | string | Authentication API-token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/deploy: Empty billing data." }
```
eq/get_ipmi¶
Returns a list of available IPMI interfaces for the server, including their IP addresses and vendor model.
HTTP-method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_ipmi |
| id | ✅ | integer | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "No IPMI interfaces found" }
```
eq/get_traffic¶
Returns IPv4 traffic usage data for the specified server.
HTTP-method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_traffic |
| token | ✅ | string | Authentication token |
| id | ✅ | int | Server ID |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/get_traffic: invalid server id" }
```
eq/get_upgrade_key¶
Returns an upgrade key for the server, linked to a specific invoice via tags.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_upgrade_key |
| invoice_id | ✅ | int | Invoice ID to find the associated upgrade key |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ: action required" }
```
eq/getserversforannounce¶
Returns a list of available servers (status: rent or power_off) that match the subnet and mask constraints to perform the announcement procedure.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name: getserversforannounce |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ: action required" }
```
eq/groups¶
Returns the list of groups for the specified server.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name: groups |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/groups: invalid server id" }
```
eq/hard_off¶
Sends a request for a hard stop or hardware reboot via IPMI/OpenStack.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action name (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> | Event type filter |
| 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 servers and equipment with advanced search support by various parameters (location, status, type, IP, MAC, etc.).
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list or search |
| token | ❌ | string | Authorization token |
| id | ❌ | int[] | Server ID filter. Accepts multiple values: id[]=1&id[]=2 |
| group[] | ❌ | array<string> | Equipment group filter (e.g.: 1CPU, 2CPU) |
| location[] | ❌ | array<string> | Location code (NL, US-East, etc.) |
| rack[] | ❌ | array<int> | Rack ID |
| status[] | ❌ | array<string> | Server status (rented, prepare_full, etc.) |
| type[] | ❌ | array<string> | Equipment type (server, switch, etc.) |
| ip[] | ❌ | array<string> | IP address filter |
| email[] | ❌ | array<string> | Owner email filter |
| account_id[] | ❌ | array<int> | Billing account ID filter |
| full | ❌ | boolean | Return full information (for administrators) |
| mac[] | ❌ | array<string> | MAC address filter |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/list: invalid server id" }
```
eq/off¶
Turns 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¶
Turns 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 process of ordering a new server by preset or performs a reinstall of an existing server with OS and additional software selection.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ❌ | int | Existing server ID for reinstallation. If not specified, a new instance is created by preset. |
| preset | ❌ | string | Preset name or ID for ordering a new server. |
| root_pass | ✅ | string | Root password. Must not contain @ or # characters. |
| os_template | ❌ | string | OS template for deployment from template (for admins). |
| soft_id | ❌ | int | Additional software ID. |
| ssh_key | ❌ | string | Public SSH key. |
| post_install_script | ❌ | string | Post-installation script. |
| hostname | ❌ | string | Hostname. |
| root_size | ❌ | int | Root partition size (GB). |
| ipv4_amount | ❌ | int | Number of IPv4 addresses. |
| vlan | ❌ | int | Private VLAN ID. |
| custom_domain | ❌ | string | Custom domain (checked for prohibited words). |
| deploy_period | ❌ | string | Payment period (hourly, quarterly, semi-annually, annually). |
| traffic_plan | ❌ | int | Traffic plan ID. |
| token | ✅ | string | Authentication API-token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Reinstall init for server 123 failed: error message" }
```
eq/ovirt_novnc¶
Requests access to the oVirt noVNC console for the specified server.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: ovirt_novnc |
| id | ✅ | integer | Equipment ID |
| token | ✅ | string | Authorization token |
| white_ip | ❌ | string | White IP for access |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "oVirt noVNC console request failed" }
```
eq/reboot¶
Sends a request to reboot the hardware. If the server is in standby mode, execution via IPMI may be required.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: reboot |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Equipment ID |
Example Request
Failure response
``` { "code": -1, "message": "Reboot request failed" }
```
eq/reinstall¶
Starts the preparation process for server reinstallation, creates a task key, and notifies the client.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ✅ | int | Server ID for reinstallation |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/reinstall: invalid server id" }
```
eq/remove_ipmi_user¶
Deletes additional IPMI user accounts 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": "EQ/remove_ipmi_user: [error]" }
```
eq/request_backup_link¶
Requests 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 link request |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Request failed" }
```
eq/restore_backup¶
Starts the process of restoring the server from the specified backup. The method is asynchronous and returns a task tracking key.
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": "Request failed: error_details" }
```
eq/search¶
Returns a list of available equipment based on various filters (group, location, status, type, etc.).
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| group[] | ❌ | array<string> | Group filter (e.g.: 1CPU, 2CPU) |
| dc[] | ❌ | array<int> | Datacenter ID |
| location[] | ❌ | array<string> | Location code (NL, US-East, 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> | IP address filter |
| mac[] | ❌ | array<string> | MAC address filter |
| account_id[] | ❌ | array<int> | Billing account ID filter |
| billing[] | ❌ | array<string> | Billing region (en/us) |
| email[] | ❌ | array<string> | Customer email filter |
| id[] | ❌ | array<int> | Equipment ID filter |
| serialNumber[] | ❌ | array<string> | Serial number search |
| token | ✅ | string | Authentication API-token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/search: invalid request" }
```
eq/sensors¶
Returns current sensor readings (temperature, fan speed, etc.) 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": "Sensors request failed" }
```
eq/set_pin¶
Sets a 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 detailed information about the server, including hardware (hwconfig), operating system, IP addresses, interfaces, and IPMI.
HTTP-method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ✅ | int | Equipment ID |
| token | ❌ | string | Authorization token |
Example of a successful response
{
"result": "OK",
"server_data": {
"id": 123,
"status": "rent",
"type": "Server",
"hostname": "srv-01.hostkey.com",
"owner": "[email protected]",
"Condition_Component": "power_off",
"ip": [
{
"IP": "192.168.1.1",
"status": "active"
}
],
"os": {
"id": 5,
"name": "Ubuntu 22.04 LTS"
},
"location": {
"dc_location": "NL",
"rack_id": 10,
"rack_position": 5
}
},
"hardware": {
"cpu": "Intel Xeon E-2388G",
"ram": "64GB",
"hdd": "2x960GB SSD"
},
"groups": [
{
"tag": "group1",
"value": "val"
}
],
"licenses": [],
"reinstall": null,
"IP": [
"192.168.1.1"
],
"interfaces": [
{
"id": 1,
"type": "eth0",
"mac": "AA:BB:CC:DD:EE:FF",
"IsMain": true,
"Status": "up"
}
],
"IPMI": {
"model": "Dell iDRAC 9",
"interfaces": []
},
"tags": [
{
"tag": "server_name",
"value": "my-server"
}
]
}
Failure response
``` { "code": -1, "message": "Nothing found for 123" }
```
eq/status¶
Returns the current server status and related data (IP, interfaces, IPMI, tags).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ✅ | int | Server ID |
| action | ❌ | string | Action (status) |
| 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 state and availability of equipment (without binding to a specific ID).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| token | ✅ | string | Authentication token |
Example of a successful response
Failure response
``` { "code": -2, "message": "Authentication required" }
```
eq/suspend¶
Requests to suspend or unsuspend a VPS/server. The operation requires appropriate permissions and, in some cases, an administrator lock check.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: suspend |
| id | ✅ | int | Server ID for the operation |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Suspend request failed" }
```
eq/traffic_add¶
Increases the outbound traffic limit for the server and creates a corresponding invoice in WHMCS.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: traffic_add |
| id | ✅ | integer | Equipment (server) ID |
| new_limit | ✅ | integer | New traffic limit in TB |
| token | ✅ | string | Authentication API-token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/traffic_add: invalid new_limit" }
```
eq/unified_server_search¶
Unified server search 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¶
Request for device reset (IPMI reset) for the specified server. If the request is non-synchronous, it returns a callback.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: unit_reset |
| id | ✅ | int | Equipment (server) ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "IPMI unit reset request failed: error_details" }
```
eq/unsuspend¶
Request to remove suspension (unsuspend) from the server. If the server was suspended by an administrator, the action will be executed immediately.
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 active and pending payment servers for the current user, synchronizing them with WHMCS data.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| token | ✅ | string | Authorization token |
| action | ❌ | string | Action (update_servers) |
| show_products |