ListElasticNetworkInterfaces

更新时间:
复制 MD 格式

Lists the Lingjun elastic 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: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 :

    A custom type.

  • DEFAULT :

    A 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 interface (ENI).

leni-1234****

NodeId

string

No

The node ID.

e01-cn-lbj3aej****

Status

string

No

The status.

Valid values:

  • Create Failed :

    The ENI failed to be created.

  • Delete Failed :

    The ENI failed to be deleted.

  • Executing :

    The task is in progress.

  • Available :

    The ENI is available.

  • Deleting :

    The ENI is being deleted.

Available

Ip

string

No

The IP address.

10.0.0.1

VpcId

string

No

The ID of the virtual private cloud (VPC).

vpc-uf6aa4ddo97fr****

VSwitchId

string

No

The vSwitch ID.

vsw-uf6u8473r84e9****

Tag

array<object>

No

The tags.

object

No

Tag information.

Key

string

No

The tag key.

tag-vcc

Value

string

No

The tag value.

apisix

PageNumber

integer

No

The page number. The value starts from 1. The default value is 1.

1

PageSize

integer

No

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

10

ResourceGroupId

string

No

The resource group ID.

rg-acfmynvzeknccpy

Response elements

Element

Type

Description

Example

object

The response parameters.

Code

integer

The status code of the response.

0

Message

string

The returned message.

success

RequestId

string

The request ID.

AC8C713A-A9F4-5984-A5E1-76496DF35153

Content

object

The response content.

Total

integer

The total number of entries.

100

Data

array<object>

The list of Lingjun ENIs.

array<object>

The information about the Lingjun ENI.

RegionId

string

The region ID.

cn-wulanchabu

ZoneId

string

The zone ID.

cn-wulanchabu-b

ElasticNetworkInterfaceId

string

The Lingjun ENI ID.

leni-1234****

NodeId

string

The node ID.

e01-cn-uax37m1****

Status

string

The status.

Available

Tags

array<object>

The tags.

object

Information about the tag.

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 returned message.

成功

Mac

string

The MAC address.

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

Type

string

The type of the ENI. ENIs of the `DEFAULT` type cannot be manually released.

Valid values:

  • CUSTOM :

    A custom type.

  • DEFAULT :

    A system type.

DEFAULT

Gateway

string

The gateway of the vSwitch.

172.16.****

Mask

string

The subnet mask of the vSwitch.

24

CreateTime

string

The time when the ENI was created.

1601176751000

GmtModified

string

The time when the ENI was last modified.

1640187007000

Description

string

The description.

描述

SecurityGroupId

string

The security group ID.

sg-f8z4wr1b41x3qsc9****

ResourceGroupId

string

The resource group ID.

rg-acfmzzka6bnjvbi

AccessDeniedDetail

string

The details about the access denial.

None

Examples

Success response

JSON format

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