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 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 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, appropriate permissions are required. |
announceip | announceip | Performs IP subnet announcement for the specified server with support for ASN and routing parameters. |
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 server (id). |
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) in UEFI or Legacy mode. |
check_backup_lock | check_backup_lock | Checks if the backup process is locked for the specified server. Returns a callback key for asynchronous operation. |
clear_pxe | clear_pxe | Clears the PXE configuration for the specified host. If the full parameter is 1, the entire configuration is deleted; otherwise, only the platform is cleared. |
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 configuration for OS reinstallation via PXE. Supports configuring hostname, SSH keys, and post-install scripts. |
delete_backup | delete_backup | Deletes the specified server backup. Requires execution through an asynchronous queue. |
deploy | deploy | Starts the deployment process for a specific server by its ID or selects a suitable server from those available for the specified preset in the selected location. |
get_ipmi | get_ipmi | Returns the IP address and IPMI interface model for the specified server. May contain multiple interfaces. |
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 IP subnet restrictions and user access rights. |
groups | groups | Returns the list of groups for a specific server. |
hard_off | hard_off | Sends a request for a forced server shutdown (Hard Stop). If the server is in OpenStack, a reboot is performed. |
history | history | Returns the server event history. |
list | list | Returns a list of available servers and equipment with support for advanced search 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 deployment process of a new server from a preset or performs a reinstallation (reinstall) of an existing server with OS and additional software selection. |
reboot | reboot | Sends a request to reboot the specified equipment via IPMI or system tools. |
reinstall | reinstall | Starts the server reinstallation preparation process, creating a key to execute the operation. |
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. The operation is asynchronous and returns a callback to track status. |
restore_backup | restore_backup | Starts the server restoration process from the specified backup. The operation is asynchronous. |
search | search | Returns a list of available or active equipment based on various filters (group, location, status, IP, MAC, 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 configuration (hwconfig), current status, IP addresses, interfaces, and IPMI data. |
status | status | Returns the current server status, state data, and associated tags. |
suspend | suspend | Requests suspension (suspend) or unsuspension (unsuspend) of a VPS/server. Execution requires access rights and, in some cases, an administrator lock check. |
unified_server_search | unified_server_search | Unified server search by query. |
unit_reset | unit_reset | Requests a reset of the server's IPMI controller. If the operation requires time, a callback is returned to track status. |
unsuspend | unsuspend | Unsuspends a server if it was temporarily suspended by an administrator. |
update_servers | update_servers | Updates the list of active and pending payment servers for the current user, synchronizing data with WHMCS billing. |
eq/abort_reinstall¶
Interrupts 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 |
| id | ✅ | int | Server ID |
| token | ❌ | string | Authorization token |
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 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 | ✅ | integer | Server ID |
| admin_user | ❌ | string | Administrator name (if not specified, a random one is generated) |
| 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¶
Creates a new IPMI user for the server. If the user is an administrator, appropriate permissions are required.
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 | Administrator name (if applicable) |
| admin_pass | ❌ | string | Administrator password |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Add IPMI user request failed" }
```
eq/announceip¶
Performs IP subnet announcement for the specified server with support for ASN and routing parameters.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | ✅ | integer | Equipment (server) ID |
| subnet | ❌ | string | IP subnet to announce |
| server | ❌ | string | Server name |
| subnetaddr | ❌ | string | Address in the subnet |
| subnetaddrmask | ❌ | string | Subnet address mask |
| asn | ❌ | string|boolean | Autonomous System number (can be 'own') |
| ownasn | ❌ | string|boolean | Use own ASN |
| annonce | ❌ | string|boolean | Announcement flag |
| return | ❌ | string|boolean | Return result |
| route | ❌ | string|boolean | Route parameter |
| cmnt | ❌ | string | Announcement comment |
| checkboxes | ❌ | boolean | Data validity confirmation (ASRegistered, RKPIValid, SubNetNotSpamhaus, DataIsCorrect) |
| token | ✅ | string | Authentication API token |
Example Request
Failure response
``` { "code": -2, "message": "Authentication required or invalid token" }
```
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": -1, "message": "EQ/backup_get_schedule: invalid server id" }
```
eq/backup_list¶
Returns a list of available backups for the specified server (id).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: backup_list |
| token | ❌ | string | Authorization token |
| id | ✅ | integer | Server ID |
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|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: backup_save_schedule |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Equipment (server) ID |
| backup_schedule | ❌ | array | Array with backup schedule settings. Contains keys: days (0/1 array), time (string HH:mm), timezone (string) |
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[0][days][]=1" \
--data "backup_schedule[0][days][]=2" \
--data "backup_schedule[0][time]=03:00" \
--data "backup_schedule[0][timezone]=Europe/London"
Failure response
``` { "code": -2, "message": "EQ: action required" }
```
eq/boot_dev¶
Requests a server reboot to boot from the specified media (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 | Boot media type (PXE or disk) |
| 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: invalid server id" }
```
eq/check_backup_lock¶
Checks if the backup process is locked for the specified server. Returns a callback key for asynchronous operation.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: check_backup_lock |
| id | ✅ | integer | Server ID |
| token | ❌ | string | Authorization token |
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, the entire configuration is deleted; otherwise, only the platform is cleared.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: clear_pxe |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
| hostname | ❌ | string | Hostname to clear |
Example Request
Failure response
``` { "code": -1, "message": "Failed to submit clear PXE config request" }
```
eq/console¶
Requests access to the server management console (VNC/NoVNC).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: console |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "Console request failed" }
```
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": "Operation execution error" }
```
eq/create_pxe¶
Requests the creation of a configuration for OS reinstallation via PXE. Supports configuring hostname, SSH keys, and post-install scripts.
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 public key |
| post_install_script | ❌ | string | Post-installation script |
| post_install_callback | ❌ | string | Callback URL for notification |
| os_name | ❌ | string | OS name (alias) |
| disk_mirror | ❌ | int | Disk mirroring |
| activate_windows | ❌ | int | Windows activation (0/1) |
| uefi | ❌ | int | UEFI boot mode (0/-1/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 | ❌ | int | No LVM (0/1) |
| custom_domain | ❌ | string | Custom domain |
| manual_choice_dsk | ❌ | int | manual_choice_dsk parameter (detected in code) |
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 through an asynchronous queue.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: delete_backup |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Equipment (server) ID |
| name | ✅ | string | Backup name to delete |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Backup deletion error" }
```
eq/deploy¶
Starts the deployment process for a specific server by its ID or selects a suitable server from those available for the specified preset in the selected location.
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, a server is selected from the preset. |
| preset | ❌ | string | Preset name or ID (if id is not specified) |
| location | ✅ | integer | Location/datacenter ID |
| hostname | ❌ | string | Desired hostname |
| root_pass | ✅ | string | Root password (minimum 8 characters for non-own OS) |
| os_id | ❌ | integer | Operating system ID |
| ssh_key | ❌ | string | SSH public key |
| post_install_script | ❌ | string | Post-installation script |
| post_install_callback | ❌ | string | Callback URL for notification |
| deploy_data | ✅ | string | Billing data (invoice ID or email) |
| deploy_options | ✅ | string | Billing/location parameters |
| deploy_period | ❌ | string | Payment period (hourly, quarterly, semi-annually, annually) |
| deploy_notify | ❌ | integer | Notify client (-1 - no, 0 - yes) |
| deploy_price | ❌ | string | Deployment price (for debugging/admins) |
| deploy_comment | ❌ | string | Deployment comment |
| imitate_deploy | ❌ | integer | Simulation mode (dry run) = 1 |
| imitate_error | ❌ | integer | Error simulation |
| own_os | ❌ | integer | Use own OS (1 - yes) |
| activate_windows | ❌ | integer | Windows activation (0/1) |
| custom_domain | ❌ | string | Custom domain |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Deploy init for server $id failed: error message" }
```
eq/get_ipmi¶
Returns the IP address and IPMI interface model for the specified server. May contain multiple interfaces.
HTTP-method: 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": -1, "message": "No IPMI interfaces found" }
```
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 | ✅ | integer | Server ID |
| token | ❌ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "EQ/get_traffic: invalid server id" }
```
eq/get_upgrade_key¶
Returns the upgrade key linked to an invoice via equipment 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 upgrade key |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Request error" }
```
eq/getserversforannounce¶
Returns a list of available servers (status rent or power_off) that match IP subnet restrictions and user access rights.
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: getserversforannounce |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "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 |
| id | ✅ | integer | Server ID |
Example Request
Failure response
``` { "code": -1, "message": "EQ/groups: invalid server id" }
```
eq/hard_off¶
Sends a request for a forced server shutdown (Hard Stop). If the server is in OpenStack, a reboot is performed.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: hard_off |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
Example Request
Example of a successful response
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 servers and equipment with support for advanced search 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[] | Filter by server IDs. Accepts multiple values: id[]=1&id[]=2 |
| group | ❌ | string[] | Filter by equipment groups. Accepts multiple values: group[]=1CPU&group[]=2CPU |
| location | ❌ | string[] | Filter by locations (e.g., US, NL). Accepts multiple values: location[]=US&location[]=NL |
| status | ❌ | string[] | Filter by statuses. Accepts multiple values: status[]=rent&status[]=power_off |
| type | ❌ | string[] | Equipment type (server, switch, etc.). Accepts multiple values: type[]=server&type[]=switch |
| ip | ❌ | string[] | Filter by IP address. Accepts multiple values: ip[]=1.2.3.4&ip[]=5.6.7.8 |
| ❌ | string[] | Filter by owner's email. Accepts multiple values: email[][email protected]&email[][email protected] | |
| full | ❌ | boolean | Return full information (for administrators) |
| mac | ❌ | string[] | Filter by MAC address |
| account_id | ❌ | int[] | Filter by Account ID (billing identity) |
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 deployment process of a new server from a preset or performs a reinstallation (reinstall) 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 | ❌ | integer | 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 | ❌ | integer | Additional software ID |
| ssh_key | ❌ | string | SSH public key |
| post_install_script | ❌ | string | Post-installation script |
| post_install_callback | ❌ | string | Callback URL for installation completion |
| hostname | ❌ | string | Hostname |
| vlan | ❌ | integer | Private VLAN ID |
| root_size | ❌ | integer | Root partition size (GB) |
| ipv4_amount | ❌ | integer | Number of IPv4 addresses |
| custom_domain | ❌ | string | Custom domain |
| traffic_plan | ❌ | integer | Traffic plan ID |
| deploy_period | ❌ | string | Payment period (hourly, quarterly, semi-annually, annually) |
| deploy_notify | ❌ | integer | Deployment notification (-1 - off) |
| deploy_options | ❌ | string | Admin deployment parameters (for admin edition) |
| deploy_data | ❌ | string | Data for WHMCS/Billing |
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 oVirt. Returns a callback key for asynchronous execution.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: ovirt_novnc |
| id | ✅ | integer | Server ID |
| token | ❌ | string | Authorization token |
| white_ip | ❌ | string | White IP for console 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 specified equipment via IPMI or system tools.
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¶
Starts the server reinstallation preparation process, creating a key to execute the operation.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| token | ✅ | string | Authorization token |
| id | ✅ | int | Server ID |
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 |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "action: error message" }
```
eq/request_backup_link¶
Requests a temporary link to download a server backup. The operation is asynchronous and returns a callback to track status.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: request_backup_link |
| id | ✅ | int | Server ID |
| name | ❌ | string | Backup name (if applicable) |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Request failed" }
```
eq/restore_backup¶
Starts the server restoration process 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": "Request failed: error_message" }
```
eq/search¶
Returns a list of available or active equipment based on various filters (group, location, status, IP, MAC, etc.).
HTTP-method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| group[] | ❌ | array<string> | Equipment groups (comma-separated) |
| dc[] | ❌ | array<int> | Datacenter ID |
| location[] | ❌ | array<string> | Location code (US, 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) |
| ip[] | ❌ | array<string> | Search by IP address |
| mac[] | ❌ | array<string> | Search by MAC address |
| account_id[] | ❌ | array<int> | Account ID in billing |
| billing[] | ❌ | array<string> | Billing region (en/us) |
| email[] | ❌ | array<string> | Search by client email |
| id[] | ❌ | array<int> | Equipment ID |
| 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|GET
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 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 configuration (hwconfig), current status, IP addresses, interfaces, and IPMI data.
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_off",
"owner": "[email protected]",
"type": "Server",
"hostname": "srv-01",
"ipmi": {
"model": "",
"interfaces": []
},
"os": {},
"IP": [],
"interfaces": [],
"tags": [],
"preset": null,
"commitment": ""
},
"hardware": {},
"groups": {
"groups": []
},
"licenses": [],
"reinstall": "",
"location": {
"rack_id": 123,
"dc_name": "Amsterdam",
"dc_location": -1,
"location_id": -1
}
}
Failure response
``` { "code": -1, "message": "Nothing found for 123" }
```
eq/status¶
Returns the current server status, state data, and associated tags.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: status |
| id | ✅ | int | Equipment ID |
| token | ❌ | string | Authorization token |
Example Request
Failure response
``` { "code": -1, "message": "EQ/status: invalid server id" }
```
eq/status_check¶
Returns the current equipment status (available for call without authorization).
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: status_check |
| - | - | - | No other parameters |
Example of a successful response
Failure response
``` { "code": -1, "message": "Request execution error" }
```
eq/suspend¶
Requests suspension (suspend) or unsuspension (unsuspend) of a VPS/server. Execution requires access rights and, in some cases, an administrator lock check.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Action: suspend or unsuspend |
| token | ✅ | string | Authorization token |
| id | ✅ | integer | Server ID |
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 | ✅ | int | Server ID |
| new_limit | ✅ | int | New traffic limit in TB |
| token | ✅ | string | Authorization 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¶
Requests a reset of the server's IPMI controller. If the operation requires time, a callback is returned to track status.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: unit_reset |
| id | ✅ | int | 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¶
Unsuspends a server if it was temporarily suspended by an administrator.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: unsuspend |
| id | ✅ | int | Server ID |
| token | ✅ | string | Authorization token |
Example Request
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 data with WHMCS billing.
HTTP-method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: update_servers |
| token | ✅ | string | Authorization token |
| show_products | ❌ | int | Show products flag (1 - show) |
| load_servers_only | ❌ | string | Load only servers (true/false) |
Example Request
``` curl -s "https://invapi.hostkey.com/eq.php" -X POST \ --