PUT /vms/{vm:id}/disksattachments/{attachment:id}
<disk_attachment>
<bootable>true</bootable>
<interface>ide</interface>
<disk>
<name>mydisk</name>
<provisioned_size>1024</provisioned_size>
...
</disk>
</disk_attachment>
public interface DiskAttachmentService extends Service
This service manages the attachment of a disk to a virtual machine.
Modifier and Type | Interface and Description |
---|---|
static interface |
DiskAttachmentService.GetRequest
Returns the details of the attachment, including the bootable flag and link to the disk.
|
static interface |
DiskAttachmentService.GetResponse
Returns the details of the attachment, including the bootable flag and link to the disk.
|
static interface |
DiskAttachmentService.RemoveRequest
Removes the disk attachment.
|
static interface |
DiskAttachmentService.RemoveResponse
Removes the disk attachment.
|
static interface |
DiskAttachmentService.UpdateRequest
Update the disk attachment and the disk properties within it.
|
static interface |
DiskAttachmentService.UpdateResponse
Update the disk attachment and the disk properties within it.
|
Modifier and Type | Method and Description |
---|---|
DiskAttachmentService.GetRequest |
get()
Returns the details of the attachment, including the bootable flag and link to the disk.
|
DiskAttachmentService.RemoveRequest |
remove()
Removes the disk attachment.
|
Service |
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
|
DiskAttachmentService.UpdateRequest |
update()
Update the disk attachment and the disk properties within it.
|
DiskAttachmentService.GetRequest get()
Returns the details of the attachment, including the bootable flag and link to the disk.
DiskAttachmentService.RemoveRequest remove()
Removes the disk attachment. This will only detach the disk from the virtual machine, but won’t remove it from
the system, unless the detach_only
parameter is false
.
DiskAttachmentService.UpdateRequest update()
Update the disk attachment and the disk properties within it.
PUT /vms/{vm:id}/disksattachments/{attachment:id}
<disk_attachment>
<bootable>true</bootable>
<interface>ide</interface>
<disk>
<name>mydisk</name>
<provisioned_size>1024</provisioned_size>
...
</disk>
</disk_attachment>
Copyright © 2016. All rights reserved.