{"openapi":"3.1.0","info":{"title":"6IX VPN Infra Admin","version":"0.1.0"},"paths":{"/api/login":{"post":{"summary":"Login","operationId":"login_api_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/logout":{"post":{"summary":"Logout","operationId":"logout_api_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/overview":{"get":{"summary":"Overview","operationId":"overview_api_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/metrics/{uuid}":{"get":{"summary":"Metrics","operationId":"metrics_api_metrics__uuid__get","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{uuid}/creds":{"post":{"summary":"Set Creds","operationId":"set_creds_api_servers__uuid__creds_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}/geocheck":{"post":{"summary":"Node Geocheck","description":"Panel-native check: does this node's outbound IP actually geolocate to\nthe country we claim? Returns an SVG report (base64) straight from the panel.","operationId":"node_geocheck_api_nodes__uuid__geocheck_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}/connections":{"post":{"summary":"Node Connections","description":"Panel-native: who is connected to this node right now.","operationId":"node_connections_api_nodes__uuid__connections_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}/enable":{"post":{"summary":"Node Enable","operationId":"node_enable_api_nodes__uuid__enable_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}/disable":{"post":{"summary":"Node Disable","operationId":"node_disable_api_nodes__uuid__disable_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}/restart":{"post":{"summary":"Node Restart","operationId":"node_restart_api_nodes__uuid__restart_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}":{"delete":{"summary":"Node Delete","operationId":"node_delete_api_nodes__uuid__delete","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{uuid}/exec":{"post":{"summary":"Server Exec","operationId":"server_exec_api_servers__uuid__exec_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{uuid}/power/{action}":{"post":{"summary":"Server Power","operationId":"server_power_api_servers__uuid__power__action__post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/add":{"post":{"summary":"Node Add","operationId":"node_add_api_nodes_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNodeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/create-yandex":{"post":{"summary":"Node Create Yandex","description":"Полный самосервис: создаёт VM в Yandex Cloud, настраивает ноду\n(provision_node - Docker + remnanode), регистрирует в панели. ПЛАТНО -\nUI обязан показать это перед вызовом, эта ручка сама не спрашивает\nвторой раз (подтверждение - на стороне кнопки в интерфейсе).","operationId":"node_create_yandex_api_nodes_create_yandex_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateYandexNodeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{uuid}/replace":{"post":{"summary":"Node Replace","operationId":"node_replace_api_nodes__uuid__replace_post","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceNodeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users":{"get":{"summary":"Users","operationId":"users_api_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/subscriptions":{"get":{"summary":"Subscriptions","operationId":"subscriptions_api_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/revenue":{"get":{"summary":"Revenue","operationId":"revenue_api_revenue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/timers":{"get":{"summary":"Timers","description":"Здоровье критичных systemd-таймеров ops1 (снимок раз в 5 мин, см.\n/opt/monitor/timers_status.py — контейнер не видит хостовый systemd/dbus\nнапрямую). Список: чем список короче, тем реже эта ручка врёт.","operationId":"timers_api_timers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/backup-status":{"get":{"summary":"Backup Status","description":"Свежесть двух потоков DR-бэкапов (Yandex Object Storage), снимок раз в\n30 мин — см. /opt/monitor/backup_status.py. Контейнер сам в Yandex не\nходит и credentials не видит, читает только этот JSON.","operationId":"backup_status_api_backup_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/expiry":{"get":{"summary":"Expiry","description":"Аренда серверов (/opt/monitoring/expiry.json) — сколько дней осталось,\nотсортировано по срочности. retired-записи (уже мертвы/убраны) — в конце,\nбез дней-до-истечения (сортировать по ним нечего).","operationId":"expiry_api_expiry_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/whitelist/defaults":{"get":{"summary":"Whitelist Defaults","operationId":"whitelist_defaults_api_whitelist_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/whitelist/jobs":{"get":{"summary":"Whitelist Jobs","operationId":"whitelist_jobs_api_whitelist_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Whitelist Create","operationId":"whitelist_create_api_whitelist_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhitelistBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whitelist/jobs/{job_id}":{"get":{"summary":"Whitelist Job","operationId":"whitelist_job_api_whitelist_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AddNodeBody":{"properties":{"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"port":{"type":"integer","title":"Port","default":2222},"country_code":{"type":"string","title":"Country Code","default":"XX"},"ssh_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh User"},"ssh_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Password"},"ssh_port":{"type":"integer","title":"Ssh Port","default":22},"protocols":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Protocols"}},"type":"object","required":["name","address"],"title":"AddNodeBody"},"CreateYandexNodeBody":{"properties":{"name":{"type":"string","title":"Name"},"country_code":{"type":"string","title":"Country Code","default":"RU"},"zone":{"type":"string","title":"Zone","default":"ru-central1-a"},"platform_id":{"type":"string","title":"Platform Id","default":"standard-v3"},"cores":{"type":"integer","title":"Cores","default":2},"memory_gb":{"type":"integer","title":"Memory Gb","default":2},"disk_gb":{"type":"integer","title":"Disk Gb","default":20},"protocols":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Protocols"}},"type":"object","required":["name"],"title":"CreateYandexNodeBody"},"CredsBody":{"properties":{"ssh_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Host"},"ssh_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh User"},"ssh_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Password"},"ssh_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ssh Port"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"CredsBody"},"ExecBody":{"properties":{"command":{"type":"string","title":"Command"}},"type":"object","required":["command"],"title":"ExecBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginBody":{"properties":{"username":{"type":"string","title":"Username","default":""},"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"LoginBody"},"ReplaceNodeBody":{"properties":{"new_address":{"type":"string","title":"New Address"},"new_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Name"},"ssh_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh User"},"ssh_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Password"},"ssh_port":{"type":"integer","title":"Ssh Port","default":22}},"type":"object","required":["new_address"],"title":"ReplaceNodeBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WhitelistBody":{"properties":{"subdomain":{"type":"string","title":"Subdomain"},"path":{"type":"string","title":"Path"},"port":{"type":"integer","title":"Port"},"upstream":{"type":"string","title":"Upstream","default":"auto"},"remark":{"type":"string","title":"Remark"}},"type":"object","required":["subdomain","path","port","remark"],"title":"WhitelistBody"}}}}