<disk_attachment>
<bootable>true</bootable>
<interface>ide</interface>
<disk id="123"/>
</disk_attachment>
public static interface DiskAttachmentsService.AddRequest extends Request<DiskAttachmentsService.AddRequest,DiskAttachmentsService.AddResponse>
Adds a new disk attachment to the virtual machine. The attachment
parameter can contain just a reference, if
the disk already exists:
<disk_attachment>
<bootable>true</bootable>
<interface>ide</interface>
<disk id="123"/>
</disk_attachment>
Or it can contain the complete representation of the disk, if the disk doesn’t exist yet:
<disk_attachment>
<bootable>true</bootable>
<interface>ide</interface>
<disk>
<name>mydisk</name>
<provisioned_size>1024</provisioned_size>
...
</disk>
</disk_attachment>
In this case the disk will be created and then attached to the virtual machine.
Modifier and Type | Method and Description |
---|---|
DiskAttachmentsService.AddRequest |
attachment(DiskAttachment attachment) |
DiskAttachmentsService.AddRequest |
attachment(DiskAttachmentBuilder attachment) |
DiskAttachmentsService.AddRequest attachment(DiskAttachment attachment)
DiskAttachmentsService.AddRequest attachment(DiskAttachmentBuilder attachment)
Copyright © 2016. All rights reserved.