From 4783d6a4d62b10d3c7a79ae9ec826beccd8d6d16 Mon Sep 17 00:00:00 2001 From: "jeremy.zhang" Date: Wed, 3 Jan 2018 10:41:47 +0800 Subject: [PATCH] Fix api-ref for v3 volume types This patch is mainly to remove some redundant description and modify wrongly used HTTP method in api-ref for v3 volume types. Change-Id: I6f8911d9bc80f1c9d9889ebdf8e1bc2480df06d4 --- api-ref/source/v3/volumes-v3-types.inc | 43 ++++++-------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/api-ref/source/v3/volumes-v3-types.inc b/api-ref/source/v3/volumes-v3-types.inc index 8d8c9c68cd1..4b931bfa3e3 100644 --- a/api-ref/source/v3/volumes-v3-types.inc +++ b/api-ref/source/v3/volumes-v3-types.inc @@ -3,14 +3,6 @@ Volume types (types) ==================== - -Update a volume type -~~~~~~~~~~~~~~~~~~~~ - -.. rest_method:: PUT /v3/{project_id}/types/{volume_type_id} - -Updates a volume type. - To create an environment with multiple-storage back ends, you must specify a volume type. The API spawns Block Storage volume back ends as children to ``cinder-volume``, and keys them from a unique @@ -25,6 +17,14 @@ storage back ends, see `Configure multiple-storage back ends /blockstorage-multi-backend.html>`_. +Update a volume type +~~~~~~~~~~~~~~~~~~~~ + +.. rest_method:: PUT /v3/{project_id}/types/{volume_type_id} + +Updates a volume type. + + Normal response codes: 200 @@ -47,7 +47,6 @@ Request Example :language: javascript - Response Parameters ------------------- @@ -94,7 +93,6 @@ Request Example :language: javascript - Response Parameters ------------------- @@ -329,20 +327,6 @@ Create a volume type Creates a volume type. -To create an environment with multiple-storage back ends, you must -specify a volume type. Block Storage volume back ends are spawned -as children to ``cinder-volume``, and they are keyed from a unique -queue. They are named ``cinder-volume.HOST.BACKEND``. For example, -``cinder-volume.ubuntu.lvmdriver``. When a volume is created, the -scheduler chooses an appropriate back end to handle the request -based on the volume type. - -For information about how to use volume types to create multiple- -storage back ends, see `Configure multiple-storage back ends -`_. - - Normal response codes: 200 @@ -384,13 +368,12 @@ Response Example .. literalinclude:: ./samples/volume-type-create-response.json :language: javascript + Show an encryption type ~~~~~~~~~~~~~~~~~~~~~~~ .. rest_method:: GET /v3/{project_id}/types/{volume_type_id}/encryption -Show an encryption type. - To show an encryption type for an existing volume type. Normal response codes: 200 @@ -458,9 +441,7 @@ Response Example Delete an encryption type ~~~~~~~~~~~~~~~~~~~~~~~~~ -.. rest_method:: GET /v3/{project_id}/types/{volume_type_id}/encryption/{encryption_id} - -Delete an encryption type. +.. rest_method:: DELETE /v3/{project_id}/types/{volume_type_id}/encryption/{encryption_id} To delete an encryption type for an existing volume type. @@ -482,8 +463,6 @@ Create an encryption type .. rest_method:: POST /v3/{project_id}/types/{volume_type_id}/encryption -Creates an encryption type. - To create an encryption type for an existing volume type. Normal response codes: 200 @@ -534,8 +513,6 @@ Update an encryption type .. rest_method:: PUT /v3/{project_id}/types/{volume_type_id}/encryption/{encryption_id} -Update an encryption type. - To update an encryption type for an existing volume type. Normal response codes: 200