Fix create backup API document

Make 'snapshot_id' optional as well as
reword parameter description.

Change-Id: I9ee404a8db5320d2a4cd7b50c2166446169bbba5
This commit is contained in:
TommyLike 2018-05-16 15:29:09 +08:00
parent dba086ee9b
commit 1a5b0c0133
3 changed files with 4 additions and 6 deletions

View File

@ -1470,7 +1470,7 @@ snapshot_id_2:
description: |
The UUID of the source volume snapshot.
in: body
required: true
required: false
type: string
source_cgid:
description: |

View File

@ -263,7 +263,7 @@ Create a backup
.. rest_method:: POST /v3/{project_id}/backups
Creates a Block Storage backup from a volume.
Creates a Block Storage backup from a volume or snapshot.
Response codes
--------------

View File

@ -2398,11 +2398,9 @@ snapshot_id_2:
type: string
snapshot_id_3:
description: |
The UUID of the source volume snapshot. The API
creates a new volume snapshot with the same size as the source
volume snapshot unless a larger size is requested.
The UUID of the source snapshot that you want to back up.
in: body
required: true
required: false
type: string
snapshot_id_4:
description: |