We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44db93c commit 2cf8fb5Copy full SHA for 2cf8fb5
dataikuapi/dssclient.py
@@ -989,6 +989,19 @@ def get_licensing_status(self):
989
"""
990
return self._perform_json("GET", "/admin/licensing/status")
991
992
+ def set_offline_license(self, license_path):
993
+ """
994
+ Sets a new licence for DSS
995
+
996
+ :param license_path: path to the license file
997
+ :return: None
998
999
+ with open(license_path, "r") as lf:
1000
+ license = lf.read()
1001
+ self._perform_empty(
1002
+ "POST", "/admin/licensing/set-offline-license", params={"license": license})
1003
1004
1005
########################################################
1006
# Internal Request handling
1007
0 commit comments