Get List of VSs

Da Wiki Neen.
(Differenze fra le revisioni)
(Creata pagina con 'To get the list of VS, use the following request: GET /virtual_machines.xml<br>GET /virtual_machines.json XML Output example <?xml version="1.0" encoding="UTF-8"?><br>&...')
 
Riga 1: Riga 1:
To get the list of VS, use the following request:
+
To get the list of VS, use the following request:  
  
 
GET /virtual_machines.xml<br>GET /virtual_machines.json  
 
GET /virtual_machines.xml<br>GET /virtual_machines.json  
  
XML Output example
+
'''XML Output example'''
  
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;virtual_machines&gt;<br>&lt;virtual_machine&gt;<br>&lt;add_to_marketplace nil="true"&gt;&lt;/add_to_marketplace&gt;<br>&lt;admin_note nil="true"&gt;&lt;/admin_note&gt;<br>&lt;allow_resize_without_reboot type="boolean"&gt;true&lt;/allow_resize_without_reboot&gt;<br>&lt;allowed_hot_migrate type="boolean"&gt;true&lt;/allowed_hot_migrate&gt;<br>&lt;allowed_swap type="boolean"&gt;true&lt;/allowed_swap&gt;<br>&lt;booted type="boolean"&gt;true&lt;/booted&gt;<br>&lt;built type="boolean"&gt;true&lt;/built&gt;<br>&lt;cpu_shares type="integer"&gt;1&lt;/cpu_shares&gt;<br>&lt;cpus type="integer"&gt;1&lt;/cpus&gt;<br>&lt;created_at type="datetime"&gt;2011-11-01T17:11:58+03:00&lt;/created_at&gt;<br>&lt;enable_autoscale type="boolean"&gt;true&lt;/enable_autoscale&gt;<br>&lt;enable_monitis type="boolean"&gt;true&lt;/enable_monitis&gt;<br>&lt;hostname&gt;autobackup&lt;/hostname&gt;<br>&lt;hypervisor_id type="integer"&gt;2&lt;/hypervisor_id&gt;<br>&lt;id type="integer"&gt;373&lt;/id&gt;<br>&lt;identifier&gt;iskngs9dve0hdg&lt;/identifier&gt;<br>&lt;initial_root_password&gt;791791&lt;/initial_root_password&gt;<br>&lt;initial_root_password_encrypted type="boolean"&gt;false&lt;/initial_root_password_encrypted&gt;<br>&lt;label&gt;YR_autobackup&lt;/label&gt;<br>&lt;local_remote_access_port type="integer"&gt;5903&lt;/local_remote_access_port&gt;<br>&lt;locked type="boolean"&gt;false&lt;/locked&gt;<br>&lt;max_memory type="integer"&gt;2048&lt;/max_memory&gt;<br>&lt;memory type="integer"&gt;128&lt;/memory&gt;<br>&lt;min_disk_size type="integer"&gt;5&lt;/min_disk_size&gt;<br>&lt;primary_disk_min_iops&gt;600&lt;/primary_disk_min_iops&gt;<br>&lt;swap_disk_min_iops&gt;600&lt;/swap_disk_min_iops&gt;<br>&lt;note nil="true"&gt;&lt;/note&gt;<br>&lt;operating_system&gt;linux&lt;/operating_system&gt;<br>&lt;operating_system_distro&gt;rhel&lt;/operating_system_distro&gt;<br>&lt;recovery_mode type="boolean"&gt;false&lt;/recovery_mode&gt;<br>&lt;remote_access_password&gt;os3ajolb1buj&lt;/remote_access_password&gt;<br>&lt;state&gt;new&lt;/state&gt;<br>&lt;strict_virtual_machine_id nil="true"&gt;&lt;/strict_virtual_machine_id&gt;<br>&lt;suspended type="boolean"&gt;false&lt;/suspended&gt;<br>&lt;template_id type="integer"&gt;8&lt;/template_id&gt;<br>&lt;template_label&gt;CentOS 5.6 x86&lt;/template_label&gt;<br>&lt;update_billing_stat type="boolean"&gt;false&lt;/update_billing_stat&gt;<br>&lt;updated_at type="datetime"&gt;2011-11-04T13:22:25+03:00&lt;/updated_at&gt;<br>&lt;user_id type="integer"&gt;5&lt;/user_id&gt;<br>&lt;vip nil="true"&gt;&lt;/vip&gt;<br>&lt;xen_id type="integer"&gt;12&lt;/xen_id&gt;<br>&lt;ip_addresses type="array"&gt;<br>&lt;ip_address&gt; &lt;created_at type="datetime"&gt;2011-10-10T12:31:12+03:00&lt;/created_at&gt;<br>&lt;disallowed_primary type="boolean"&gt;false&lt;/disallowed_primary&gt;<br>&lt;id type="integer"&gt;2&lt;/id&gt;<br>&lt;network_id type="integer"&gt;1&lt;/network_id&gt;<br>&lt;updated_at type="datetime"&gt;2011-11-01T17:39:13+03:00&lt;/updated_at&gt;<br>&lt;user_id nil="true"&gt;&lt;/user_id&gt;<br>&lt;free type="boolean"&gt;false&lt;/free&gt;<br>&lt;address&gt;109.123.105.180&lt;/address&gt;<br>&lt;gateway&gt;109.123.105.177&lt;/gateway&gt;<br>&lt;network_address&gt;109.123.105.176&lt;/network_address&gt;<br>&lt;broadcast&gt;109.123.105.191&lt;/broadcast&gt;<br>&lt;netmask&gt;255.255.255.240&lt;/netmask&gt;<br>&lt;/ip_address&gt;<br>&lt;/ip_addresses&gt;<br>&lt;total_disk_size type="integer"&gt;6&lt;/total_disk_size&gt;<br>&lt;/virtual_machine&gt;<br>...<br>&lt;virtual_machine&gt;&lt;/virtual_machine&gt;<br>...<br>&lt;/virtual_machine&gt;
 
  
Where:
 
  
add_to_marketplace — empty for VSs; used for edge servers only
+
<source language="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<virtual_machines>
 +
