Ana içeriğe geç

Kisa omurlu (60s) NoVNC baglanti bilgisi

POST 

/services/:id/vnc-token

Browser tarafinda direkt wss://{host}:{port}/{websockify_path} URL'sine baglanmak icin kullanilir (port = Virtualizor enduser novnc proxy portu, ornn. 4083; HAM VNC/RFB portu DEGIL). API HIC bu websocket akisina PROXY YAPMAZ — sadece baglanti bilgisi (host/port/password/expires_at) doner.

Idempotency-Key KABUL ETMEZ. Header gelse bile IGNORE edilir (route'a IdempotencyMiddleware bagli degil). Sebep: her cagri Virtualizor'da YENI password uretir; cached eski password 60s sonra expire olur ve bayi "sifre gecersiz" hatasi alirdi.

Rate limit: Default bucket (60 req/dk) — high-frequency degil.

vps_id null: 422 service_not_provisioned.

Response:

  • expires_at: server'in hesapladigi UTC ISO8601 (now + 60s)
  • ttl_seconds: 60 (sabit, client kolay parse etsin)
  • password: short-lived NoVNC parolasi (LogMasker vnc_password alanini maskeler)
  • host/port/websockify_path: bayi browser'inin baglanacagi node bilgisi

Request

Responses

VNC baglanti bilgisi (60s gecerli)

Response Headers
    X-RateLimit-Limit

    Bu key icin tanimli dakika basi limit

    X-RateLimit-Remaining

    Mevcut window'da kalan istek sayisi

    X-RateLimit-Reset

    Sonraki window basinin Unix epoch'u (UTC saniye)