GetElasticNetworkInterface

Updated at:

Retrieves the details of Lingjun elastic network interface controllers (NICs).

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 elastic network interface controller (NIC).

leni-1234****

Response elements

Element

Type

Description

Example

object

The response parameters.

Code

integer

The response status code.

0

Message

string

The response 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 Lingjun elastic network interface (ENI) ID.

leni-1234****

NodeId

string

The Lingjun node ID.

e01-cn-lbj3aej****

Status

string

The status.

Valid values:

  • Create Failed :

    Creation failed.

  • Delete Failed :

    Deletion failed.

  • Executing :

    Executing.

  • Available :

    Active.

  • Deleting :

    Deleting.

Available

Tags

array<object>

The tags.

object

The tag information.

TagKey

string

The tag key.

key1

TagValue

string

The tag value.

value1

Ip

string

The elastic network interface (ENI) IP address.

203.107.****

VpcId

string

The VPC ID.

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 ENI type.

Valid values:

  • CUSTOM :

    Custom.

  • DEFAULT :

    System.

DEFAULT

Gateway

string

The vSwitch gateway address.

172.16.****

Mask

string

The vSwitch mask length.

24

CreateTime

string

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

1672971789000

GmtModified

string

The update time.

1672971789000

Description

string

The description.

Description

PrivateIpAddresses

array<object>

The secondary private IP addresses.

object

The private network information of the instance.

Status

string

The status.

Available

ElasticNetworkInterfaceId

string

The Lingjun elastic network interface (ENI) ID.

leni-1234****

GmtCreate

string

The creation time.

1672971789000

IpName

string

The unique identifier of the secondary private IP address for the Lingjun elastic network interface (ENI).

sip-ywz****

PrivateIpAddress

string

The secondary private IP address of the Lingjun elastic network interface (ENI).

172.16.****

Description

string

The description.

Description

Message

string

The response message.

Success

GmtModified

string

The update time.

1672971789000

RegionId

string

The region ID.

cn-wulanchabu

ResourceGroupId

string

The resource group instance ID.

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 elastic network interface controller (NIC).

leni-1234****

IpName

string

The unique identifier of the IPv6 address.

sip-sg3xabeq

GmtCreate

string

The creation time.

1585816811000

Description

string

The description.

Description

Message

string

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

success

GmtModified

string

The update time.

1549012834000

RegionId

string

The region ID.

cn-wulanchabu

Ipv6Address

string

The IPv6 addresses.

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

EnableJumboFrame

boolean

Indicates whether the jumbo frame feature is enabled.

True

AccessDeniedDetail

string

The detailed cause of the access denial.

{}

Examples

Success response

JSON format

{
  "Code": 0,
  "Message": "Succeeded",
  "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": "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.