From 2a3c5b50954b85ef3c4a06eb7c55c36a094f58cc Mon Sep 17 00:00:00 2001 From: kaba <1137088773@qq.com> Date: Fri, 11 Jul 2025 17:33:31 +0800 Subject: [PATCH] =?UTF-8?q?eip=E5=AE=9E=E4=BE=8B=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0name=E7=BB=B4=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baidubce/services/eip/eip_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/baidubce/services/eip/eip_client.py b/baidubce/services/eip/eip_client.py index a230848b..bf25c045 100644 --- a/baidubce/services/eip/eip_client.py +++ b/baidubce/services/eip/eip_client.py @@ -397,7 +397,7 @@ def undirect_eip(self, eip, client_token, config=None): def list_eips(self, eip=None, instance_type=None, instance_id=None, status=None, marker=None, max_keys=1000, - config=None): + config=None, name=None): """ get a list of eip owned by the authenticated user and specified conditions. we can Also get a single eip function through this @@ -477,6 +477,8 @@ def list_eips(self, eip=None, instance_type=None, instance_id=None, status=None, params[b'marker'] = marker if max_keys is not None: params[b'maxKeys'] = max_keys + if name is not None: + params[b'name'] = name return self._send_request(http_methods.GET, path, params=params, config=config)