<virtual_machine>
 +
<add_to_marketplace nil="true"></add_to_marketplace>
 +
<admin_note nil="true"></admin_note>
 +
<allow_resize_without_reboot type="boolean">true</allow_resize_without_reboot>
 +
<allowed_hot_migrate type="boolean">true</allowed_hot_migrate>
 +
<allowed_swap type="boolean">true</allowed_swap>
 +
<booted type="boolean">true</booted>
 +
<built type="boolean">true</built>
 +
<cpu_shares type="integer">1</cpu_shares>
 +
<cpus type="integer">1</cpus>
 +
<created_at type="datetime">2011-11-01T17:11:58+03:00</created_at>
 +
<enable_autoscale type="boolean">true</enable_autoscale>
 +
<enable_monitis type="boolean">true</enable_monitis>
 +
<hostname>autobackup</hostname>
 +
<hypervisor_id type="integer">2</hypervisor_id>
 +
<id type="integer">373</id>
 +
<identifier>iskngs9dve0hdg</identifier>
 +
<initial_root_password>791791</initial_root_password>
 +
<initial_root_password_encrypted type="boolean">false</initial_root_password_encrypted>
 +
<label>YR_autobackup</label>
 +
<local_remote_access_port type="integer">5903</local_remote_access_port>
 +
<locked type="boolean">false</locked>
 +
<max_memory type="integer">2048</max_memory>
 +
<memory type="integer">128</memory>
 +
<min_disk_size type="integer">5</min_disk_size>
 +
<primary_disk_min_iops>600</primary_disk_min_iops>
 +
<swap_disk_min_iops>600</swap_disk_min_iops>
 +
<note nil="true"></note>
 +
<operating_system>linux</operating_system>
 +
<operating_system_distro>rhel</operating_system_distro>
 +
<recovery_mode type="boolean">false</recovery_mode>
 +
<remote_access_password>os3ajolb1buj</remote_access_password>
 +
