Skip to content

Commit 32b2725

Browse files
author
Thibaud Baas
committed
fm: delete instance
1 parent 96fddb3 commit 32b2725

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

dataikuapi/fm/instances.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ def get_status(self):
5555
status = self.client._perform_tenant_json("GET", "/instances/%s/status" % self.id)
5656
return FMInstanceStatus(status)
5757

58+
def delete(self):
59+
"""
60+
Delete the DSS instance
61+
62+
:return: A :class:`~dataikuapi.fm.future.FMFuture` representing the deletion process
63+
:rtype: :class:`~dataikuapi.fm.future.FMFuture`
64+
"""
65+
future = self.client._perform_tenant_json("GET", "/instances/%s/actions/delete" % self.id)
66+
return FMFuture.from_resp(self.client, future)
67+
5868

5969
class FMInstanceEncryptionMode(Enum):
6070
NONE = "NONE"

dataikuapi/fmclient.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def _perform_http(self, method, path, params=None, body=None, stream=False, file
252252
body = json.dumps(body)
253253
if raw_body is not None:
254254
body = raw_body
255-
print(body)
256255
try:
257256
http_res = self._session.request(
258257
method, "%s/api/public%s" % (self.host, path),

0 commit comments

Comments
 (0)