<disk_attachment>
<bootable>true</bootable>
<interface>ide</interface>
<disk id="123"/>
</disk_attachment>
public interface DiskAttachmentsService extends Service
This service manages the set of disks attached to a virtual machine. Each attached disk is represented by a DiskAttachment, containing the bootable flag, the disk interface and the reference to the disk.
Modifier and Type | Interface and Description |
---|---|
static interface |
DiskAttachmentsService.AddRequest
Adds a new disk attachment to the virtual machine.
|
static interface |
DiskAttachmentsService.AddResponse
Adds a new disk attachment to the virtual machine.
|
static interface |
DiskAttachmentsService.ListRequest
List the disk that are attached to the virtual machine.
|
static interface |
DiskAttachmentsService.ListResponse
List the disk that are attached to the virtual machine.
|
Modifier and Type | Method and Description |
---|---|
DiskAttachmentsService.AddRequest |
add()
Adds a new disk attachment to the virtual machine.
|
DiskAttachmentService |
attachmentService(String id)
Reference to the service that manages a specific attachment.
|
DiskAttachmentsService.ListRequest |
list()
List the disk that are attached to the virtual machine.
|
Service |
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
|
DiskAttachmentsService.AddRequest add()
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.
DiskAttachmentsService.ListRequest list()
List the disk that are attached to the virtual machine.
DiskAttachmentService attachmentService(String id)
Reference to the service that manages a specific attachment.
Copyright © 2016. All rights reserved.