Vai al contenuto principale
POST
/
v1
/
failover
/
{site_id}
/
gateways
Ricerca Gateway Idonei
curl --request POST \
  --url https://api.altostrat.io/v1/failover/{site_id}/gateways \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "interface": "ether1-wan"
}'
[
  {
    "gateway": "198.51.100.1",
    "is_dhcp": false
  }
]

Authorizations

Authorization
string
header
required

Inserisci il tuo JWT nel formato: Bearer <token>

Path Parameters

site_id
string<uuid>
required

L'identificatore univoco per il sito.

Example:

"9c69345c-8d39-4786-9f17-8153c988c89a"

Body

application/json
interface
string
required

Il nome dell'interfaccia sul router da interrogare.

Example:

"ether1-wan"

Response

Un elenco di potenziali indirizzi IP di gateway per l'interfaccia.

gateway
string<ipv4>

Un potenziale indirizzo IP di gateway.

Example:

"198.51.100.1"

is_dhcp
boolean

Indica se il gateway è probabilmente assegnato tramite DHCP.

Example:

false