[API] Виртуальный хостинг
Здесь указаны все возможные на данный момент запросы для обращения с виртуальным хостингом.
Вывод всех WEB на аккаунте
GET
https://api.lethost.co/web
Headers
Name
Type
Description
API-Key*
string
API ключ
{
"data": [
{
"id": web_id,
"web-status": web_status,
"server": server_name,
"tarif": tarif_name,
"ip": location_ip,
"url-panel": url_panel
}],
"status": "success"
}
Вывод данных указанного WEB
GET
https://api.lethost.co/web/get/{id}
Path Parameters
Name
Type
Description
{id}*
int
ID виртуального хостинга
Headers
Name
Type
Description
API-Key*
string
API ключ
{
"id": web_id,
"web-status": web_status,
"server": server_name,
"tarif": tarif_name,
"price": price,
"domains": max_domains,
"storage": storage,
"ip": location_ip,
"url-panel": url_panel,
"username": username,
"password": password,
"date-end": "2000-12-31 23:59:59",
"status": "success"
}
Вывод всех доступных тарифов для заказа
GET
https://api.lethost.co/web/products
{
"data": [
{
"id": tarif_id,
"name": tarif_name,
"server": server_name,
"price": price,
"domains": maxwebsites,
"storage": storage
}],
"status": "success"
}
Заказ виртуального хостинга
POST
https://api.lethost.co/web/order
Query Parameters
Name
Type
Description
tarif-id*
int
ID тарифа
days*
int
Дни аренды (15, 30, 90, 180, 360)
promo-code
string
Промокод
Headers
Name
Type
Description
API-Key*
string
API ключ
{
"id": web_id,
"web-status": web_status,
"tarif": tarif_name,
"server": server_name,
"price": price,
"date-end": "2000-12-31 23:59:59",
"status": "success"
}
Продление виртуального хостинга
POST
https://api.lethost.co/web/extend/{id}
Path Parameters
Name
Type
Description
{id}*
int
ID виртуального хостинга
Query Parameters
Name
Type
Description
days*
int
Дни аренды (15, 30, 90, 180, 360)
promo-code
string
Промокод
Headers
Name
Type
Description
API-Key*
string
API ключ
{
"id": web_id,
"web-status": web_status,
"tarif": tarif_name,
"price": price,
"extended-at": "2000-11-31 23:59:59",
"extended-until": "2000-12-31 23:59:59",
"status": "success"
}
Смена пароля от WEB
PUT
https://api.lethost.co/web/password/{id}
Path Parameters
Name
Type
Description
{id}*
int
ID виртуального хостинга
Query Parameters
Name
Type
Description
password*
string
Новый пароль
Headers
Name
Type
Description
API-Key*
string
API ключ
{
"id": web_id,
"success": "Password has been successfully changed",
"status": "success"
}
Last updated