diff options
| author | Xing Yang <xing.yang@emc.com> | 2015-11-12 22:03:27 -0500 |
|---|---|---|
| committer | Xing Yang <xing.yang@emc.com> | 2015-11-20 13:47:46 -0500 |
| commit | 8fbbf7be9465add48ef24e50555983a4bedb4915 (patch) | |
| tree | 2a5ec1fa0b57452dcdff83c7e864b7e9da871cf8 /cinderclient/v2/volume_backups.py | |
| parent | 484c6e3a9c0cf036ff90be6fe5a77da223ac835e (diff) | |
| download | python-cinderclient-8fbbf7be9465add48ef24e50555983a4bedb4915.tar.gz | |
CLI for backup snapshots
This adds CLI support for backup snapshots.
Server side change is here:
https://review.openstack.org/#/c/243406/
Depends-on: Ib4ab9ca9dc72b30151154f3f96037f9ce3c9c540
Change-Id: I5b58d872c9b4842fae5f2e7a4ddfc6662a6c8d7a
Implements: blueprint backup-snapshots
Diffstat (limited to 'cinderclient/v2/volume_backups.py')
| -rw-r--r-- | cinderclient/v2/volume_backups.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cinderclient/v2/volume_backups.py b/cinderclient/v2/volume_backups.py index d97d846..fc653c8 100644 --- a/cinderclient/v2/volume_backups.py +++ b/cinderclient/v2/volume_backups.py @@ -39,7 +39,8 @@ class VolumeBackupManager(base.ManagerWithFind): def create(self, volume_id, container=None, name=None, description=None, - incremental=False, force=False): + incremental=False, force=False, + snapshot_id=None): """Creates a volume backup. :param volume_id: The ID of the volume to backup. @@ -55,7 +56,8 @@ class VolumeBackupManager(base.ManagerWithFind): 'name': name, 'description': description, 'incremental': incremental, - 'force': force, }} + 'force': force, + 'snapshot_id': snapshot_id, }} return self._create('/backups', body, 'backup') def get(self, backup_id): |
