Volume Attachment
Operations for attaching/detaching of volumes to/from virtual machines.
Endpoint Name | URL | Description |
---|---|---|
Attach volumes to virtual machine | POST /core/virtual-machines/{virtual_machine_id}/attach-volumes | Attaches one or more volumes to a virtual machine. |
Detach volumes from virtual machiine | POST /core/virtual-machines/{virtual_machine_id}/detach-volumes | Removes 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"
}