You need to enable JavaScript to run this app.
导航
获取绑定的私网IP地址列表
最近更新时间:2025.12.17 14:07:20首次发布时间:2025.12.17 14:07:20
复制全文
我的收藏
有用
有用
无用
无用

本接口用于获取弹性网卡绑定的私网 IP 地址的列表。

请求说明

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

请求参数

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

Query

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

Body

参数
类型
是否必选
示例值
描述
eni_identity
String
eni-h4bwdmbkmhb****
弹性网卡的 ID。您可以调用 ListENIInstances 接口获取弹性网卡的 ID。
如果不设置该参数,代表查询所有弹性网卡绑定的私网 IP 地址的列表。
status_list
String[]
["unbound"]

要查询的私网 IP 地址的状态列表。取值范围:

  • creating:创建中。
  • bound:已绑定。
  • unbound:未绑定。
  • binding:绑定中。
  • unbinding:解绑中。
  • deleting:删除中。
eni_internal_ip_id_list
String[]
["eni_iip-rhj4stn67tk****"]
要查询的私网 IP 地址的 ID 列表。您可以调用 ListENIInternalIps **** 接口获取弹性网卡的私网 IP 地址的 ID。
type_list
String[]
["secondary"]

要查询的私网 IP 地址的类型列表。取值范围:

  • primary:主私网 IP 地址。
  • secondary:辅助私网 IP 地址。
pagination
Object
-
分页查询配置。

返回参数

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

参数
类型
示例值
描述
count
Integer
2
查询到的私网 IP 地址的总数。
eni_internal_ips
Object[]
-
私网 IP 地址列表。

请求示例

POST https://veenedge.volcengineapi.com/?Action=ListENIInternalIps&Version=2021-04-30
<其他公共参数>
{
    "eni_identity": "eni-h4bwdmbkmhb****",
    "status_list": [
        "unbound"
    ]
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20251209150607B91E027419C3FB03****",
        "Action": "ListENIInternalIps",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "eni_internal_ips": [
            {
                "eni_internal_ip_identity": "eni_iip-rhj4stn67tk****",
                "eni_identity": "eni-h4bwdmbkmhb****",
                "status": "unbound",
                "type": "secondary",
                "desc": "",
                "ip_version": "ipv4",
                "addr": "192.168.1.5",
                "mask": "24",
                "binder_eip": {
                    "eip_identity": "",
                    "eip_addr": "",
                    "eip_name": "",
                    "eip_isp": ""
                },
                "create_time": 1765165890,
                "update_time": 1765182844
            },
            {
                "eni_internal_ip_identity": "eni_iip-7jld4hc8gnw****",
                "eni_identity": "eni-h4bwdmbkmhb****",
                "status": "unbound",
                "type": "primary",
                "desc": "",
                "ip_version": "ipv4",
                "addr": "192.168.1.4",
                "mask": "24",
                "binder_eip": {
                    "eip_identity": "",
                    "eip_addr": "",
                    "eip_name": "",
                    "eip_isp": ""
                },
                "create_time": 1764920525,
                "update_time": 1765181636
            }
        ],
        "count": 2
    }
}

错误码

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