<state>new</state>
 +
<strict_virtual_machine_id nil="true"></strict_virtual_machine_id>
 +
<suspended type="boolean">false</suspended>
 +
<template_id type="integer">8</template_id>
 +
<template_label>CentOS 5.6 x86</template_label>
 +
<update_billing_stat type="boolean">false</update_billing_stat>
 +
<updated_at type="datetime">2011-11-04T13:22:25+03:00</updated_at>
 +
<user_id type="integer">5</user_id>
 +
<vip nil="true"></vip>
 +
<xen_id type="integer">12</xen_id>
 +
<ip_addresses type="array">
 +
<ip_address> <created_at type="datetime">2011-10-10T12:31:12+03:00</created_at>
 +
<disallowed_primary type="boolean">false</disallowed_primary>
 +
<id type="integer">2</id>
 +
<network_id type="integer">1</network_id>
 +
<updated_at type="datetime">2011-11-01T17:39:13+03:00</updated_at>
 +
<user_id nil="true"></user_id>
 +
<free type="boolean">false</free>
 +
<address>109.123.105.180</address>
 +
<gateway>109.123.105.177</gateway>
 +
<network_address>109.123.105.176</network_address>
 +
<broadcast>109.123.105.191</broadcast>
 +
<netmask>255.255.255.240</netmask>
 +
</ip_address>
 +
</ip_addresses>
 +
<total_disk_size type="integer">6</total_disk_size>
 +
</virtual_machine>
 +
...
 +
<virtual_machine></virtual_machine>
 +
...
 +
</virtual_machine>
 +
</source>
  
admin_note — an optional note of the administrator
+
Where:
  
allow_resize_without_reboot true if resize without reboot is possible; otherwise false
+
add_to_marketplace empty for VSs; used for edge servers only
  
allowed_hot_migrate true if the template, on which the VS is based, supports hot migration; otherwise false
+
admin_note an optional note of the administrator
  
allowed_swap — true if swap disk is allowed (depends on the template the VS is based on); otherwise false
+
allow_resize_without_reboot — true if resize without reboot is possible; otherwise false  
  
booted — true if the VS is running, otherwise false
+
allowed_hot_migrate — true if the template, on which the VS is based, supports hot migration; otherwise false  
  
built — true if the VS is built, otherwise false
+
allowed_swap — true if swap disk is allowed (depends on the template the VS is based on); otherwise false  
  
cpus — the number of allocated CPU cores
+
booted true if the VS is running, otherwise false
  
cpu_shares CPU priority in percent's
+
built true if the VS is built, otherwise false
  
created_at — the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
+
cpus — the number of allocated CPU cores
  
enable_autoscale true if autoscaling is allowed for this Vs
+
cpu_shares CPU priority in percent's
  
hostname — the name of your host
+
created_at — the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
  
hypervisor_id the ID of the hypervisor used by this VS
+
enable_autoscale true if autoscaling is allowed for this Vs
  
id — the VS ID
+
hostname — the name of your host
  
identifier — the VS identifier
+
hypervisor_id — the ID of the hypervisor used by this VS  
  
initial_root_password — the VS root password
+
id — the VS ID
  
initial_root_password_encrypted - true, if the root password is encrypted, otherwise false.
+
identifier — the VS identifier
  
ip_addresses an array of ip addresses with their details assigned to this VS
+
initial_root_password the VS root password
  
label — the VS label
+
initial_root_password_encrypted - true, if the root password is encrypted, otherwise false.
  
local_remote_access_port the port ID used for console access
+
ip_addresses an array of ip addresses with their details assigned to this VS
  
locked true if the VS is locked; otherwise false
+
label — the VS label
  
max_memory maximum amount of RAM which can be allocated to the VS by the hypervisor
+
local_remote_access_port — the port ID used for console access
  
memory — the RAM size allocated to this VS
+
locked true if the VS is locked; otherwise false
  
min_disk_size the minimum disk size required to build a VS from a specified template
+
max_memory maximum amount of RAM which can be allocated to the VS by the hypervisor
  
