ListNetworkInterfaces

Updated at:

Queries the list of Lingjun network interfaces.

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:ListNetworkInterfaces

list

*NetworkInterface

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

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-wulanchabu

NetworkInterfaceId

string

No

The ID of the Lingjun network interface.

lni-bp18exxqa2rvfn45e5pz

VpdId

string

No

The instance ID of the Lingjun CIDR block (VPD).

vpd-iv2zm1qf

NodeId

string

No

The ID of the node to which the network interface belongs.

r-2ze121o4uhr4np3r5t-db-5

SubnetId

string

No

The instance ID of the Lingjun subnet.

subnet-anhtskts

Ip

string

No

The IP address of the network interface.

203.107.46.227

PageNumber

integer

No

The current page number.

1

PageSize

integer

No

The number of entries per page.

10

EnablePage

boolean

No

Specifies whether to enable pagination.

false

ResourceGroupId

string

No

The resource group instance ID.

rg-aek2ojvzk4avjby

Tag

array<object>

No

The list of tags.

object

No

The tag information.

Key

string

No

The tag key.

k-test

Value

string

No

The tag value.

v-test

Response elements

Element

Type

Description

Example

object

The response entity object.

Code

integer

The response status code.

0

Message

string

The error message. It indicates the cause of the exception when the instance status is abnormal.

success

RequestId

string

The ID of the request.

039C3C3A-3C37-5672-80D5-D8CD48C676D1

Content

object

The response content.

Total

integer

The total number of records.

0

Data

array<object>

The returned data.

array<object>

The Lingjun elastic network interface (ENI) information.

TenantId

string

The tenant ID.

1620939556166279

RegionId

string

The region ID.

cn-wulanchabu

NetworkInterfaceId

string

The ID of the Lingjun network interface.

lni-2ze50voovmtswn328ogm

NodeId

string

The ID of the node to which the network interface belongs.

2d53f5c204e7476dae69177e7fa6f19c

VpdBaseInfo

object

The basic information of the Lingjun VPD.

VpdId

string

The instance ID of the Lingjun VPD.

vpd-d3isyds4

VpdName

string

The name of the Lingjun VPD instance.

vpd-1

Cidr

string

The CIDR block of the Lingjun VPD.

  • Use RFC private endpoints as the CIDR block of the Lingjun VPD, such as 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. If multiple Lingjun VPDs need to communicate with each other or a Lingjun VPD needs to communicate with a VPC, make sure that the CIDR blocks do not overlap.

  • You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPD. Default value: null.

10.0.0.0/16

CreateTime

string

The creation time. The value is a 13-digit UNIX timestamp in milliseconds.

1668158213000

ZoneId

string

The zone ID.

cn-wulanchabu-b

SubnetBaseInfo

object

The basic information of the Lingjun subnet.

SubnetId

string

The instance ID of the Lingjun subnet.

subnet-yjnqn5ef

SubnetName

string

The name of the Lingjun subnet instance.

subnet-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 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 CIDR blocks, see What is CIDR?.

Default value: null.

10.0.0.0/24

CreateTime

string

The creation time. The value is a 13-digit UNIX timestamp in milliseconds.

1623656472000

Ip

string

The IP address.

10.0.0.13

ServiceMac

string

The service ENI address.

00-ff-84-15-ba-67

PrivateIpAddressMacGroup

array<object>

The collection of secondary private IP addresses and MAC addresses.

object

The description.

IpName

string

The unique identifier of the IP address.

sip-1asjd3xg

PrivateIpAddress

string

The secondary private IP address.

10.0.0.14

IpAddressMac

string

The MAC address of the secondary private IP address.

00:25:9d:00:20:20

Status

string

The instance status.

Available

Description

string

The description.

test

Message

string

The error message. It indicates the cause of the exception when the instance status is abnormal.

success

Ethernet

array

The port.

string

The ENI port information.

eth1 eth2

Status

string

The status.

Available

Gateway

string

The gateway.

10.0.0.253

CreateTime

string

The creation time. The value is a 13-digit UNIX timestamp in milliseconds.

1669734207000

Quota

integer

The quota of secondary private IP addresses for the ENI.

6

NcType

string

The NC type.

Valid values:

  • CUSTOM_LNI_INTEGRATION :

    Lingjun managed ENI in the dual-network integrated architecture.

  • CPU :

    CPU instance.

  • ELASTIC_6.2 :

    Server in the dual-network integrated architecture.

  • GPU :

    GPU instance.

  • DEFAULT :

    Legacy CPU instance.

  • CUSTOM_LNI :

    Lingjun managed ENI in the dual-network separated architecture.

GPU

NetworkInterfaceName

string

The port name.

bond0

ResourceGroupId

string

The resource group instance ID.

rg-acfm4c7urez5byi

Tags

array<object>

The tag list.

object

The tag information.

TagKey

string

The tag key.

k-test

TagValue

string

The tag value.

v-test

AccessDeniedDetail

string

The details of the permission check failure.

None

Examples

Success response

JSON format

{
  "Code": 0,
  "Message": "success",
  "RequestId": "039C3C3A-3C37-5672-80D5-D8CD48C676D1",
  "Content": {
    "Total": 0,
    "Data": [
      {
        "TenantId": "1620939556166279\n",
        "RegionId": "cn-wulanchabu",
        "NetworkInterfaceId": "lni-2ze50voovmtswn328ogm",
        "NodeId": "2d53f5c204e7476dae69177e7fa6f19c",
        "VpdBaseInfo": {
          "VpdId": "vpd-d3isyds4",
          "VpdName": "vpd-1\n",
          "Cidr": "10.0.0.0/16",
          "CreateTime": "1668158213000"
        },
        "ZoneId": "cn-wulanchabu-b",
        "SubnetBaseInfo": {
          "SubnetId": "subnet-yjnqn5ef",
          "SubnetName": "subnet-1",
          "Cidr": "10.0.0.0/24",
          "CreateTime": "1623656472000"
        },
        "Ip": "10.0.0.13",
        "ServiceMac": "00-ff-84-15-ba-67",
        "PrivateIpAddressMacGroup": [
          {
            "IpName": "sip-1asjd3xg",
            "PrivateIpAddress": "10.0.0.14",
            "IpAddressMac": "00:25:9d:00:20:20",
            "Status": "Available",
            "Description": "Test",
            "Message": "success"
          }
        ],
        "Ethernet": [
          "eth1 eth2"
        ],
        "Status": "Available",
        "Gateway": "10.0.0.253",
        "CreateTime": "1669734207000",
        "Quota": 6,
        "NcType": "GPU",
        "NetworkInterfaceName": "bond0",
        "ResourceGroupId": "rg-1234567890",
        "Tags": [
          {
            "TagKey": "testkey",
            "TagValue": "testValue"
          }
        ]
      }
    ]
  },
  "AccessDeniedDetail": "None"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.