/mgmt/status/default/NetworkInterfaceStatus GET
Use the HTTP GET method with the
/mgmt/status/default/NetworkInterfaceStatus resource to request information about
the network interfaces on the appliance.
Resource URL
https://host:port/mgmt/status/default/NetworkInterfaceStatusWhere
port is 5554 by default.Request headers
The following header must be sent with the request:
- Authorization
- This header must be sent to perform authentication.
Request body format
None.
Security requirements
The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.
Response status codes
- 200
- Status information retrieved successfully.
- 400
- Invalid data provided.
- 401
- Not authenticated.
- 403
- Not authorized.
Response headers
- Content-Type
- This header is returned with a value of
application/json.
Response body format
The response is in JSON format. The response includes information about available network
interfaces. Each object contains the following fields:
- InterfaceIndex
- Index.
- InterfaceType
- String.
- Name
- String.
- AdminStatus
- String.
- OperStatus
- The current operational state of the interface.
- up The interface is operationally up.
- down The interface is operationally down.
- testing Some testing mode. After the test completes, the status changes as appropriate.
- unknown Cannot determine the operational state of the interface.
- dormant The interface is waiting for a connection.
- notPresent The interface is not present.
- LowerLayerDown The required lower layer is down.
- IPType
- String.
- IP
- String.
- PrefixLength
- String.
- MACAddress
- String.
- MTU
- Integer.
- RxHCBytes
- Integer.
- RxHCPackets
- Integer.
- RxErrors2
- Integer.
- RxDrops2
- Integer.
- TxHCBytes
- Integer.
- TxHCPackets
- Integer.
- TxErrors2
- Integer.
- TxDrops2
- Integer.
Examples
The following example requests information about network interfaces.
The following URL is used with the HTTP GET
method:
https://localhost:5554/mgmt/status/default/NetworkInterfaceStatusThe following listing shows sections from an example received
response:
{
"_links": {
"self": {
"href": "/mgmt/status/default/NetworkInterfaceStatus"
},
"doc": {
"href": "/mgmt/docs/status/NetworkInterfaceStatus"
}
},
"NetworkInterfaceStatus": [
{
"InterfaceIndex": 1,
"InterfaceType": "Other",
"Name": "lo",
"AdminStatus": "up",
"OperStatus": "up",
"IPType": "ipv4",
"IP": "127.0.0.1",
"PrefixLength": 8,
"MACAddress": "00:00:00:00:00:00",
"MTU": 65536,
"RxHCBytes": 1869015199,
"RxHCPackets": 14005952,
"RxErrors2": 0,
"RxDrops2": 0,
"TxHCBytes": 1869015199,
"TxHCPackets": 14005952,
"TxErrors2": 0,
"TxDrops2": 0
},
{
"InterfaceIndex": 2,
"InterfaceType": "Other",
"Name": "sit0",
"AdminStatus": "down",
"OperStatus": "lowerLayerDown",
"IPType": "ipv4",
"IP": "",
"PrefixLength": 0,
"MACAddress": "00:00:00:00:00:00",
"MTU": 1480,
"RxHCBytes": 0,
"RxHCPackets": 0,
"RxErrors2": 0,
"RxDrops2": 0,
"TxHCBytes": 0,
"TxHCPackets": 0,
"TxErrors2": 0,
"TxDrops2": 0
},
...
{
"InterfaceIndex": 15,
"InterfaceType": "Ethernet",
"Name": "eth17",
"AdminStatus": "down",
"OperStatus": "lowerLayerDown",
"IPType": "ipv4",
"IP": "",
"PrefixLength": 0,
"MACAddress": "00:0b:ab:83:ec:ce",
"MTU": 1500,
"RxHCBytes": 0,
"RxHCPackets": 0,
"RxErrors2": 0,
"RxDrops2": 0,
"TxHCBytes": 0,
"TxHCPackets": 0,
"TxErrors2": 0,
"TxDrops2": 0
}
]
}