summaryrefslogtreecommitdiff
path: root/troveclient/v1
diff options
context:
space:
mode:
authorLingxian Kong <anlin.kong@gmail.com>2020-08-06 20:46:00 +1200
committerLingxian Kong <anlin.kong@gmail.com>2020-08-06 21:47:40 +1200
commit09aff4df804addbd592443ba19152130c3459376 (patch)
tree99c5b211e49a252a92015f7575a3aff80659bb29 /troveclient/v1
parentc23da586e9466cf77a8fca314871b3cba58028f9 (diff)
downloadpython-troveclient-09aff4df804addbd592443ba19152130c3459376.tar.gz
Support rebuild instance CLI
Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
Diffstat (limited to 'troveclient/v1')
-rw-r--r--troveclient/v1/management.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/troveclient/v1/management.py b/troveclient/v1/management.py
index bb1711c..01181d9 100644
--- a/troveclient/v1/management.py
+++ b/troveclient/v1/management.py
@@ -102,6 +102,11 @@ class Management(base.ManagerWithFind):
body = {'reset-task-status': {}}
self._action(instance_id, body)
+ def rebuild(self, instance_id, image_id):
+ """Rebuild the underlying OS."""
+ body = {'rebuild': {'image_id': image_id}}
+ self._action(instance_id, body)
+
class MgmtClusters(base.ManagerWithFind):
"""Manage :class:`Cluster` resources."""