primary_disk_min_iops - minimum number of IO operations per second for primary disk (this is a SolidFire related parameter)
+
memory — the RAM size allocated to this VS
  
swap_disk_min_iops - minimum number of IO operations per second for swap disk (this is a SolidFire related parameter)
+
min_disk_size — the minimum disk size required to build a VS from a specified template
  
note — an optional reminder for this VS made by a user account
+
primary_disk_min_iops - minimum number of IO operations per second for primary disk (this is a SolidFire related parameter)
  
network_address – the address of the network
+
swap_disk_min_iops - minimum number of IO operations per second for swap disk (this is a SolidFire related parameter)
  
operating_system operating system used by the VS
+
note an optional reminder for this VS made by a user account
  
operating_system_distro — the distribution of the OS from which this VS is built
+
network_address – the address of the network
  
recovery_mode true if recovery mode allowed. Otherwise false
+
operating_system operating system used by the VS
  
remote_access_password — the password for the remote access
+
operating_system_distro — the distribution of the OS from which this VS is built
  
state – parameter reserved for future use
+
recovery_mode — true if recovery mode allowed. Otherwise false
  
strict_virtual_machine_id — the ID of a virtual server that will never reside on the same hypervisor with this VS
+
remote_access_password — the password for the remote access
  
suspended — true if VS is suspended, otherwise false
+
state – parameter reserved for future use
  
template_id — the ID of the template the VS is based on
+
strict_virtual_machine_id — the ID of a virtual server that will never reside on the same hypervisor with this VS  
  
template_label the name of the template from which this VS is built
+
suspended true if VS is suspended, otherwise false
  
total_disk_size — the total disk size in GB of all disks assigned to VS
+
template_id — the ID of the template the VS is based on
  
updated_at — the date when the VS was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format
+
template_label — the name of the template from which this VS is built
  
user_id — the ID of a user assigned to this VS
+
total_disk_size — the total disk size in GB of all disks assigned to VS  
  
vip true if the VS has VIP status (gives migration priority)
+
updated_at the date when the VS was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format
  
xen_id — the VS ID set by the virtualization engine
+
user_id — the ID of a user assigned to this VS
 +
 
 +
vip — true if the VS has VIP status (gives migration priority)
 +
 
 +
xen_id — the VS ID set by the virtualization engine  
  
 
<br><br>
 
<br><br>

Versione delle 17:19, 20 feb 2014

To get the list of VS, use the following request:

GET /virtual_machines.xml
GET /virtual_machines.json

XML Output example


Linguaggio non riconosciuto.

È necessario specificare un linguaggio in questo modo: <source lang="html4strict">...</source>

Linguaggi di cui è possibile evidenziare la sintassi in colore:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, oobas, oracle11, oracle8, oxygene, oz, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, uscript, vala, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


