We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b242c63 commit f7a53cbCopy full SHA for f7a53cb
dataikuapi/dss/admin.py
@@ -747,6 +747,15 @@ def update_packages(self, force_rebuild_env=False):
747
raise Exception('Env update failed : %s' % (json.dumps(resp.get('messages', {}).get('messages', {}))))
748
return resp
749
750
+ def list_usages(self):
751
+ """
752
+ List usages of the code env in the instance
753
+
754
+ :return: a list of objects where the code env is used
755
756
+ return self.client._perform_json(
757
+ "GET", "/admin/code-envs/%s/%s/usages" % (self.env_lang, self.env_name))
758
759
760
class DSSGlobalApiKey(object):
761
"""
0 commit comments