Revision 7d81bb8b lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
924 | 924 |
("/%s/instances/%s/modify" % |
925 | 925 |
(GANETI_RAPI_VERSION, instance)), query, body) |
926 | 926 |
|
927 |
def SnapshotInstance(self, instance, **kwargs): |
|
928 |
"""Takes snapshot of instance's disks. |
|
929 |
|
|
930 |
More details for parameters can be found in the RAPI documentation. |
|
931 |
|
|
932 |
@type instance: string |
|
933 |
@param instance: Instance name |
|
934 |
@rtype: string |
|
935 |
@return: job id |
|
936 |
|
|
937 |
""" |
|
938 |
body = kwargs |
|
939 |
|
|
940 |
return self._SendRequest(HTTP_PUT, |
|
941 |
("/%s/instances/%s/snapshot" % |
|
942 |
(GANETI_RAPI_VERSION, instance)), None, body) |
|
943 |
|
|
927 | 944 |
def ActivateInstanceDisks(self, instance, ignore_size=None, reason=None): |
928 | 945 |
"""Activates an instance's disks. |
929 | 946 |
|
Also available in: Unified diff