api-ref: mark device response param as optional for list/show vol attachments
The 'device' response parameter is not included in GET /servers/{server_id}/os-volume_attachments or GET /servers/{server_id}/os-volume_attachments/{volume_id} when the BDM doesn't have a device_name set, which can be the case with a volume attached to a shelved offloaded server. Also, see the logic in _translate_attachment_detail_view and _translate_attachment_summary_view. This simply marks the response parameter as optional in those APIs. Since the parameter is optional, it is sorted to after the required parameters but before the parameters added in new microversions. Change-Id: Ifda2f7983f349d51d97e5621cac6c5ad9cb0295f Closes-Bug: #1818345
This commit is contained in:
parent
80385a22ee
commit
6ee0da7e5b
|
@ -34,10 +34,10 @@ Response
|
|||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- volumeAttachments: volumeAttachments
|
||||
- device: device_resp
|
||||
- id: attachment_id_required
|
||||
- serverId: server_id
|
||||
- volumeId: volumeId_resp
|
||||
- device: attachment_device_resp
|
||||
- tag: device_tag_bdm_attachment_resp
|
||||
- delete_on_termination: delete_on_termination_attachments_resp
|
||||
|
||||
|
@ -150,10 +150,10 @@ Response
|
|||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- volumeAttachment: volumeAttachment
|
||||
- device: device_resp
|
||||
- id: attachment_id_required
|
||||
- serverId: server_id
|
||||
- volumeId: volumeId_resp
|
||||
- device: attachment_device_resp
|
||||
- tag: device_tag_bdm_attachment_resp
|
||||
- delete_on_termination: delete_on_termination_attachments_resp
|
||||
|
||||
|
|
Loading…
Reference in New Issue