本接口用于查询 NAT 网关绑定的弹性公网 IP 的列表。
下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListEipsOfNatGateway | 接口名称。当前 API 的名称为 ListEipsOfNatGateway。 |
Version | String | 是 | 2021-04-30 | 接口版本。当前 API 的版本为 2021-04-30。 |
natgw_identity | String | 是 | natgw-xf6lpcbnxbl**** | NAT 网关的 ID。您可以调用 ListNatGateways 接口查询 NAT 网关的 ID。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结果。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
eip_list | Object[] | - | 弹性公网 IP 的列表。 |
total_count | Integer | 100 | 弹性公网 IP 的总数。 |
GET https://veenedge.volcengineapi.com/?Action=ListEipsOfNatGateway&Version=2021-04-30&natgw_identity=natgw-xf6lpcbnxbl****
{ "ResponseMetadata": { "RequestId": "20250915174650735BD646A844BF59****", "Action": "ListEipsOfNatGateway", "Version": "2021-04-30", "Service": "veenedge", "Region": "cn-north-1" }, "Result": { "eip_list": [ { "eip_identity": "eip-9kn9mx****", "eip_name": "eip_test01-****-**ct04", "eip_addr": "106.**.**.168", "status": "bound", "isp": "CTCC", "bps_limit": "20", "billing_method": "HourUsed", "bind_snat_rules": 1, "bind_dnat_rules": 0, "eip_type": "IPv4" } ], "total_count": 1 } }
如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码。