733d4133df
Allow PUT /servers/{server_id}/os-volume_attachments/{volume_id}`` to support specifying ``delete_on_termination`` field in the request body. This allows updating the attached volume's flag that controls whether or not it is automatically deleted when the instance is deleted. When we request 'volumeId' and 'delete_on_termination' in the requst body to swap volume, since the new microversion it will be support updating the swapping volume's delete flag. Co-Authored-By: Dan Smith <dansmith@redhat.com> Blueprint: destroy-instance-with-datavolume Change-Id: I6ccac4e17f56b40e67c79d40f32558ef414685ea
10 lines
299 B
JSON
10 lines
299 B
JSON
{
|
|
"volumeAttachment": {
|
|
"delete_on_termination": true,
|
|
"device": "/dev/sdb",
|
|
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
|
|
"serverId": "09b3b9d1-b8c5-48e1-841d-62c3ef967a88",
|
|
"tag": "foo",
|
|
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
|
|
}
|
|
} |