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:
Request parameters:
- This functionality is available only with the Nova 2.22 microversion.
- PowerVC does not support swapping volumes.
Name | Style | Type | Description |
---|---|---|---|
|
body |
Boolean |
Optional. Specify whether the volume in the attachment must be deleted when the associated virtual machine is deleted. |
{
"volumeAttachment":
{
"volumeId": "300917df-15ed-4b57-a58a-ffc4d810d61a",
"delete_on_termination": false
}
}