diff options
| author | zhengyin <zhengyin@chinac.com> | 2017-08-02 16:10:26 +0800 |
|---|---|---|
| committer | zhengyin <zhengyin@chinac.com> | 2018-01-11 10:22:36 +0800 |
| commit | 62d40cefb59cd27b7de13d87e4ef50a7053fba62 (patch) | |
| tree | 1a9f58bbb77cc9ec3ef5483eaa2ca5932ef26c77 /cinderclient | |
| parent | 36a2f4b4ebe8c46df2b7786ad9402ac7b12e700a (diff) | |
| download | python-cinderclient-62d40cefb59cd27b7de13d87e4ef50a7053fba62.tar.gz | |
Add snapshot_id param note for backup-create
Change-Id: Id7c565629aeed6d915b21b8de514afcee42470cf
Diffstat (limited to 'cinderclient')
| -rw-r--r-- | cinderclient/v2/volume_backups.py | 3 | ||||
| -rw-r--r-- | cinderclient/v3/volume_backups.py | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cinderclient/v2/volume_backups.py b/cinderclient/v2/volume_backups.py index 7a02292..bcf3e01 100644 --- a/cinderclient/v2/volume_backups.py +++ b/cinderclient/v2/volume_backups.py @@ -55,6 +55,9 @@ class VolumeBackupManager(base.ManagerWithFind): :param description: The description of the backup. :param incremental: Incremental backup. :param force: If True, allows an in-use volume to be backed up. + :param snapshot_id: The ID of the snapshot to backup. This should + be a snapshot of the src volume, when specified, + the new backup will be based on the snapshot. :rtype: :class:`VolumeBackup` """ body = {'backup': {'volume_id': volume_id, diff --git a/cinderclient/v3/volume_backups.py b/cinderclient/v3/volume_backups.py index 323daff..8ebd31f 100644 --- a/cinderclient/v3/volume_backups.py +++ b/cinderclient/v3/volume_backups.py @@ -52,6 +52,9 @@ class VolumeBackupManager(volume_backups.VolumeBackupManager): :param description: The description of the backup. :param incremental: Incremental backup. :param force: If True, allows an in-use volume to be backed up. + :param snapshot_id: The ID of the snapshot to backup. This should + be a snapshot of the src volume, when specified, + the new backup will be based on the snapshot. :rtype: :class:`VolumeBackup` """ body = {'backup': {'volume_id': volume_id, @@ -78,6 +81,9 @@ class VolumeBackupManager(volume_backups.VolumeBackupManager): :param incremental: Incremental backup. :param force: If True, allows an in-use volume to be backed up. :param metadata: Key Value pairs + :param snapshot_id: The ID of the snapshot to backup. This should + be a snapshot of the src volume, when specified, + the new backup will be based on the snapshot. :rtype: :class:`VolumeBackup` """ # pylint: disable=function-redefined |
