List IP addresses
GET
/api/ip-addresses
const url = 'http://localhost:3000/api/ip-addresses?page=1&sort=address&order=asc';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/ip-addresses?page=1&sort=address&order=asc' \ --cookie session=<session>Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” page
integer
Page number (1-based)
pageSize
integer
Rows per page. Omitted = full table, capped at 10000.
search
string
Case-insensitive substring match across address, DNS name, description, role
sort
string
Sort column
order
string
Sort direction
Responses
Section titled “ Responses ”Success
Media type application/json
object
data
required
Array<object>
object
id
required
string format: uuid
address
required
string
vrfId
string format: uuid
deviceId
string format: uuid
interfaceId
Device_ports.id this address is bound to. Setting it on create/update re-homes deviceId to that port’s device so the address shows under both the interface and the device. ON DELETE SET NULL.
string format: uuid
interfaceName
Join-only: the interface name, returned by GET /api/devices/{id}/ips.
string
status
required
string
role
E.g. loopback, mgmt, peering, vip, secondary
string
family
integer
dnsName
string
description
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
total
required
integer
page
required
integer
pageSize
required
integer
hasMore
required
boolean
Example
{ "data": [ { "address": "10.0.0.10/24", "status": "active", "family": 4 } ]}Invalid filter param
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}