首页 GetElasticNetworkInterface

GetElasticNetworkInterface

更新时间: 2026-07-22 16:25:15

Retrieves the details of a Lingjun Elastic Network Interface (ENI).

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

get

*ElasticNetworkInterface

acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-wulanchabu

ElasticNetworkInterfaceId

string

Yes

The ID of the Lingjun ENI.

leni-1234****

Response elements

Element

Type

Description

Example

object

The response parameters.

Code

integer

The response status code.

0

Message

string

The returned message.

success

RequestId

string

The request ID.

0901F411-28FA-5B9C-BAEE-7776463FF0DC

Content

object

The response content.

RegionId

string

The region ID.

cn-wulanchabu

ZoneId

string

The zone ID.

cn-wulanchabu-b

ElasticNetworkInterfaceId

string

The ID of the Lingjun ENI.

leni-1234****

NodeId

string

The ID of the Lingjun node.

e01-cn-lbj3aej****

Status

string

The status.

Valid values:

  • Create Failed :

    The ENI failed to be created.

  • Delete Failed :

    The ENI failed to be deleted.

  • Executing :

    The ENI is being processed.

  • Available :

    The ENI is active.

  • Deleting :

    The ENI is being deleted.

Available

Tags

array<object>

The list of tags.

object

The tag information.

TagKey

string

The tag key.

key1

TagValue

string

The tag value.

value1

Ip

string

The IP address of the ENI.

203.107.****

VpcId

string

The ID of the VPC.

vpc-j6ctp4n75306****

VSwitchId

string

The vSwitch ID.

vsw-uf6u8473r84e9****

Message

string

The error message.

Success

Mac

string

The MAC address.

00:22:6D:97:**:**

Type

string

The type of the network interface controller (NIC).

Valid values:

  • CUSTOM :

    A custom NIC.

  • DEFAULT :

    A system-defined NIC.

DEFAULT

Gateway

string

The gateway address of the vSwitch.

172.16.****

Mask

string

The mask of the vSwitch.

24

CreateTime

string

The time when the ENI was created.

1672971789000

GmtModified

string

The time when the ENI was last modified.

1672971789000

Description

string

The description.

Description

PrivateIpAddresses

array<object>

The secondary private IP addresses.

object

The information about the secondary private IP addresses.

Status

string

The status.

Available

ElasticNetworkInterfaceId

string

The ID of the Lingjun ENI.

leni-1234****

GmtCreate

string

The time when the secondary private IP address was created.

1672971789000

IpName

string

The unique identifier of the secondary private IP address for the Lingjun ENI.

sip-ywz****

PrivateIpAddress

string

The secondary private IP address of the Lingjun ENI.

172.16.****

Description

string

The description.

Description

Message

string

The returned message.

Success

GmtModified

string

The time when the secondary private IP address was last updated.

1672971789000

RegionId

string

The region ID.

cn-wulanchabu

ResourceGroupId

string

The ID of the resource group.

rg-aek2l4sq6l7unhi

SecurityGroupId

string

The security group ID.

sg-0jl5s4p4laalruk7****

Ipv6Addresses

array<object>

The IPv6 addresses.

object

The IPv6 addresses.

Status

string

The status.

Available

ElasticNetworkInterfaceId

string

The ID of the Lingjun ENI.

leni-1234****

IpName

string

The unique identifier of the IPv6 address.

sip-sg3xabeq

GmtCreate

string

The time when the IPv6 address was created.

1585816811000

Description

string

The description.

Description

Message

string

The error message. This parameter provides the reason for the error when the instance status is abnormal.

success

GmtModified

string

The time when the IPv6 address was last updated.

1549012834000

RegionId

string

The region.

cn-wulanchabu

Ipv6Address

string

The IPv6 address.

2408:4005:3aa:1000:470d:66fb:56a5:****

EnableJumboFrame

boolean

Indicates whether jumbo frames are enabled.

True

AccessDeniedDetail

string

The detailed reason why the access was denied.

{}

Examples

Success response

JSON format

{
  "Code": 0,
  "Message": "success",
  "RequestId": "0901F411-28FA-5B9C-BAEE-7776463FF0DC",
  "Content": {
    "RegionId": "cn-wulanchabu",
    "ZoneId": "cn-wulanchabu-b",
    "ElasticNetworkInterfaceId": "leni-1234****",
    "NodeId": "e01-cn-lbj3aej****",
    "Status": "Available",
    "Tags": [
      {
        "TagKey": "key1",
        "TagValue": "value1"
      }
    ],
    "Ip": "203.107.****",
    "VpcId": "vpc-j6ctp4n75306****",
    "VSwitchId": "vsw-uf6u8473r84e9****",
    "Message": "成功",
    "Mac": "00:22:6D:97:**:**",
    "Type": "DEFAULT",
    "Gateway": "172.16.****",
    "Mask": "24",
    "CreateTime": "1672971789000",
    "GmtModified": "1672971789000",
    "Description": "描述",
    "PrivateIpAddresses": [
      {
        "Status": "Available",
        "ElasticNetworkInterfaceId": "leni-1234****",
        "GmtCreate": "1672971789000",
        "IpName": "sip-ywz****",
        "PrivateIpAddress": "172.16.****",
        "Description": "描述",
        "Message": "成功",
        "GmtModified": "1672971789000",
        "RegionId": "cn-wulanchabu"
      }
    ],
    "ResourceGroupId": "rg-aek2l4sq6l7unhi",
    "SecurityGroupId": "sg-0jl5s4p4laalruk7****",
    "Ipv6Addresses": [
      {
        "Status": "Available",
        "ElasticNetworkInterfaceId": "leni-1234****",
        "IpName": "sip-sg3xabeq",
        "GmtCreate": "1585816811000",
        "Description": "描述",
        "Message": "success",
        "GmtModified": "1549012834000",
        "RegionId": "cn-wulanchabu",
        "Ipv6Address": "2408:4005:3aa:1000:470d:66fb:56a5:****"
      }
    ],
    "EnableJumboFrame": true
  },
  "AccessDeniedDetail": "{}"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.

阿里云首页 智能计算灵骏 相关技术圈