本接口用于获取弹性网卡的列表。
下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListENIInstances | 接口名称。当前 API 的名称为 ListENIInstances。 |
Version | String | 是 | 2021-04-30 | 接口版本。当前 API 的版本为 2021-04-30。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
cluster_name_list | String[] | 否 | ["bd**cu03"] | 节点名称列表。 |
vpc_id_list | String[] | 否 | ["vpc-h294p****"] | 私有网络 ID 列表。 |
subnet_id_list | String[] | 否 | ["subnet-2j48lqz64b****"] | 子网 ID 列表。 |
status_list | String[] | 否 | ["attached"] | 弹性网卡状态列表。取值范围:
|
eni_id_list | String[] | 否 | ["eni-h4bwdmbkmhb****"] | 弹性网卡 ID 列表。 |
pagination | Object | 否 | - | 分页查询配置。 |
bind_resource_id_list | String[] | 否 | ["veen391222135120255****"] | 绑定的资源 ID 的列表。 |
is_enhanced | Boolean | 否 | 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 请求失败。关于错误码的更多信息,参见错误码。