Skip to content

Commit 9b81fd3

Browse files
committed
public api for the list of images
1 parent e98a709 commit 9b81fd3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dataikuapi/fmclient.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ def get_instance(self, instance_id):
185185
instance = self._perform_tenant_json("GET", "/instances/%s" % instance_id)
186186
return self._make_instance(instance)
187187

188+
def list_instance_images(self):
189+
"""
190+
List all available images to create new instances
191+
192+
:return: list of images, as a pair of id and label
193+
"""
194+
return self._perform_tenant_json("GET", "/images")
195+
188196
########################################################
189197
# Internal Request handling
190198
########################################################

0 commit comments

Comments
 (0)