Device Ports Get
device_ports_getRetrieve a network device's port details by interface name, falling back to ID lookup when slashed names break through proxies; note rate fields may be absent.
Instructions
Get port info for a device by interface name.
Names like 'Te2/7' can fail by name behind proxies that reject or decode the encoded slash. The port is then looked up by ID instead; that response has the same shape but lacks the computed rate fields (in_rate, out_rate, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ifname | Yes | Interface name | |
| hostname | Yes | Device hostname. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||