GetNetworkInterface
Queries the details of a specific network interface.
Operation description
Queries the details of a Lingjun Network Interface (LNI).
An LNI is a system network interface that comes with a Lingjun node and cannot be created separately through API calls. You can call the ListNetworkInterfaces operation to query existing LNIs under the current account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:GetNetworkInterface |
get |
*NetworkInterface
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| SubnetId |
string |
No |
The ID of the Lingjun subnet. |
subnet-f3zfzmnc |
| NetworkInterfaceId |
string |
Yes |
The ID of the Lingjun network interface. |
lni-bp18exxqa2rvfn45e5pz |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
AjaxResult |
||
| Code |
integer |
The response status code. |
0 |
| Message |
string |
The error message. This parameter indicates the cause of the exception when the instance status is abnormal. |
success |
| RequestId |
string |
The ID of the request. |
A88DFED5-24B7-5A3E-87DE-380BF06F3C90 |
| Content |
object |
The response content. If the resource has dependent resources, the dependent resources are returned. |
|
| TenantId |
string |
The tenant ID. |
1655449505171 |
| RegionId |
string |
The region ID. |
cn-wulanchabu |
| NetworkInterfaceId |
string |
The ID of the Lingjun network interface. |
lni-f8z4scmfh0u4ewv6vdd8 |
| NodeId |
string |
The ID of the host machine. |
masterintranett2fdth5fkoocg |
| VpdBaseInfo |
object |
The basic information about the Lingjun VPD. |
|
| VpdId |
string |
The instance ID of the Lingjun CIDR block (VPD). |
vpd-ppdunxzc |
| VpdName |
string |
The name of the Lingjun VPD instance. |
vpd-1 |
| Cidr |
string |
The CIDR block of the Lingjun subnet.
For more information about Classless Inter-Domain Routing, see What is CIDR?. Default value: empty. |
172.18.0.0/24 |
| CreateTime |
string |
The creation time, which is a 13-digit UNIX timestamp in milliseconds. |
1678273219000 |
| ZoneId |
string |
The zone ID. |
cn-wulanchabu-b |
| SubnetBaseInfo |
object |
The basic information about the Lingjun subnet. |
|
| SubnetId |
string |
The instance ID of the Lingjun subnet. |
subnet-urb01blo |
| SubnetName |
string |
The name of the Lingjun subnet instance. |
subnet-1 |
| Cidr |
string |
The CIDR block. |
116.233.21.57/32 |
| CreateTime |
string |
The creation time, which is a 13-digit UNIX timestamp in milliseconds. |
1678273219000 |
| Ip |
string |
The IP address. |
203.107.**** |
| ServiceMac |
string |
The MAC address of the service NIC. |
01-00-5e-00-00-16 |
| PrivateIpAddressMacGroup |
array<object> |
The collection of secondary private IP addresses and MAC addresses. |
|
|
object |
The secondary private IP address and MAC address. |
||
| IpName |
string |
The unique identifier of the IP address. |
sip-1asjd3xg |
| PrivateIpAddress |
string |
The secondary private IP address. |
172.23.161.57 |
| IpAddressMac |
string |
The secondary private MAC address. |
01-00-5e-00-00-16 |
| Status |
string |
The instance status. |
Available |
| Description |
string |
The description. |
Test description |
| Message |
string |
The error message. This parameter indicates the cause of the exception when the instance status is abnormal. |
success |
| Ethernet |
array |
The port. |
|
|
string |
The port information. |
eth0 eth1 |
|
| Status |
string |
The status. |
Available |
| Gateway |
string |
The gateway. |
172.24.20.254 |
| CreateTime |
string |
The creation time, which is a 13-digit UNIX timestamp in milliseconds. |
1678273219000 |
| Quota |
integer |
The quota of secondary private IP addresses for the NIC. |
0 |
| NcType |
string |
The NC type. Valid values:
|
DEFAULT |
| NetworkInterfaceName |
string |
The network interface name. |
bond0 |
| ResourceGroupId |
string |
The resource group instance ID. |
rg-acfmv2m2w43japa |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The tag information. |
||
| TagKey |
string |
The tag key. |
key-test |
| TagValue |
string |
The tag value. |
value-test |
| AccessDeniedDetail |
string |
The detailed reasons for access denial. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "success",
"RequestId": "A88DFED5-24B7-5A3E-87DE-380BF06F3C90",
"Content": {
"TenantId": "1655449505171",
"RegionId": "cn-wulanchabu",
"NetworkInterfaceId": "lni-f8z4scmfh0u4ewv6vdd8",
"NodeId": "masterintranett2fdth5fkoocg",
"VpdBaseInfo": {
"VpdId": "vpd-ppdunxzc",
"VpdName": "vpd-1",
"Cidr": "172.18.0.0/24",
"CreateTime": "1678273219000"
},
"ZoneId": "cn-wulanchabu-b",
"SubnetBaseInfo": {
"SubnetId": "subnet-urb01blo",
"SubnetName": "subnet-1",
"Cidr": "116.233.21.57/32",
"CreateTime": "1678273219000"
},
"Ip": "203.107.60.69",
"ServiceMac": "01-00-5e-00-00-16",
"PrivateIpAddressMacGroup": [
{
"IpName": "sip-xxxx",
"PrivateIpAddress": "172.23.161.57",
"IpAddressMac": "01-00-5e-00-00-16",
"Status": "Available",
"Description": "Test",
"Message": "success"
}
],
"Ethernet": [
"eth0 eht1"
],
"Status": "Available",
"Gateway": "172.24.20.254",
"CreateTime": "1678273219000",
"Quota": 0,
"NcType": "DEFAULT",
"NetworkInterfaceName": "bond0",
"ResourceGroupId": "rg-acfmzzka6bnjvbi",
"Tags": [
{
"TagKey": "key-test",
"TagValue": "value-test"
}
]
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.