Skip to content

Commit 9d54673

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Update the parameter explain when updating a volume attachment"
2 parents 93888df + a2a17c0 commit 9d54673

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

api-ref/source/os-volume-attachments.inc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,17 @@ Response
138138
Update a volume attachment
139139
==========================
140140

141-
.. rest_method:: PUT /servers/{server_id}/os-volume_attachments/{attachment_id}
141+
.. rest_method:: PUT /servers/{server_id}/os-volume_attachments/{volume_id}
142142

143143
Update a volume attachment.
144144

145145
.. note:: This action only valid when the server is in ACTIVE, PAUSED and RESIZED state,
146146
or a conflict(409) error will be returned.
147147

148+
Policy defaults enable only users with the administrative role or
149+
the owner of the server to perform this operation. Cloud providers
150+
can change these permissions through the ``policy.json`` file.
151+
148152
Normal response codes: 202
149153

150154
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)
@@ -155,7 +159,7 @@ Request
155159
.. rest_parameters:: parameters.yaml
156160

157161
- server_id: server_id_path
158-
- attachment_id: attachment_id
162+
- volume_id: volume_id_swap_src
159163
- volumeAttachment: volumeAttachment_put
160164
- volumeId: volumeId_swap
161165

api-ref/source/parameters.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ api_version:
8787
type: string
8888
description: >
8989
The API version as returned in the links from the ``GET /`` call.
90-
attachment_id:
91-
description: |
92-
The UUID of the attachment.
93-
in: path
94-
required: true
95-
type: string
9690
before_timestamp:
9791
description: |
9892
Filters the response by the date and time before which to list usage
@@ -349,6 +343,12 @@ volume_id_path:
349343
in: path
350344
required: true
351345
type: string
346+
volume_id_swap_src:
347+
description: |
348+
The UUID of the volume being replaced.
349+
in: path
350+
required: true
351+
type: string
352352
volume_id_to_detach_path:
353353
description: |
354354
The UUID of the volume to detach.
@@ -6683,7 +6683,7 @@ volumeAttachment_post:
66836683
volumeAttachment_put:
66846684
description: |
66856685
A dictionary representation of a volume attachment containing the field
6686-
``volumeId``.
6686+
``volumeId`` which is the UUID of the replacement volume.
66876687
in: body
66886688
required: true
66896689
type: object

0 commit comments

Comments
 (0)