From 7e1700401899a7a11ff003cf43bc10e92d59cac0 Mon Sep 17 00:00:00 2001 From: wanghao Date: Wed, 17 May 2017 14:41:51 +0800 Subject: [PATCH] Fix incorrect volume_id request description in api-ref Now some API documents for volume actions like extending volume(https://developer.openstack.org/api-ref/ block-storage/v3/?expanded=extend-a-volume-size-detail) are using incorrect request argument description 'volume_id in body'. It should be 'in path'. Change-Id: I2006b4af4dfc09fb0403c1a78ecef4ac920a51c4 Closes-Bug: #1691358 --- api-ref/source/v2/volumes-v2-volumes-actions.inc | 12 ++++++------ api-ref/source/v3/volumes-v3-volumes-actions.inc | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/api-ref/source/v2/volumes-v2-volumes-actions.inc b/api-ref/source/v2/volumes-v2-volumes-actions.inc index 000349d3c10..85707b38a15 100644 --- a/api-ref/source/v2/volumes-v2-volumes-actions.inc +++ b/api-ref/source/v2/volumes-v2-volumes-actions.inc @@ -43,7 +43,7 @@ Request - os-extend: os-extend - new_size: new_size - tenant_id: tenant_id - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -77,7 +77,7 @@ Request - os-reset_status: os-reset_status - attach_status: attach_status - tenant_id: tenant_id - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -109,7 +109,7 @@ Request - os-set_image_metadata: os-set_image_metadata - metadata: metadata - tenant_id: tenant_id - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -141,7 +141,7 @@ Request - os-unset_image_metadata: os-unset_image_metadata - key: key - tenant_id: tenant_id - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -255,7 +255,7 @@ Request - os-unmanage: os-unmanage - tenant_id: tenant_id - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -291,7 +291,7 @@ Request - attachment_id: attachment_id - os-force_detach: os-force_detach - tenant_id: tenant_id - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- diff --git a/api-ref/source/v3/volumes-v3-volumes-actions.inc b/api-ref/source/v3/volumes-v3-volumes-actions.inc index 7c484244747..5a63626459e 100644 --- a/api-ref/source/v3/volumes-v3-volumes-actions.inc +++ b/api-ref/source/v3/volumes-v3-volumes-actions.inc @@ -43,7 +43,7 @@ Request - os-extend: os-extend - new_size: new_size - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -77,7 +77,7 @@ Request - os-reset_status: os-reset_status - attach_status: attach_status - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -109,7 +109,7 @@ Request - os-set_image_metadata: os-set_image_metadata - metadata: metadata - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -141,7 +141,7 @@ Request - os-unset_image_metadata: os-unset_image_metadata - key: key - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -217,7 +217,7 @@ Request - attachment_id: attachment_id - os-detach: os-detach - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -252,7 +252,7 @@ Request - os-unmanage: os-unmanage - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example --------------- @@ -288,7 +288,7 @@ Request - attachment_id: attachment_id - os-force_detach: os-force_detach - project_id: project_id_path - - volume_id: volume_id + - volume_id: volume_id_path Request Example ---------------