Revision f18fab7d lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
1434 | 1434 |
return self._SendRequest(HTTP_POST, "/%s/groups" % GANETI_RAPI_VERSION, |
1435 | 1435 |
query, body) |
1436 | 1436 |
|
1437 |
def ModifyGroup(self, group, **kwargs): |
|
1438 |
"""Modifies a node group. |
|
1439 |
|
|
1440 |
More details for parameters can be found in the RAPI documentation. |
|
1441 |
|
|
1442 |
@type group: string |
|
1443 |
@param group: Node group name |
|
1444 |
@rtype: int |
|
1445 |
@return: job id |
|
1446 |
|
|
1447 |
""" |
|
1448 |
return self._SendRequest(HTTP_PUT, |
|
1449 |
("/%s/groups/%s/modify" % |
|
1450 |
(GANETI_RAPI_VERSION, group)), None, kwargs) |
|
1451 |
|
|
1437 | 1452 |
def DeleteGroup(self, group, dry_run=False): |
1438 | 1453 |
"""Deletes a node group. |
1439 | 1454 |
|
Also available in: Unified diff