<?xml version="1.0" encoding="UTF-8"?>
<virtual_machines>
<virtual_machine>
<add_to_marketplace nil="true"></add_to_marketplace>
<admin_note nil="true"></admin_note>
<allow_resize_without_reboot type="boolean">true</allow_resize_without_reboot>
<allowed_hot_migrate type="boolean">true</allowed_hot_migrate>
<allowed_swap type="boolean">true</allowed_swap>
<booted type="boolean">true</booted>
<built type="boolean">true</built>
<cpu_shares type="integer">1</cpu_shares>
<cpus type="integer">1</cpus>
<created_at type="datetime">2011-11-01T17:11:58+03:00</created_at>
<enable_autoscale type="boolean">true</enable_autoscale>
<enable_monitis type="boolean">true</enable_monitis>
<hostname>autobackup</hostname>
<hypervisor_id type="integer">2</hypervisor_id>
<id type="integer">373</id>
<identifier>iskngs9dve0hdg</identifier>
<initial_root_password>791791</initial_root_password>
<initial_root_password_encrypted type="boolean">false</initial_root_password_encrypted>
<label>YR_autobackup</label>
<local_remote_access_port type="integer">5903</local_remote_access_port>
<locked type="boolean">false</locked>
<max_memory type="integer">2048</max_memory>
<memory type="integer">128</memory>
<min_disk_size type="integer">5</min_disk_size>
<primary_disk_min_iops>600</primary_disk_min_iops>
<swap_disk_min_iops>600</swap_disk_min_iops>
<note nil="true"></note>
<operating_system>linux</operating_system>
<operating_system_distro>rhel</operating_system_distro>
<recovery_mode type="boolean">false</recovery_mode>
<remote_access_password>os3ajolb1buj</remote_access_password>
<state>new</state>
<strict_virtual_machine_id nil="true"></strict_virtual_machine_id>
<suspended type="boolean">false</suspended>
<template_id type="integer">8</template_id>
<template_label>CentOS 5.6 x86</template_label>
<update_billing_stat type="boolean">false</update_billing_stat>
<updated_at type="datetime">2011-11-04T13:22:25+03:00</updated_at>
<user_id type="integer">5</user_id>
<vip nil="true"></vip>
<xen_id type="integer">12</xen_id>
<ip_addresses type="array">
<ip_address> <created_at type="datetime">2011-10-10T12:31:12+03:00</created_at>
<disallowed_primary type="boolean">false</disallowed_primary>
<id type="integer">2</id>
<network_id type="integer">1</network_id>
<updated_at type="datetime">2011-11-01T17:39:13+03:00</updated_at>
<user_id nil="true"></user_id>
<free type="boolean">false</free>
<address>109.123.105.180</address>
<gateway>109.123.105.177</gateway>
<network_address>109.123.105.176</network_address>
<broadcast>109.123.105.191</broadcast>
<netmask>255.255.255.240</netmask>
</ip_address>
</ip_addresses>
<total_disk_size type="integer">6</total_disk_size>
</virtual_machine>
...
<virtual_machine></virtual_machine>
...
</virtual_machine>

Where:

add_to_marketplace — empty for VSs; used for edge servers only

admin_note — an optional note of the administrator

allow_resize_without_reboot — true if resize without reboot is possible; otherwise false

allowed_hot_migrate — true if the template, on which the VS is based, supports hot migration; otherwise false

allowed_swap — true if swap disk is allowed (depends on the template the VS is based on); otherwise false

booted — true if the VS is running, otherwise false

built — true if the VS is built, otherwise false

cpus — the number of allocated CPU cores

cpu_shares — CPU priority in percent's

created_at — the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

enable_autoscale — true if autoscaling is allowed for this Vs

hostname — the name of your host

hypervisor_id — the ID of the hypervisor used by this VS

id — the VS ID

identifier — the VS identifier

initial_root_password — the VS root password

initial_root_password_encrypted - true, if the root password is encrypted, otherwise false.

ip_addresses — an array of ip addresses with their details assigned to this VS

label — the VS label

local_remote_access_port — the port ID used for console access

locked — true if the VS is locked; otherwise false

max_memory — maximum amount of RAM which can be allocated to the VS by the hypervisor

memory — the RAM size allocated to this VS

min_disk_size — the minimum disk size required to build a VS from a specified template

primary_disk_min_iops - minimum number of IO operations per second for primary disk (this is a SolidFire related parameter)

swap_disk_min_iops - minimum number of IO operations per second for swap disk (this is a SolidFire related parameter)

note — an optional reminder for this VS made by a user account

network_address – the address of the network

operating_system — operating system used by the VS

operating_system_distro — the distribution of the OS from which this VS is built

recovery_mode — true if recovery mode allowed. Otherwise false

remote_access_password — the password for the remote access

state – parameter reserved for future use

strict_virtual_machine_id — the ID of a virtual server that will never reside on the same hypervisor with this VS

suspended — true if VS is suspended, otherwise false

template_id — the ID of the template the VS is based on

template_label — the name of the template from which this VS is built

total_disk_size — the total disk size in GB of all disks assigned to VS

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

user_id — the ID of a user assigned to this VS

vip — true if the VS has VIP status (gives migration priority)

xen_id — the VS ID set by the virtualization engine



Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Strumenti