List network interfaces
GET/api/node/:hostname/network/interface
List all network interfaces on the target node.
Request
Path Parameters
Possible values: non-empty
Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).
Responses
- 200
- 400
- 401
- 403
- 500
List of network interfaces.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The job ID used to process this request.
results
object[]
required
Hostname of the agent that reported this entry.
Possible values: [ok, failed, skipped]
The status of the operation for this host.
interfaces
object[]
List of network interfaces on this host.
Interface name.
Primary IPv4 address.
Primary IPv6 address.
Hardware MAC address.
Address family (inet, inet6, dual).
IP addresses assigned to the interface (CIDR).
Configured MAC address override.
Maximum transmission unit.
Operational state of the interface.
Whether DHCPv4 is enabled.
Whether DHCPv6 is enabled.
IPv4 gateway address.
IPv6 gateway address.
Whether Wake-on-LAN is enabled.
Whether this is the primary (default route) interface.
Error message if the agent failed.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"results": [
{
"hostname": "string",
"status": "ok",
"interfaces": [
{
"name": "eth0",
"ipv4": "192.168.1.10",
"ipv6": "fd00::5",
"mac": "00:1a:2b:3c:4d:5e",
"family": "dual",
"addresses": [
"192.168.1.10/24"
],
"mac_address": "02:42:ac:11:00:02",
"mtu": 1500,
"state": "up",
"dhcp4": true,
"dhcp6": true,
"gateway4": "192.168.1.1",
"gateway6": "string",
"wakeonlan": true,
"primary": true
}
],
"error": "string"
}
]
}
Bad request - validation error.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error listing network interfaces.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}