api-ref: Add description for BDM volume_size

Add description of cases that 'block_device_mapping_v2.volume_size`
is required in the "Create Server" (POST /servers) API.

Change-Id: I36f28ca756b908b5fc591cc87f5786a3e217285e
Closes-Bug: #1818310
This commit is contained in:
Takashi NATSUME 2019-03-06 15:54:23 +09:00 committed by Matt Riedemann
parent e608568518
commit f87bf4c6b9

View File

@ -6815,6 +6815,17 @@ volume_size:
The size of the volume (in GiB).
This is integer value from range 1 to 2147483647
which can be requested as integer and string.
This parameter must be specified in the following cases:
- An image to volume case
* ``block_device_mapping_v2.source_type`` is ``image``
* ``block_device_mapping_v2.destination_type`` is ``volume``
- A blank to volume case
* ``block_device_mapping_v2.source_type`` is ``blank``
* ``block_device_mapping_v2.destination_type`` is ``volume``
in: body
required: false
type: integer