summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
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