summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-10-13 18:46:09 +0000
committerGerrit Code Review <review@openstack.org>2018-10-13 18:46:09 +0000
commit396156eb13521a0e7af4488a8cd4693aa65a0da2 (patch)
tree6ae3317762dcc42f4491da0def3b8c228479ffe0 /api-ref
parent12fcfc5e2b51b563529a5bc0b2990816bbbda80b (diff)
parentc7f4190af26ad106bea29f66770b9569ab3fc4e1 (diff)
downloadnova-396156eb13521a0e7af4488a8cd4693aa65a0da2.tar.gz
Merge "Add microversion 2.67 to support volume_type"
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/parameters.yaml17
-rw-r--r--api-ref/source/servers.inc1
2 files changed, 18 insertions, 0 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index 226cc742a7..31d329c135 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -2269,6 +2269,23 @@ device_type:
in: body
required: false
type: string
+device_volume_type:
+ description: |
+ The device ``volume_type``. This can be used to specify the type of volume
+ which the compute service will create and attach to the server.
+ If not specified, the block storage service will provide a default volume
+ type. See the `block storage volume types API <https://developer.openstack.org/api-ref/block-storage/v3/#volume-types-types>`_
+ for more details.
+ There are some restrictions on ``volume_type``:
+
+ - It can be a volume type ID or name.
+ - It is only supported with ``source_type`` of ``blank``, ``image`` or
+ ``snapshot``.
+ - It is only supported with ``destination_type`` of ``volume``.
+ in: body
+ required: false
+ type: string
+ min_version: 2.67
# Optional input parameter in the body for PUT /os-services/{service_id} added
# in microversion 2.53.
disabled_reason_2_53_in:
diff --git a/api-ref/source/servers.inc b/api-ref/source/servers.inc
index f848905ee9..372caa4654 100644
--- a/api-ref/source/servers.inc
+++ b/api-ref/source/servers.inc
@@ -363,6 +363,7 @@ Request
- block_device_mapping_v2.uuid: block_device_uuid
- block_device_mapping_v2.volume_size: volume_size
- block_device_mapping_v2.tag: device_tag_bdm
+ - block_device_mapping_v2.volume_type: device_volume_type
- config_drive: config_drive
- imageRef: imageRef
- key_name: key_name