Vai al contenuto principale
GET
/
sites
/
recent
Elenca Site Recenti
curl --request GET \
  --url https://api.altostrat.io/sites/recent \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a",
    "pid": "site_2m3h5n7k9j8g7f6e5d4c3b2a1",
    "name": "Router Ufficio Principale",
    "model": "CCR2004-1G-12S+2XS",
    "version": "7.15.1",
    "ip_address": "203.0.113.54",
    "online": true,
    "last_seen": "adesso",
    "accessed_at": "2025-10-29T11:47:50Z"
  }
]

Authorizations

Authorization
string
header
required

Autentica le richieste fornendo un JSON Web Token (JWT) nell'header Authorization. Esempio: Authorization: Bearer <TUO_JWT>

Response

200 - application/json

Un elenco di site a cui si è avuto accesso di recente.

id
string<uuid>

L'identificatore univoco (UUID) per il site.

Example:

"9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a"

pid
string | null

Un identificatore univoco con prefisso, ordinabile per data, per il site.

Example:

"site_2m3h5n7k9j8g7f6e5d4c3b2a1"

name
string | null

Il nome definito dall'utente per il site.

Example:

"Router Ufficio Principale"

model
string | null

Il modello del dispositivo MikroTik.

Example:

"CCR2004-1G-12S+2XS"

version
string | null

La versione del software RouterOS.

Example:

"7.15.1"

ip_address
string<ipv4> | null

L'ultimo indirizzo IP pubblico conosciuto del dispositivo.

Example:

"203.0.113.54"

online
boolean

Indica se il site è attualmente online.

Example:

true

last_seen
string | null

Una stringa leggibile che indica quando è stato ricevuto l'ultimo heartbeat.

Example:

"adesso"

accessed_at
string<date-time>

Il timestamp dell'ultimo accesso dell'utente a questo site.

Example:

"2025-10-29T11:47:50Z"