Pular para o conteúdo principal
POST
/
v1
/
failover
/
{site_id}
/
gateways
Buscar Gateways Elegíveis
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

Insira seu JWT no formato: Bearer <token>

Path Parameters

site_id
string<uuid>
required

O identificador único para o site.

Example:

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

Body

application/json
interface
string
required

O nome da interface no roteador a ser consultada.

Example:

"ether1-wan"

Response

Uma lista de potenciais endereços IP de gateway para a interface.

gateway
string<ipv4>

Um endereço IP de gateway potencial.

Example:

"198.51.100.1"

is_dhcp
boolean

Indica se o gateway provavelmente é atribuído via DHCP.

Example:

false