Get network interface details
GET/api/node/:hostname/network/interface/:name
Get detailed configuration for a specific network interface on the target node.
Request
Path Parameters
Possible values: non-empty
Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).
Possible values: non-empty
Network interface name (e.g., eth0, ens33).
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Interface detail.
- application/json
- Schema
- Example (from schema)
Schema
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.
interface
object
Information about a network interface.
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",
"interface": {
"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
}
Interface not found.
- 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 getting network interface.
- 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
}