Revision 7d81bb8b lib/rapi/rlib2.py
b/lib/rapi/rlib2.py | ||
---|---|---|
1382 | 1382 |
}) |
1383 | 1383 |
|
1384 | 1384 |
|
1385 |
class R_2_instances_name_snapshot(baserlib.OpcodeResource): |
|
1386 |
"""/2/instances/[instance_name]/snapshot resource. |
|
1387 |
|
|
1388 |
Implements an instance snapshot. |
|
1389 |
|
|
1390 |
""" |
|
1391 |
PUT_OPCODE = opcodes.OpInstanceSnapshot |
|
1392 |
|
|
1393 |
def GetPutOpInput(self): |
|
1394 |
"""Snapshot disks of an instance. |
|
1395 |
|
|
1396 |
""" |
|
1397 |
return (self.request_body, { |
|
1398 |
"instance_name": self.items[0], |
|
1399 |
"dry_run": self.dryRun(), |
|
1400 |
}) |
|
1401 |
|
|
1402 |
|
|
1385 | 1403 |
class R_2_instances_name_disk_grow(baserlib.OpcodeResource): |
1386 | 1404 |
"""/2/instances/[instance_name]/disk/[disk_index]/grow resource. |
1387 | 1405 |
|
Also available in: Unified diff