ServerMania logo

Get VS Disk Details

To view the details of a VS disk, use the following request:

GET /virtual_machines/:id/disks/:id.xml
GET /virtual_machines/:id/disks/:id.json

XML Request Example

curl -i -X GET -u user:userpass --url http://test/virtual_machines/4/disks/4.xml

JSON Request Example

curl -i -X GET -u user:userpass --url http://test/virtual_machines/4/disks/4.json

XML Output Example

  <disk>
    <add_to_freebsd_fstab nil="true"/>
    <add_to_linux_fstab nil="true"/>
    <built type="boolean">true</built>
    <burst_bw type="integer">1000</burst_bw>
    <created_at type="datetime">2015-03-31T11:15:51+00:00</created_at>
    <data_store_id type="integer">9</data_store_id>
    <disk_size type="integer">10</disk_size>
    <disk_vm_number type="integer">1</disk_vm_number>
    <file_system nil="true"/>
    <id type="integer">4</id>
    <identifier>nd6550ds78cmo0</identifier>
    <iqn nil="true"/>
    <is_swap type="boolean">false</is_swap>
    <label>Hard disk 1</label>
    <locked type="boolean">false</locked>
    <max_bw type="integer">1000</max_bw>
    <mount_point>/mnt/disk-nd6550ds78cmo0</mount_point>
    <primary type="boolean">false</primary>
    <updated_at type="datetime">2015-03-31T11:15:51+00:00</updated_at>
    <virtual_machine_id type="integer">4</virtual_machine_id>
    <volume_id nil="true"/>
    <has_autobackups type="boolean">false</has_autobackups>
  </disk>

Where:

add_to_freebsd_fstab - true, if this disk is added to the FreeBSD fstab, otherwise false

add_to_linux_fstab - true, if this disk is added to Linux fstab, otherwise false

built - true if the disk is built, otherwise false

created_at - the date when the disk was created in the [YYYY][MM][DD]T[hh][mm][ss]Z format

data_store_id - the ID of the data store this disk is located

disk_size - disk size in GB

disk_vm_number - the number of virtual servers using this disk

file_system - disk filesystem (ext3 or ext4)

id - the disk ID

identifier - disk identifier

is_swap - true if this is a swap disk, otherwise false

label - disk's label

locked - true if the disk is locked, otherwise false

mount_point - disk mount point.

primary - true if the disk is primary. Otherwise false.

updated_at - the date when the disk was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format

virtual_machine_id - the ID of the virtual server using this disk

volume_id - data store ID

has_autobackups - true if the disk has automatic backups set up, otherwise false

SolidFire - related parameters:

iqn - volume ISCSI qualified name

burst_bw - maximum bandwidth allowed set in MB/sec

max_bw -maximum bandwidth allowed set in MB/sec