Skip to main content

Volume Attachment

Operations for attaching/detaching of volumes to/from virtual machines.

Endpoint NameURLDescription
Attach volumes to virtual machine /core/virtual-machines/{virtual_machine_id}/attach-volumesAttaches one or more volumes to a virtual machine.
Detach volumes from virtual machiine /core/virtual-machines/{virtual_machine_id}/detach-volumesRemoves one or more volumes from a virtual machine.

The volume attachments objects

Volume attachment endpoints return an array of volume_attachments objects, offering details about the attachment/detachment of volumes to/from virtual machines.


Attributes of the volume_attachments object


id integer

Attachment ID of the volume to the virtual machine.


instance_id integer

The ID of the virtual machine to which the volume is attached.


volume_id integer

The ID of the volume attached to the virtual machine.


status string

The status of the volume attachment.


created_at date-time

The timestamp when the volume attachment occurred.


Response
{
"id": 0,
"instance_id": 0,
"volume_id": 0,
"status": "string",
"created_at": "1970-01-01T00:00:00.000Z"
}

Back to top