ListElasticNetworkInterfaces

Updated at:

Queries the list of Lingjun elastic network interfaces (ENIs) (network interface controller (NIC)).

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

list

*ElasticNetworkInterface

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

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-wulanchabu

ZoneId

string

No

The zone ID.

cn-wulanchabu-b

Type

string

No

The type.

Valid values:

  • CUSTOM :

    Custom type.

  • DEFAULT :

    System type.

DEFAULT

NetworkType

string

No

The network type.

Valid values:

  • Tenant :

    Tenant

  • VPC :

    VPC

tenant

ElasticNetworkInterfaceId

string

No

The ID of the Lingjun elastic network interfaces (ENIs) (network interface controller (NIC)).

leni-1234****

NodeId

string

No

The node ID.

e01-cn-lbj3aej****

Status

string

No

The status.

Valid values:

  • Create Failed :

    Creation failed.

  • Delete Failed :

    Deletion failed.

  • Executing :

    Executing.

  • Available :

    Available.

  • Deleting :

    Deleting.

Available

Ip

string

No

The IP address.

10.0.0.1

VpcId

string

No

The VPC ID.

vpc-uf6aa4ddo97fr****

VSwitchId

string

No

The vSwitch ID.

vsw-uf6u8473r84e9****

Tag

array<object>

No

The tag list.

object

No

The tag information.

Key

string

No

The tag key.

tag-vcc

Value

string

No

The tag value.

apisix

PageNumber

integer

No

The current page number. Starting value: 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 20.

10

ResourceGroupId

string

No

The resource group instance ID.

rg-acfmynvzeknccpy

Response elements

Element

Type

Description

Example

object

The response elements.

Code

integer

The response status code.

0

Message

string

The response message.

success

RequestId

string

The ID of the request.

AC8C713A-A9F4-5984-A5E1-76496DF35153

Content

object

The response content.

Total

integer

The total number of records.

100

Data

array<object>

The list of Lingjun elastic network interface controller (NIC) information.

array<object>

The Lingjun elastic network interface controller (NIC) information.

RegionId

string

The region ID.

cn-wulanchabu

ZoneId

string

The zone ID.

cn-wulanchabu-b

ElasticNetworkInterfaceId

string

The ID of the Lingjun elastic network interface controller (NIC).

leni-1234****

NodeId

string

The node ID.

e01-cn-uax37m1****

Status

string

The status.

Available

Tags

array<object>

The tag list.

object

The tag information.

TagKey

string

The tag key.

testkey2

TagValue

string

The tag value.

tfTestAcc0

Ip

string

The IP address.

10.0.0.13

VpcId

string

The VPC ID.

vpc-f8ziirfl9k25h2qn7****

VSwitchId

string

The vSwitch ID.

vsw-uf6u8473r84e9****

Message

string

The error message.

Success

Mac

string

The MAC address.

E0:01:A6:4A:6A:D0

Type

string

The network interface controller (NIC) type. The default type DEFAULT does not support manual release.

Valid values:

  • CUSTOM :

    Custom type.

  • DEFAULT :

    System type.

DEFAULT

Gateway

string

The vSwitch gateway address.

172.16.****

Mask

string

The vSwitch mask length.

24

CreateTime

string

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

1601176751000

GmtModified

string

The update time.

1640187007000

Description

string

The description.

Description

SecurityGroupId

string

The security group ID.

sg-f8z4wr1b41x3qsc9****

ResourceGroupId

string

The resource group instance ID.

rg-acfmzzka6bnjvbi

AccessDeniedDetail

string

The details of the access denial.

None

Examples

Success response

JSON format

{
  "Code": 0,
  "Message": "Succeeded",
  "RequestId": "AC8C713A-A9F4-5984-A5E1-76496DF35153",
  "Content": {
    "Total": 100,
    "Data": [
      {
        "RegionId": "cn-wulanchabu",
        "ZoneId": "cn-wulanchabu-b",
        "ElasticNetworkInterfaceId": "leni-1234****",
        "NodeId": "e01-cn-uax37m1****",
        "Status": "Available",
        "Tags": [
          {
            "TagKey": "testkey2",
            "TagValue": "tfTestAcc0"
          }
        ],
        "Ip": "10.0.0.13",
        "VpcId": "vpc-f8ziirfl9k25h2qn7****",
        "VSwitchId": "vsw-uf6u8473r84e9****",
        "Message": "成功",
        "Mac": "E0:01:A6:4A:6A:D0",
        "Type": "DEFAULT",
        "Gateway": "172.16.****",
        "Mask": "24",
        "CreateTime": "1601176751000",
        "GmtModified": "1640187007000",
        "Description": "Description",
        "SecurityGroupId": "sg-f8z4wr1b41x3qsc9****",
        "ResourceGroupId": "rg-acfmzzka6bnjvbi"
      }
    ]
  },
  "AccessDeniedDetail": "None"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.