
This microversion adds attachment_id and bdm_uuid as stored in the underlying bdm record while also removing the duplicate id field from the responses of ``GET /servers/{server_id}/os-volume_attachments`` and ``GET /servers/{server_id}/os-volume_attachments/{volume_id}``. To accomidate this within the _translate_attachment_summary_view helper is folded into _translate_attachment_detail_view with the remaining caller in the now deprecated os-volumes API now replaced with a static dictionary. Blueprint: add-attachmentid-to-responses-of-the-os-volume-attachments-api Change-Id: I977c3fd9bbb1e1d42e6979222137e7366d2815e8
23 lines
804 B
JSON
23 lines
804 B
JSON
{
|
|
"volumeAttachments": [
|
|
{
|
|
"attachment_id": "979ce4f8-033a-409d-85e6-6b5c0f6a6302",
|
|
"delete_on_termination": false,
|
|
"device": "/dev/sdc",
|
|
"serverId": "7696780b-3f53-4688-ab25-019bfcbbd806",
|
|
"tag": null,
|
|
"volumeId": "227cc671-f30b-4488-96fd-7d0bf13648d8",
|
|
"bdm_uuid": "c088db45-92b8-49e8-81e2-a1b77a144b3b"
|
|
},
|
|
{
|
|
"attachment_id": "c5684109-0311-4fca-9814-350e46ab7d2a",
|
|
"delete_on_termination": true,
|
|
"device": "/dev/sdb",
|
|
"serverId": "7696780b-3f53-4688-ab25-019bfcbbd806",
|
|
"tag": "foo",
|
|
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
|
|
"bdm_uuid": "1aa24536-6fb5-426c-8894-d627f39aa48b"
|
|
}
|
|
]
|
|
}
|