diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-08-06 20:46:00 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-08-06 21:47:40 +1200 |
commit | 09aff4df804addbd592443ba19152130c3459376 (patch) | |
tree | 99c5b211e49a252a92015f7575a3aff80659bb29 /troveclient/v1 | |
parent | c23da586e9466cf77a8fca314871b3cba58028f9 (diff) | |
download | python-troveclient-09aff4df804addbd592443ba19152130c3459376.tar.gz |
Support rebuild instance CLI
Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
Diffstat (limited to 'troveclient/v1')
-rw-r--r-- | troveclient/v1/management.py | 5 |
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.""" |