summaryrefslogtreecommitdiff
path: root/api-ref/source/os-volume-attachments.inc
diff options
context:
space:
mode:
authorfpxie <fpxie@fiberhome.com>2018-04-30 18:10:41 +0800
committerGhanshyam Mann <gmann@ghanshyammann.com>2018-08-09 02:45:19 +0000
commita2a17c06252a98c293e2c547ebe9f54b15366193 (patch)
treec979433a9c683d96b0de7c137c7f3739529986a8 /api-ref/source/os-volume-attachments.inc
parentc52c2caf97a90de8770e9296d553e0e4a65ac946 (diff)
downloadnova-a2a17c06252a98c293e2c547ebe9f54b15366193.tar.gz
Update the parameter explain when updating a volume attachment
When we update a volume attachment in nova api, we use volume_id instead of attachment_id in params in latest api. Change-Id: I5fc4d0ba3bb1c49dfaba2b2eed056441509cb9da
Diffstat (limited to 'api-ref/source/os-volume-attachments.inc')
-rw-r--r--api-ref/source/os-volume-attachments.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/api-ref/source/os-volume-attachments.inc b/api-ref/source/os-volume-attachments.inc
index 1f5042fe39..99a125562a 100644
--- a/api-ref/source/os-volume-attachments.inc
+++ b/api-ref/source/os-volume-attachments.inc
@@ -138,13 +138,17 @@ Response
Update a volume attachment
==========================
-.. rest_method:: PUT /servers/{server_id}/os-volume_attachments/{attachment_id}
+.. rest_method:: PUT /servers/{server_id}/os-volume_attachments/{volume_id}
Update a volume attachment.
.. note:: This action only valid when the server is in ACTIVE, PAUSED and RESIZED state,
or a conflict(409) error will be returned.
+Policy defaults enable only users with the administrative role or
+the owner of the server to perform this operation. Cloud providers
+can change these permissions through the ``policy.json`` file.
+
Normal response codes: 202
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)
@@ -155,7 +159,7 @@ Request
.. rest_parameters:: parameters.yaml
- server_id: server_id_path
- - attachment_id: attachment_id
+ - volume_id: volume_id_swap_src
- volumeAttachment: volumeAttachment_put
- volumeId: volumeId_swap