Revision 06c2fb4a lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
867 | 867 |
("/%s/instances/%s/modify" % |
868 | 868 |
(GANETI_RAPI_VERSION, instance)), None, body) |
869 | 869 |
|
870 |
def SnapshotInstance(self, instance, **kwargs): |
|
871 |
"""Takes snapshot of instance's disks. |
|
872 |
|
|
873 |
More details for parameters can be found in the RAPI documentation. |
|
874 |
|
|
875 |
@type instance: string |
|
876 |
@param instance: Instance name |
|
877 |
@rtype: string |
|
878 |
@return: job id |
|
879 |
|
|
880 |
""" |
|
881 |
body = kwargs |
|
882 |
|
|
883 |
return self._SendRequest(HTTP_PUT, |
|
884 |
("/%s/instances/%s/snapshot" % |
|
885 |
(GANETI_RAPI_VERSION, instance)), None, body) |
|
886 |
|
|
870 | 887 |
def ActivateInstanceDisks(self, instance, ignore_size=None): |
871 | 888 |
"""Activates an instance's disks. |
872 | 889 |
|
Also available in: Unified diff