Revision 62e999a5 lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
481 | 481 |
return self._SendRequest(HTTP_GET, "/%s/info" % GANETI_RAPI_VERSION, |
482 | 482 |
None, None) |
483 | 483 |
|
484 |
def ModifyCluster(self, **kwargs): |
|
485 |
"""Modifies cluster parameters. |
|
486 |
|
|
487 |
More details for parameters can be found in the RAPI documentation. |
|
488 |
|
|
489 |
@rtype: int |
|
490 |
@return: job id |
|
491 |
|
|
492 |
""" |
|
493 |
body = kwargs |
|
494 |
|
|
495 |
return self._SendRequest(HTTP_PUT, |
|
496 |
"/%s/modify" % GANETI_RAPI_VERSION, None, body) |
|
497 |
|
|
484 | 498 |
def GetClusterTags(self): |
485 | 499 |
"""Gets the cluster tags. |
486 | 500 |
|
Also available in: Unified diff