GET /aicc/network/interfaces/{id}
Use the method to retrieve the information about a specific Lenovo XClarity Administrator network interface.
Authentication
Authentication with username and password is required.
Request URL
GET https://{management_server_IP}/aicc/network/interfaces/{id}
where {id} is the network interface ID, such as eth0 or eth1.
Query parameters
None
Request body
None
Response codes
Code | Description |
---|---|
200 | OK |
404 | Not found |
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
404 | Not found | A specified resource cannot be found. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
id | String | Network interface ID (such as eth0or eth1) | ||
ip_addresses | Array of objects | Information about the IP addresses | ||
assign_method | String | Assignment method used for this IP address. This can be one of the following values.
| ||
ip | String | IPv4 or IPv6 address | ||
ip_linklocal | String | Identifies whether this address is an IPv6 link local address. This can be one of the following values.
| ||
prefix_length | Integer | Prefix length (in bits) for this IP address | ||
version | Integer | Type of IP address. This can be one of the following values.
| ||
mac_address | String | MAC address | ||
role | Array of strings | Roles that are performed by this network interface. This can be one or more of the following values.
Note The first network interface (for example, eth0), is always set to | ||
rpf | String | Reverse path forwarding settings on the network interface. This can be one of the following values.
|
The following example is returned if the request is successful.
[{
"id": "eth0",
"ip_addresses": [{
"assign_method": "static",
"ip": "fe80:0:0:0:5054:ff:fe03:4da9%2",
"ip_linklocal": "true",
"prefix_length": 64,
"version": 6
},
{
"assign_method": "static",
"ip": "10.243.2.189",
"ip_linklocal": "false",
"prefix_length": 20,
"version": 4
},
{
"assign_method": "dhcp",
"ip": "0::0%0",
"ip_linklocal": "false",
"prefix_length": 64,
"version": 6
}],
"mac_address": "52:54:00:03:4D:A9",
"role": ["management"],
"rpf": "RFC3704Strict"
}]
Give documentation feedback