Revision b8481ebf
b/lib/rapi/client.py | ||
---|---|---|
923 | 923 |
("/%s/instances/%s/reboot" % |
924 | 924 |
(GANETI_RAPI_VERSION, instance)), query, None) |
925 | 925 |
|
926 |
def ShutdownInstance(self, instance, dry_run=False, no_remember=False): |
|
926 |
def ShutdownInstance(self, instance, dry_run=False, no_remember=False, |
|
927 |
**kwargs): |
|
927 | 928 |
"""Shuts down an instance. |
928 | 929 |
|
929 | 930 |
@type instance: str |
... | ... | |
937 | 938 |
|
938 | 939 |
""" |
939 | 940 |
query = [] |
941 |
body = kwargs |
|
942 |
|
|
940 | 943 |
_AppendDryRunIf(query, dry_run) |
941 | 944 |
_AppendIf(query, no_remember, ("no-remember", 1)) |
942 | 945 |
|
943 | 946 |
return self._SendRequest(HTTP_PUT, |
944 | 947 |
("/%s/instances/%s/shutdown" % |
945 |
(GANETI_RAPI_VERSION, instance)), query, None)
|
|
948 |
(GANETI_RAPI_VERSION, instance)), query, body)
|
|
946 | 949 |
|
947 | 950 |
def StartupInstance(self, instance, dry_run=False, no_remember=False): |
948 | 951 |
"""Starts up an instance. |
Also available in: Unified diff