A node's VLANs with their names, states and gateways (ADR-257).
const url = 'https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/vlans';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/vlans \ --header 'Authorization: Bearer <token>'View, like the interface list it sits beside. Skeleton mode answers an empty list: the VLANs
are PostgreSQL-only, so “none known” is the truthful answer.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Node id
Responses
Section titled “Responses”The node’s VLANs by ID: the ones its VLAN table defines and the ones its ports use. Empty until the hourly VLAN walk (or, for Meraki, the network’s LAN read) has run, and in skeleton mode
One VLAN of a node (ADR-257).
object
false: a port uses this VLAN and the device’s own VLAN table does not list it — a
configuration gap. null when that cannot be judged (names not read, or a Meraki switch,
whose own VLANs need no definition on the MX).
Where the VLAN is routed, when Yagra can tell.
object
The gateway’s addresses on this VLAN. Empty when the address walk has not run yet.
One IP address configured on an interface, as the device reports it (ADR-157).
Every address the device lists is here, in a fixed order (IPv4 before IPv6, numeric within each), so a secondary is as visible as the primary — SNMP does not say which is which.
object
The address itself, in its usual text form; never narrowed to IPv4.
Prefix length in bits (24 for a /24). null when the device gave a mask or prefix that
could not be decoded — the address is still real, only its network is unknown.
The interface’s name (Vl30, Vlanif30). null for an MX, which has no interface row.
The interface’s ifIndex. null for an MX.
The node that routes it, when that is another node — a Meraki switch’s MX. null when
it is this node.
The name the device (or the Meraki Dashboard) gives it, verbatim. null when the names were
not read; an empty string when the device gives this VLAN none.
The VLAN’s subnet as the Meraki Dashboard writes it (10.1.0.0/24). null elsewhere.
The VLAN ID, 1-4094.
Example
[ { "state": "active" }]No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks View
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}