You need to enable JavaScript to run this app.
导航
获取弹性网卡列表
最近更新时间:2025.12.17 14:07:19首次发布时间:2025.12.17 14:07:19
复制全文
我的收藏
有用
有用
无用
无用

本接口用于获取弹性网卡的列表。

请求说明

  • 请求方式:POST
  • 请求地址:https://veenedge.volcengineapi.com/?Action=ListENIInstances&Version=2021-04-30

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

Query

参数
类型
是否必选
示例值
描述
Action
String
ListENIInstances
接口名称。当前 API 的名称为 ListENIInstances
Version
String
2021-04-30
接口版本。当前 API 的版本为 2021-04-30

Body

参数
类型
是否必选
示例值
描述
cluster_name_list
String[]
["bd**cu03"]
节点名称列表。
vpc_id_list
String[]
["vpc-h294p****"]
私有网络 ID 列表。
subnet_id_list
String[]
["subnet-2j48lqz64b****"]
子网 ID 列表。
status_list
String[]
["attached"]

弹性网卡状态列表。取值范围:

  • creating:创建中。
  • updating:更新中。
  • detached:未挂载。
  • attaching:挂载中。
  • detaching:卸载中。
  • attached:已挂载。
  • deleting:删除中。
eni_id_list
String[]
["eni-h4bwdmbkmhb****"]
弹性网卡 ID 列表。
pagination
Object
-
分页查询配置。
bind_resource_id_list
String[]
["veen391222135120255****"]
绑定的资源 ID 的列表。
is_enhanced
Boolean
false

是否为增强联网型网卡。取值范围:

  • true:增强联网型网卡。
  • false:非增强联网型网卡。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结果

参数
类型
示例值
描述
count
Integer
2
弹性网卡总数。
eni_instances
Object[]
-
弹性网卡实例列表。

请求示例

POST https://veenedge.volcengineapi.com/?Action=ListENIInstances&Version=2021-04-30
<其他公共参数>
{
    "cluster_name_list": [
        "bd**cu03"
    ],
    "vpc_id_list": [
        "vpc-h294p6****"
    ]
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202512081514328BCCADA6740D5D4C****",
        "Action": "ListENIInstances",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "eni_instances": [
            {
                "account_identity": 210006****,
                "user_identity": 0,
                "eni_identity": "eni-h4bwdmbkmh****",
                "name": "eni_testing01",
                "desc": "",
                "type": "secondary",
                "status": "detached",
                "cluster": {
                    "cluster_name": "bd**cu03",
                    "country": "CN",
                    "region": "SouthChina",
                    "province": "HI",
                    "city": "460100",
                    "isp": "CUCC",
                    "level": "2",
                    "alias": "**联通03"
                },
                "vpc": {
                    "account_identity": 210006****,
                    "user_identity": 0,
                    "vpc_identity": "vpc-h294p6****",
                    "vpc_name": "test-eni-v6",
                    "create_time": 1764917450,
                    "update_time": 1764917454
                },
                "subnet": {
                    "account_identity": 210006****,
                    "user_identity": 0,
                    "subnet_identity": "subnet-2j48lqz64bz****",
                    "cidr_ip": "192.168.1.0",
                    "cidr_mask": 24,
                    "subnet_name": "test-eni-v6",
                    "ipv6_cidr": "2408:**:**:104::/64",
                    "create_time": 1764917450,
                    "update_time": 1764917454
                },
                "mac_addr": "0a:58:**:**:01:04",
                "eni_internal_ip_count": 2,
                "eni_binder_resource": {
                    "resource_type": "",
                    "resource_identity": "",
                    "resource_name": ""
                },
                "primary_internal_ip": {
                    "eni_internal_ip_identity": "eni_iip-7jld4hc8****",
                    "eni_identity": "eni-h4bwdmbkmh****",
                    "status": "bound",
                    "type": "primary",
                    "desc": "",
                    "ip_version": "ipv4",
                    "addr": "192.168.1.4",
                    "mask": "24",
                    "binder_eip": {
                        "eip_identity": "eip-lz68j****",
                        "eip_addr": "113.**.**.223",
                        "eip_name": "bd**cu03",
                        "eip_isp": "CUCC"
                    },
                    "create_time": 1764920525,
                    "update_time": 1765164820
                },
                "escrow_account_identity": 0,
                "eni_direct_eip_count": 0,
                "eni_indirect_eip_count": 1,
                "is_enhanced": false,
                "create_time": 1764920525,
                "update_time": 1765165890
            }
  ],
        "count": 1
    }
}

错误码

如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码