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: | description: |
The UUID of the source volume snapshot. The UUID of the source volume snapshot.
in: body in: body
required: true required: false
type: string type: string
source_cgid: source_cgid:
description: | description: |

View File

@ -263,7 +263,7 @@ Create a backup
.. rest_method:: POST /v3/{project_id}/backups .. 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 Response codes
-------------- --------------

View File

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