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 class DiskAttachmentServiceImpl extends ServiceImpl implements DiskAttachmentService
DiskAttachmentService.GetRequest, DiskAttachmentService.GetResponse, DiskAttachmentService.RemoveRequest, DiskAttachmentService.RemoveResponse, DiskAttachmentService.UpdateRequest, DiskAttachmentService.UpdateResponse
Constructor and Description |
---|
DiskAttachmentServiceImpl(HttpConnection connection,
String path) |
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.
|
String |
toString() |
DiskAttachmentService.UpdateRequest |
update()
Update the disk attachment and the disk properties within it.
|
checkAction, checkFault, getConnection, getPath, throwError
public DiskAttachmentServiceImpl(HttpConnection connection, String path)
public DiskAttachmentService.GetRequest get()
DiskAttachmentService
Returns the details of the attachment, including the bootable flag and link to the disk.
get
in interface DiskAttachmentService
public DiskAttachmentService.RemoveRequest remove()
DiskAttachmentService
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
.
remove
in interface DiskAttachmentService
public DiskAttachmentService.UpdateRequest update()
DiskAttachmentService
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>
update
in interface DiskAttachmentService
public Service service(String path)
DiskAttachmentService
Service locator method, returns individual service on which the URI is dispatched.
service
in interface DiskAttachmentService
Copyright © 2016. All rights reserved.