Update volume attachment

IBM® Power® Virtualization Center has extended the functionality of the PUT /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{volume_id} which allows you to set the delete_on_termination attribute of volume attachments. This enables you to control whether a volume will be deleted when the associated virtual machine is deleted.

Note:
  • This functionality is available only with the Nova 2.22 microversion.
  • PowerVC does not support swapping volumes.
Request parameters:
Table 1. Parameters in the request for updating volume attachment
Name Style Type Description

delete_on_termination

body

Boolean

Optional. Specify whether the volume in the attachment must be deleted when the associated virtual machine is deleted.

Example:
{
    "volumeAttachment":
    {
        "volumeId": "300917df-15ed-4b57-a58a-ffc4d810d61a",
        "delete_on_termination": false
    }
}