GET /api/v1/instances/{instance_id}
Read Instance
Авторизация: нужен Authorization: Bearer <token>
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/instances/<instance_id>" \ -H "Authorization: Bearer <token>"Ответ 200
Заголовок раздела «Ответ 200»В контракте нет примера для этого ответа; схема: HugoInstanceRead. Поля — в интерактивном обозревателе.
Возвращает
Заголовок раздела «Возвращает»HugoInstanceRead — Successful Response
| Поле | Тип | Описание |
|---|---|---|
attached_sc | integer | null (opt.) | |
backend | "gcs" | "local-fs" | "wp" (opt.) | |
base_url | string | null (opt.) | |
caption | string | null (opt.) | |
createtime | string | |
gcs_bucket | string | null (opt.) | |
guid | integer | |
hostname | string | null (opt.) | |
instance_id | string | |
is_active | boolean (opt.) | |
last_build_at | string | null | |
last_publish_at | string | null | |
owner | integer | null (opt.) | |
posts_count | integer | |
registry | object (opt.) | |
rsid | integer | |
template_dir | string | null (opt.) | |
theme_repo | string | null (opt.) | |
theme_sha | string | null (opt.) | |
tier | "prod" | "dev" | "test" | "staging" (opt.) | |
updatedby | integer | null (opt.) | |
updatetime | string | |
vps_ip | string | null (opt.) | |
vps_port | integer | null (opt.) | |
warmup_state | "cold" | "warming" | "warm" |
Параметры
Заголовок раздела «Параметры»| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
|---|---|---|---|---|---|---|
instance_id | path | да | string | — | — |
| Код | Смысл | Тело |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.