v1

latestSwagger 2.02026-08-04232286653.5 KB
VMs

Attaches disks to a VM in the project and returns the async operation.

post/projects/{project_id}/compute/vms/instances/{vm_id}/attach-disks

Path parameters

project_idstring required

ID of the project that owns the VM.

vm_idstring required

ID of the VM.

Request body

Example request

{
  "attach_disks": [
    {
      "attachment_type": "data",
      "disk_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
      "mode": "read-write"
    }
  ]
}

Response

Example response

{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": "{}",
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": "{}",
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}