presets.php¶
Preset management module for handling server configurations, including listing, searching, and retrieving group information.
API Methods¶
| Method | Action | Description |
|---|---|---|
groups | get groups | Returns a list of preset groups. |
info | get info | Returns a list of presets with specified currencies. |
list | get list | Returns a list of available presets filtered by location. |
search | get search results | Searches for appropriate servers matching a specific preset name. |
show | get show details | Returns detailed information for a specific preset. |
presets/groups¶
Returns a list of preset groups.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: groups |
Success response example
presets/info¶
Returns a list of presets with specified currencies.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: info |
| currencies | ❌ | string | List of currencies to display. Allowed values: EUR. |
Success response example
presets/list¶
Returns a list of available presets filtered by location.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list |
| token | ✅ | string | API-токен аутентификации |
| location | ❌ | string | Location identifier or zone to filter presets. |
Request example
Success response example
presets/search¶
Searches for appropriate servers matching a specific preset name.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: search |
| token | ✅ | string | API-токен аутентификации |
| name | ✅ | string | Preset name to search for servers. |
| scope | ❌ | string | Scope of servers. Allowed values: free |
| location | ❌ | string | Location identifier for the search. |
Request example
Success response example
presets/show¶
Returns detailed information for a specific preset.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: show |
| token | ✅ | string | API-токен аутентификации |
| id | ❌ | integer | The unique identifier of the preset to be shown. |
| name | ❌ | string | The name of the preset to search for. |
| limit | ❌ | integer | Maximum number of results to return. |
| web_ip | ❌ | string | The IP address of the web server. |
Request example