Vai al contenuto principale
GET
/
sites
/
{siteId}
Recupera un Site
curl --request GET \
  --url https://api.altostrat.io/sites/{siteId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a",
  "pid": "site_2m3h5n7k9j8g7f6e5d4c3b2a1",
  "name": "Router Ufficio Principale",
  "address": "Sydney, Nuovo Galles del Sud, Australia",
  "has_pulse": true,
  "uptime": "3 giorni, 14 ore, 5 minuti",
  "architecture_name": "arm",
  "hardware_hash": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
  "serial_number": "HFB098M0M2P",
  "software_version": "7.15.1",
  "software_id": "U0B1-15HF",
  "identity": "Router-Sede",
  "last_seen_from": "203.0.113.54",
  "model": "RB5009UG+S+",
  "board_name": "RB5009",
  "routerboard": true,
  "last_seen": "2 minuti fa",
  "last_seen_at": "2025-10-29T11:45:56Z",
  "created_at": "2025-10-20T08:30:00Z",
  "updated_at": "2025-10-29T11:47:50Z",
  "deleted_at": null,
  "scheduler_removal": "tra 23 ore"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

siteId
string<uuid>
required

L'UUID del site da recuperare.

Response

L'oggetto site richiesto.

Rappresenta il gemello digitale di un dispositivo fisico MikroTik.

id
string<uuid>

L'identificatore univoco (UUID) per il site.

Example:

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

pid
string

Un identificatore univoco con prefisso, ordinabile per data, adatto alla visualizzazione all'utente.

Example:

"site_2m3h5n7k9j8g7f6e5d4c3b2a1"

name
string

Un nome definito dall'utente per il site.

Example:

"Router Ufficio Principale"

address
string | null

L'indirizzo fisico geolocalizzato del site.

Example:

"Sydney, Nuovo Galles del Sud, Australia"

has_pulse
boolean

Indica se il site è attualmente online e sta inviando heartbeat. true se online, false se offline.

Example:

true

uptime
string | null

Una rappresentazione leggibile dell'uptime attuale del dispositivo.

Example:

"3 giorni, 14 ore, 5 minuti"

architecture_name
string | null

L'architettura della CPU dell'hardware del dispositivo.

Example:

"arm"

hardware_hash
string | null

Un hash univoco generato dagli identificatori hardware del dispositivo.

Example:

"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"

serial_number
string | null

Il numero di serie del dispositivo MikroTik.

Example:

"HFB098M0M2P"

software_version
string | null

La versione del software RouterOS in esecuzione sul dispositivo.

Example:

"7.15.1"

software_id
string | null

L'ID software fornito da RouterOS.

Example:

"U0B1-15HF"

identity
string | null

Il nome 'identity' configurato sul dispositivo MikroTik stesso.

Example:

"Router-Sede"

last_seen_from
string<ipv4> | null

L'indirizzo IP pubblico da cui è stato ricevuto l'ultimo heartbeat.

Example:

"203.0.113.54"

model
string | null

Il modello specifico del dispositivo MikroTik.

Example:

"RB5009UG+S+"

board_name
string | null

Il nome della scheda del dispositivo MikroTik.

Example:

"RB5009"

routerboard
boolean | null

Indica se il dispositivo è un prodotto RouterBOARD originale.

Example:

true

last_seen
string | null

Una stringa leggibile che indica quanto tempo fa è stato ricevuto l'ultimo heartbeat.

Example:

"2 minuti fa"

last_seen_at
string<date-time> | null

Il timestamp specifico (ISO 8601) dell'ultimo heartbeat.

Example:

"2025-10-29T11:45:56Z"

created_at
string<date-time>

Il timestamp (ISO 8601) di creazione del site.

Example:

"2025-10-20T08:30:00Z"

updated_at
string<date-time>

Il timestamp (ISO 8601) dell'ultimo aggiornamento del site.

Example:

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

deleted_at
string<date-time> | null

Il timestamp (ISO 8601) in cui il site è stato contrassegnato per l'eliminazione.

Example:

null

scheduler_removal
string | null

Una stringa leggibile che indica quando verrà rimosso lo scheduler di bootstrap del dispositivo.

Example:

"tra 23 ore"