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
7 lines
155 B
JSON
7 lines
155 B
JSON
{
|
|
"volumeAttachment": {
|
|
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113",
|
|
"tag": "foo",
|
|
"delete_on_termination": true
|
|
}
|
|
} |