Skip to content

Commit 2abe499

Browse files
FChataignerlpenet
authored andcommitted
public api for the list of images
1 parent 603f628 commit 2abe499

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
@@ -193,6 +193,14 @@ def get_instance(self, instance_id):
193193
instance = self._perform_tenant_json("GET", "/instances/%s" % instance_id)
194194
return self._make_instance(instance)
195195

196+
def list_instance_images(self):
197+
"""
198+
List all available images to create new instances
199+
200+
:return: list of images, as a pair of id and label
201+
"""
202+
return self._perform_tenant_json("GET", "/images")
203+
196204
########################################################
197205
# Internal Request handling
198206
########################################################

0 commit comments

Comments
 (0)