Skip to main content
GET
/
subnet
List all managed subnets
curl --request GET \
  --url https://api.altostrat.io/eip/subnet \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "network": "198.51.100.0",
    "broadcast": "198.51.100.255",
    "prefix": 24,
    "size": 256,
    "used": 10
  }
]

Authorizations

Authorization
string
header
required

Enter the Bearer token obtained after authentication.

Response

A list of subnets.

id
string<uuid>

Unique identifier for the subnet.

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

network
string<ipv4>

The network address of the subnet.

Example:

"198.51.100.0"

broadcast
string<ipv4>

The broadcast address of the subnet.

Example:

"198.51.100.255"

prefix
integer

The CIDR prefix length for the subnet.

Example:

24

size
integer

Total number of IP addresses in the subnet.

Example:

256

used
integer

Number of IP addresses currently assigned within this subnet.

Example:

10

I