GetNetworkInterface

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:GetNetworkInterface

get

*NetworkInterface

acs:eflo:{#regionId}:{#accountId}:NetworkInterface/{#NetworkInterfaceId}

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.

  • The CIDR block of a subnet must be a proper subset of the CIDR block of the Lingjun VPD to which the subnet belongs. The subnet mask must be 16 to 29 bits in length, which provides 8 to 65,536 IP addresses. For example, if the CIDR block of the Lingjun VPD is 192.168.0.0/16, the CIDR blocks of the subnets in the VPD can range from 192.168.0.0/17 to 192.168.0.0/29.

  • The first and the last three IP addresses in each subnet CIDR block are system reserved IP addresses. For example, if the CIDR block of a subnet is 192.168.1.0/24, the following four IP addresses are system reserved IP addresses: 192.168.1.0, 192.168.1.253, 192.168.1.254, and 192.168.1.255.

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:

  • CUSTOM_LNI_INTEGRATION :

    Lingjun managed NIC in the integrated dual-network architecture.

  • CPU :

    CPU machine.

  • ELASTIC_6.2 :

    Machine in the integrated dual-network architecture.

  • GPU :

    GPU machine.

  • DEFAULT :

    Legacy CPU machine.

  • CUSTOM_LNI :

    Lingjun managed NIC in the separated dual-network architecture.

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.