Skip to main content
GET
/
{site}
/
subnets
Retrieve subnets from latest backup
curl --request GET \
  --url https://api.altostrat.io/backups/{site}/subnets \
  --header 'Authorization: Bearer <token>'
[
  {
    "route": "192.168.12.1/24",
    "type": "rfc1918",
    "interface": "bridge1"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site
string
required

Site ID to retrieve subnets from the latest backup

Response

Array of discovered subnets

route
string

Detected subnet prefix

Example:

"192.168.12.1/24"

type
enum<string>
Available options:
rfc1918,
public
Example:

"rfc1918"

interface
string

Router interface name for this subnet

Example:

"bridge1"

I