fog-ovirt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +30 -0
  3. data/CONTRIBUTING.md +18 -0
  4. data/CONTRIBUTORS.md +21 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE.md +20 -0
  7. data/README.md +47 -0
  8. data/Rakefile +15 -0
  9. data/fog-ovirt.gemspec +32 -0
  10. data/lib/fog/bin/ovirt.rb +28 -0
  11. data/lib/fog/ovirt/compute.rb +155 -0
  12. data/lib/fog/ovirt/core.rb +16 -0
  13. data/lib/fog/ovirt/models/compute/affinity_group.rb +25 -0
  14. data/lib/fog/ovirt/models/compute/affinity_groups.rb +20 -0
  15. data/lib/fog/ovirt/models/compute/cluster.rb +20 -0
  16. data/lib/fog/ovirt/models/compute/clusters.rb +20 -0
  17. data/lib/fog/ovirt/models/compute/instance_type.rb +39 -0
  18. data/lib/fog/ovirt/models/compute/instance_types.rb +20 -0
  19. data/lib/fog/ovirt/models/compute/interface.rb +19 -0
  20. data/lib/fog/ovirt/models/compute/interfaces.rb +29 -0
  21. data/lib/fog/ovirt/models/compute/quota.rb +16 -0
  22. data/lib/fog/ovirt/models/compute/quotas.rb +20 -0
  23. data/lib/fog/ovirt/models/compute/server.rb +175 -0
  24. data/lib/fog/ovirt/models/compute/servers.rb +27 -0
  25. data/lib/fog/ovirt/models/compute/template.rb +58 -0
  26. data/lib/fog/ovirt/models/compute/templates.rb +20 -0
  27. data/lib/fog/ovirt/models/compute/volume.rb +36 -0
  28. data/lib/fog/ovirt/models/compute/volumes.rb +28 -0
  29. data/lib/fog/ovirt/requests/compute/activate_volume.rb +22 -0
  30. data/lib/fog/ovirt/requests/compute/add_interface.rb +20 -0
  31. data/lib/fog/ovirt/requests/compute/add_to_affinity_group.rb +21 -0
  32. data/lib/fog/ovirt/requests/compute/add_volume.rb +21 -0
  33. data/lib/fog/ovirt/requests/compute/attach_volume.rb +22 -0
  34. data/lib/fog/ovirt/requests/compute/create_affinity_group.rb +18 -0
  35. data/lib/fog/ovirt/requests/compute/create_vm.rb +18 -0
  36. data/lib/fog/ovirt/requests/compute/datacenters.rb +20 -0
  37. data/lib/fog/ovirt/requests/compute/deactivate_volume.rb +22 -0
  38. data/lib/fog/ovirt/requests/compute/destroy_affinity_group.rb +19 -0
  39. data/lib/fog/ovirt/requests/compute/destroy_interface.rb +22 -0
  40. data/lib/fog/ovirt/requests/compute/destroy_vm.rb +19 -0
  41. data/lib/fog/ovirt/requests/compute/destroy_volume.rb +22 -0
  42. data/lib/fog/ovirt/requests/compute/detach_volume.rb +22 -0
  43. data/lib/fog/ovirt/requests/compute/get_affinity_group.rb +18 -0
  44. data/lib/fog/ovirt/requests/compute/get_api_version.rb +16 -0
  45. data/lib/fog/ovirt/requests/compute/get_cluster.rb +17 -0
  46. data/lib/fog/ovirt/requests/compute/get_instance_type.rb +17 -0
  47. data/lib/fog/ovirt/requests/compute/get_quota.rb +17 -0
  48. data/lib/fog/ovirt/requests/compute/get_template.rb +17 -0
  49. data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +17 -0
  50. data/lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb +22 -0
  51. data/lib/fog/ovirt/requests/compute/list_affinity_groups.rb +20 -0
  52. data/lib/fog/ovirt/requests/compute/list_clusters.rb +19 -0
  53. data/lib/fog/ovirt/requests/compute/list_instance_types.rb +19 -0
  54. data/lib/fog/ovirt/requests/compute/list_networks.rb +16 -0
  55. data/lib/fog/ovirt/requests/compute/list_quotas.rb +19 -0
  56. data/lib/fog/ovirt/requests/compute/list_template_interfaces.rb +19 -0
  57. data/lib/fog/ovirt/requests/compute/list_template_volumes.rb +19 -0
  58. data/lib/fog/ovirt/requests/compute/list_templates.rb +19 -0
  59. data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +19 -0
  60. data/lib/fog/ovirt/requests/compute/list_vm_interfaces.rb +19 -0
  61. data/lib/fog/ovirt/requests/compute/list_vm_volumes.rb +19 -0
  62. data/lib/fog/ovirt/requests/compute/list_volumes.rb +19 -0
  63. data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml +8 -0
  64. data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml +9 -0
  65. data/lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml +17 -0
  66. data/lib/fog/ovirt/requests/compute/mock_files/cluster.xml +20 -0
  67. data/lib/fog/ovirt/requests/compute/mock_files/clusters.xml +39 -0
  68. data/lib/fog/ovirt/requests/compute/mock_files/data_centers.xml +17 -0
  69. data/lib/fog/ovirt/requests/compute/mock_files/disks.xml +58 -0
  70. data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +42 -0
  71. data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +197 -0
  72. data/lib/fog/ovirt/requests/compute/mock_files/nics.xml +10 -0
  73. data/lib/fog/ovirt/requests/compute/mock_files/quotas.xml +7 -0
  74. data/lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml +36 -0
  75. data/lib/fog/ovirt/requests/compute/mock_files/template.xml +39 -0
  76. data/lib/fog/ovirt/requests/compute/mock_files/templates.xml +110 -0
  77. data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +52 -0
  78. data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +152 -0
  79. data/lib/fog/ovirt/requests/compute/mock_files/volumes.xml +40 -0
  80. data/lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb +21 -0
  81. data/lib/fog/ovirt/requests/compute/storage_domains.rb +20 -0
  82. data/lib/fog/ovirt/requests/compute/update_interface.rb +35 -0
  83. data/lib/fog/ovirt/requests/compute/update_vm.rb +18 -0
  84. data/lib/fog/ovirt/requests/compute/update_volume.rb +39 -0
  85. data/lib/fog/ovirt/requests/compute/vm_action.rb +22 -0
  86. data/lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb +19 -0
  87. data/lib/fog/ovirt/requests/compute/vm_ticket.rb +17 -0
  88. data/lib/fog/ovirt/version.rb +5 -0
  89. data/lib/fog/ovirt.rb +1 -0
  90. data/spec/fog/bin/ovirt_spec.rb +10 -0
  91. data/spec/fog/bin_spec.rb +32 -0
  92. data/tests/helper.rb +1 -0
  93. data/tests/helpers/mock_helper.rb +16 -0
  94. data/tests/helpers/succeeds_helper.rb +9 -0
  95. data/tests/ovirt/compute_tests.rb +25 -0
  96. data/tests/ovirt/models/compute/cluster_tests.rb +31 -0
  97. data/tests/ovirt/models/compute/clusters_tests.rb +9 -0
  98. data/tests/ovirt/models/compute/interface_tests.rb +27 -0
  99. data/tests/ovirt/models/compute/interfaces_tests.rb +9 -0
  100. data/tests/ovirt/models/compute/server_tests.rb +51 -0
  101. data/tests/ovirt/models/compute/servers_tests.rb +14 -0
  102. data/tests/ovirt/models/compute/template_tests.rb +28 -0
  103. data/tests/ovirt/models/compute/templates_tests.rb +9 -0
  104. data/tests/ovirt/requests/compute/create_vm_tests.rb +26 -0
  105. data/tests/ovirt/requests/compute/destroy_vm_tests.rb +18 -0
  106. data/tests/ovirt/requests/compute/list_datacenters_tests.rb +13 -0
  107. data/tests/ovirt/requests/compute/list_quotas_tests.rb +12 -0
  108. data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +13 -0
  109. data/tests/ovirt/requests/compute/update_vm_tests.rb +18 -0
  110. data/tests/ovirt/requests/compute/update_volume_tests.rb +20 -0
  111. metadata +298 -0
@@ -0,0 +1,197 @@
1
+ <instance_types>
2
+ <instance_type href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa" id="00000009-0009-0009-0009-0000000002fa">
3
+ <name>Large</name>
4
+ <description>Large instance type</description>
5
+ <link href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa/nics" rel="nics"/>
6
+ <link href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa/watchdogs" rel="watchdogs"/>
7
+ <link href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa/graphicsconsoles" rel="graphicsconsoles"/>
8
+ <memory>8589934592</memory>
9
+ <cpu>
10
+ <topology sockets="2" cores="1" threads="1"/>
11
+ </cpu>
12
+ <os>
13
+ <boot dev="hd"/>
14
+ </os>
15
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
16
+ <high_availability>
17
+ <enabled>false</enabled>
18
+ <priority>0</priority>
19
+ </high_availability>
20
+ <display>
21
+ <type>spice</type>
22
+ <monitors>1</monitors>
23
+ <single_qxl_pci>false</single_qxl_pci>
24
+ <smartcard_enabled>false</smartcard_enabled>
25
+ </display>
26
+ <usb>
27
+ <enabled>false</enabled>
28
+ </usb>
29
+ <migration_downtime>-1</migration_downtime>
30
+ <migration>
31
+ <auto_converge>inherit</auto_converge>
32
+ <compressed>inherit</compressed>
33
+ </migration>
34
+ <io>
35
+ <threads>0</threads>
36
+ </io>
37
+ <memory_policy>
38
+ <guaranteed>8589934592</guaranteed>
39
+ </memory_policy>
40
+ </instance_type>
41
+ <instance_type href="/api/instancetypes/00000007-0007-0007-0007-000000000210" id="00000007-0007-0007-0007-000000000210">
42
+ <name>Medium</name>
43
+ <description>Medium instance type</description>
44
+ <link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/nics" rel="nics"/>
45
+ <link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/watchdogs" rel="watchdogs"/>
46
+ <link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/graphicsconsoles" rel="graphicsconsoles"/>
47
+ <memory>4294967296</memory>
48
+ <cpu>
49
+ <topology sockets="2" cores="1" threads="1"/>
50
+ </cpu>
51
+ <os>
52
+ <boot dev="hd"/>
53
+ </os>
54
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
55
+ <high_availability>
56
+ <enabled>false</enabled>
57
+ <priority>0</priority>
58
+ </high_availability>
59
+ <display>
60
+ <type>spice</type>
61
+ <monitors>1</monitors>
62
+ <single_qxl_pci>false</single_qxl_pci>
63
+ <smartcard_enabled>false</smartcard_enabled>
64
+ </display>
65
+ <usb>
66
+ <enabled>false</enabled>
67
+ </usb>
68
+ <migration_downtime>-1</migration_downtime>
69
+ <migration>
70
+ <auto_converge>inherit</auto_converge>
71
+ <compressed>inherit</compressed>
72
+ </migration>
73
+ <io>
74
+ <threads>0</threads>
75
+ </io>
76
+ <memory_policy>
77
+ <guaranteed>4294967296</guaranteed>
78
+ </memory_policy>
79
+ </instance_type>
80
+ <instance_type href="/api/instancetypes/00000005-0005-0005-0005-000000000190" id="00000005-0005-0005-0005-000000000190">
81
+ <name>Small</name>
82
+ <description>Small instance type</description>
83
+ <link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/nics" rel="nics"/>
84
+ <link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/watchdogs" rel="watchdogs"/>
85
+ <link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/graphicsconsoles" rel="graphicsconsoles"/>
86
+ <memory>2147483648</memory>
87
+ <cpu>
88
+ <topology sockets="1" cores="1" threads="1"/>
89
+ </cpu>
90
+ <os>
91
+ <boot dev="hd"/>
92
+ </os>
93
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
94
+ <high_availability>
95
+ <enabled>false</enabled>
96
+ <priority>0</priority>
97
+ </high_availability>
98
+ <display>
99
+ <type>spice</type>
100
+ <monitors>1</monitors>
101
+ <single_qxl_pci>false</single_qxl_pci>
102
+ <smartcard_enabled>false</smartcard_enabled>
103
+ </display>
104
+ <usb>
105
+ <enabled>false</enabled>
106
+ </usb>
107
+ <migration_downtime>-1</migration_downtime>
108
+ <migration>
109
+ <auto_converge>inherit</auto_converge>
110
+ <compressed>inherit</compressed>
111
+ </migration>
112
+ <io>
113
+ <threads>0</threads>
114
+ </io>
115
+ <memory_policy>
116
+ <guaranteed>2147483648</guaranteed>
117
+ </memory_policy>
118
+ </instance_type>
119
+ <instance_type href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce" id="00000003-0003-0003-0003-0000000000ce">
120
+ <name>Tiny</name>
121
+ <description>Tiny instance type</description>
122
+ <link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/nics" rel="nics"/>
123
+ <link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/watchdogs" rel="watchdogs"/>
124
+ <link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/graphicsconsoles" rel="graphicsconsoles"/>
125
+ <memory>536870912</memory>
126
+ <cpu>
127
+ <topology sockets="1" cores="1" threads="1"/>
128
+ </cpu>
129
+ <os>
130
+ <boot dev="hd"/>
131
+ </os>
132
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
133
+ <high_availability>
134
+ <enabled>false</enabled>
135
+ <priority>0</priority>
136
+ </high_availability>
137
+ <display>
138
+ <type>spice</type>
139
+ <monitors>1</monitors>
140
+ <single_qxl_pci>false</single_qxl_pci>
141
+ <smartcard_enabled>false</smartcard_enabled>
142
+ </display>
143
+ <usb>
144
+ <enabled>false</enabled>
145
+ </usb>
146
+ <migration_downtime>-1</migration_downtime>
147
+ <migration>
148
+ <auto_converge>inherit</auto_converge>
149
+ <compressed>inherit</compressed>
150
+ </migration>
151
+ <io>
152
+ <threads>0</threads>
153
+ </io>
154
+ <memory_policy>
155
+ <guaranteed>536870912</guaranteed>
156
+ </memory_policy>
157
+ </instance_type>
158
+ <instance_type href="/api/instancetypes/0000000b-000b-000b-000b-000000000082" id="0000000b-000b-000b-000b-000000000082">
159
+ <name>XLarge</name>
160
+ <description>Extra Large instance type</description>
161
+ <link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/nics" rel="nics"/>
162
+ <link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/watchdogs" rel="watchdogs"/>
163
+ <link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/graphicsconsoles" rel="graphicsconsoles"/>
164
+ <memory>17179869184</memory>
165
+ <cpu>
166
+ <topology sockets="4" cores="1" threads="1"/>
167
+ </cpu>
168
+ <os>
169
+ <boot dev="hd"/>
170
+ </os>
171
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
172
+ <high_availability>
173
+ <enabled>false</enabled>
174
+ <priority>0</priority>
175
+ </high_availability>
176
+ <display>
177
+ <type>spice</type>
178
+ <monitors>1</monitors>
179
+ <single_qxl_pci>false</single_qxl_pci>
180
+ <smartcard_enabled>false</smartcard_enabled>
181
+ </display>
182
+ <usb>
183
+ <enabled>false</enabled>
184
+ </usb>
185
+ <migration_downtime>-1</migration_downtime>
186
+ <migration>
187
+ <auto_converge>inherit</auto_converge>
188
+ <compressed>inherit</compressed>
189
+ </migration>
190
+ <io>
191
+ <threads>0</threads>
192
+ </io>
193
+ <memory_policy>
194
+ <guaranteed>17179869184</guaranteed>
195
+ </memory_policy>
196
+ </instance_type>
197
+ </instance_types>
@@ -0,0 +1,10 @@
1
+ <nics>
2
+ <nic href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/nics/af743262-ebcf-4b18-ab5d-7218d788bdf3" id="af743262-ebcf-4b18-ab5d-7218d788bdf3">
3
+ <name>nic1</name>
4
+ <link href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/nics/af743262-ebcf-4b18-ab5d-7218d788bdf3/statistics" rel="statistics"/>
5
+ <vm href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387" id="192cdd3f-3281-4e20-b81d-93bdc57ac387"/>
6
+ <network href="/api/networks/00000000-0000-0000-0000-000000000009" id="00000000-0000-0000-0000-000000000009"/>
7
+ <interface>virtio</interface>
8
+ <mac address="00:1a:4a:23:1b:8f"/>
9
+ </nic>
10
+ </nics>
@@ -0,0 +1,7 @@
1
+ <quotas>
2
+ <quota href="/api/datacenters/c0645886-4b4b-11e1-a0ae-5254009970cc/quotas/aae6e3f3-0798-4ef7-b4e4-c036f04a98d7" id="aae6e3f3-0798-4ef7-b4e4-c036f04a98d7">
3
+ <name>DefaultQuota-Datacenter1</name>
4
+ <description>Automatic generated Quota for Data Center Datacenter1</description>
5
+ <data_center href="/api/datacenters/c0645886-4b4b-11e1-a0ae-5254009970cc" id="c0645886-4b4b-11e1-a0ae-5254009970cc"/>
6
+ </quota>
7
+ </quotas>
@@ -0,0 +1,36 @@
1
+ <storage_domains>
2
+ <storage_domain href="/api/storagedomains/382ec55a-f886-4fa1-b880-0a9fa778aa5b" id="382ec55a-f886-4fa1-b880-0a9fa778aa5b">
3
+ <name>covirt</name>
4
+ <link href="/api/storagedomains/382ec55a-f886-4fa1-b880-0a9fa778aa5b/permissions" rel="permissions"/>
5
+ <link href="/api/storagedomains/382ec55a-f886-4fa1-b880-0a9fa778aa5b/files" rel="files"/>
6
+ <type>iso</type>
7
+ <status>
8
+ <state>unattached</state>
9
+ </status>
10
+ <master>false</master>
11
+ <storage>
12
+ <type>nfs</type>
13
+ <address>ovirt.server.com</address>
14
+ <path>/mnt/nfs</path>
15
+ </storage>
16
+ <available>0</available>
17
+ <used>0</used>
18
+ <committed>0</committed>
19
+ <storage_format>v1</storage_format>
20
+ </storage_domain>
21
+ <storage_domain href="/api/storagedomains/312f6445-79da-4ce4-907d-9a871125e3ca" id="312f6445-79da-4ce4-907d-9a871125e3ca">
22
+ <name>nfs</name>
23
+ <link href="/api/storagedomains/312f6445-79da-4ce4-907d-9a871125e3ca/permissions" rel="permissions"/>
24
+ <type>data</type>
25
+ <master>true</master>
26
+ <storage>
27
+ <type>nfs</type>
28
+ <address>storage.server.com</address>
29
+ <path>/volumes/path/for/ovirt</path>
30
+ </storage>
31
+ <available>40802189312</available>
32
+ <used>66571993088</used>
33
+ <committed>75161927680</committed>
34
+ <storage_format>v1</storage_format>
35
+ </storage_domain>
36
+ </storage_domains>
@@ -0,0 +1,39 @@
1
+ <templates>
2
+ <template href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323" id="2a08ba05-f3b1-4e5a-ade9-496466a8b323">
3
+ <name>hwp_small</name>
4
+ <description>hardware profile small</description>
5
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/disks" rel="disks"/>
6
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/nics" rel="nics"/>
7
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/cdroms" rel="cdroms"/>
8
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/permissions" rel="permissions"/>
9
+ <type>server</type>
10
+ <status>
11
+ <state>ok</state>
12
+ </status>
13
+ <memory>536870912</memory>
14
+ <cpu>
15
+ <topology sockets="1" cores="1"/>
16
+ </cpu>
17
+ <os type="unassigned">
18
+ <boot dev="network"/>
19
+ <kernel/>
20
+ <initrd/>
21
+ <cmdline/>
22
+ </os>
23
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
24
+ <creation_time>2012-01-31T07:47:03.811Z</creation_time>
25
+ <origin>rhev</origin>
26
+ <high_availability>
27
+ <enabled>false</enabled>
28
+ <priority>1</priority>
29
+ </high_availability>
30
+ <display>
31
+ <type>spice</type>
32
+ <monitors>1</monitors>
33
+ </display>
34
+ <stateless>false</stateless>
35
+ <usb>
36
+ <enabled>true</enabled>
37
+ </usb>
38
+ </template>
39
+ </templates>
@@ -0,0 +1,110 @@
1
+ <templates>
2
+ <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
3
+ <name>Blank</name>
4
+ <description>Blank template</description>
5
+ <link href="/api/templates/00000000-0000-0000-0000-000000000000/disks" rel="disks"/>
6
+ <link href="/api/templates/00000000-0000-0000-0000-000000000000/nics" rel="nics"/>
7
+ <link href="/api/templates/00000000-0000-0000-0000-000000000000/cdroms" rel="cdroms"/>
8
+ <link href="/api/templates/00000000-0000-0000-0000-000000000000/permissions" rel="permissions"/>
9
+ <type>desktop</type>
10
+ <status>
11
+ <state>ok</state>
12
+ </status>
13
+ <memory>536870912</memory>
14
+ <cpu>
15
+ <topology sockets="1" cores="1"/>
16
+ </cpu>
17
+ <os type="unassigned">
18
+ <boot dev="hd"/>
19
+ </os>
20
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
21
+ <creation_time>2008-04-01T00:00:00.000+01:00</creation_time>
22
+ <origin>rhev</origin>
23
+ <high_availability>
24
+ <enabled>false</enabled>
25
+ <priority>0</priority>
26
+ </high_availability>
27
+ <display>
28
+ <type>spice</type>
29
+ <monitors>1</monitors>
30
+ </display>
31
+ <stateless>false</stateless>
32
+ <usb>
33
+ <enabled>true</enabled>
34
+ </usb>
35
+ </template>
36
+ <template href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e" id="05a5144f-8ef7-4151-b7f9-5014510b489e">
37
+ <name>hwp_large</name>
38
+ <description>hardware profile large</description>
39
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/disks" rel="disks"/>
40
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/nics" rel="nics"/>
41
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/cdroms" rel="cdroms"/>
42
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/permissions" rel="permissions"/>
43
+ <type>server</type>
44
+ <status>
45
+ <state>ok</state>
46
+ </status>
47
+ <memory>1073741824</memory>
48
+ <cpu>
49
+ <topology sockets="4" cores="1"/>
50
+ </cpu>
51
+ <os type="unassigned">
52
+ <boot dev="network"/>
53
+ <kernel/>
54
+ <initrd/>
55
+ <cmdline/>
56
+ </os>
57
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
58
+ <creation_time>2012-01-31T07:53:19.047Z</creation_time>
59
+ <origin>rhev</origin>
60
+ <high_availability>
61
+ <enabled>false</enabled>
62
+ <priority>1</priority>
63
+ </high_availability>
64
+ <display>
65
+ <type>spice</type>
66
+ <monitors>1</monitors>
67
+ </display>
68
+ <stateless>false</stateless>
69
+ <usb>
70
+ <enabled>true</enabled>
71
+ </usb>
72
+ </template>
73
+ <template href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323" id="2a08ba05-f3b1-4e5a-ade9-496466a8b323">
74
+ <name>hwp_small</name>
75
+ <description>hardware profile small</description>
76
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/disks" rel="disks"/>
77
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/nics" rel="nics"/>
78
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/cdroms" rel="cdroms"/>
79
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/permissions" rel="permissions"/>
80
+ <type>server</type>
81
+ <status>
82
+ <state>ok</state>
83
+ </status>
84
+ <memory>536870912</memory>
85
+ <cpu>
86
+ <topology sockets="1" cores="1"/>
87
+ </cpu>
88
+ <os type="unassigned">
89
+ <boot dev="network"/>
90
+ <kernel/>
91
+ <initrd/>
92
+ <cmdline/>
93
+ </os>
94
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
95
+ <creation_time>2012-01-31T07:47:03.811Z</creation_time>
96
+ <origin>rhev</origin>
97
+ <high_availability>
98
+ <enabled>false</enabled>
99
+ <priority>1</priority>
100
+ </high_availability>
101
+ <display>
102
+ <type>spice</type>
103
+ <monitors>1</monitors>
104
+ </display>
105
+ <stateless>false</stateless>
106
+ <usb>
107
+ <enabled>true</enabled>
108
+ </usb>
109
+ </template>
110
+ </templates>
@@ -0,0 +1,52 @@
1
+ <vm href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c" id="52b9406e-cf66-4867-8655-719a094e324c">
2
+ <name>vm01</name>
3
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/disks" rel="disks"/>
4
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/nics" rel="nics"/>
5
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/cdroms" rel="cdroms"/>
6
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/snapshots" rel="snapshots"/>
7
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/tags" rel="tags"/>
8
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/permissions" rel="permissions"/>
9
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/statistics" rel="statistics"/>
10
+ <type>server</type>
11
+ <status>
12
+ <state>down</state>
13
+ </status>
14
+ <memory>805306368</memory>
15
+ <cpu>
16
+ <topology sockets="1" cores="1"/>
17
+ </cpu>
18
+ <os type="unassigned">
19
+ <boot dev="network"/>
20
+ <boot dev="hd"/>
21
+ <kernel/>
22
+ <initrd/>
23
+ <cmdline/>
24
+ </os>
25
+ <high_availability>
26
+ <enabled>false</enabled>
27
+ <priority>1</priority>
28
+ </high_availability>
29
+ <display>
30
+ <type>spice</type>
31
+ <address>host</address>
32
+ <port>5900</port>
33
+ <secure_port>5901</secure_port>
34
+ <monitors>1</monitors>
35
+ </display>
36
+ <host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
37
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
38
+ <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
39
+ <start_time>2012-02-05T11:00:33.222Z</start_time>
40
+ <creation_time>2012-01-31T07:21:10.667Z</creation_time>
41
+ <origin>rhev</origin>
42
+ <stateless>false</stateless>
43
+ <placement_policy>
44
+ <affinity>migratable</affinity>
45
+ </placement_policy>
46
+ <memory_policy>
47
+ <guaranteed>536870912</guaranteed>
48
+ </memory_policy>
49
+ <usb>
50
+ <enabled>true</enabled>
51
+ </usb>
52
+ </vm>
@@ -0,0 +1,152 @@
1
+ <vms>
2
+ <vm href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b" id="5ee86332-7b19-465b-8801-2a12ed0d6c1b">
3
+ <name>test-vm1</name>
4
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/disks" rel="disks"/>
5
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/nics" rel="nics"/>
6
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/cdroms" rel="cdroms"/>
7
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/snapshots" rel="snapshots"/>
8
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/tags" rel="tags"/>
9
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/permissions" rel="permissions"/>
10
+ <link href="/api/vms/5ee86332-7b19-465b-8801-2a12ed0d6c1b/statistics" rel="statistics"/>
11
+ <type>server</type>
12
+ <status>
13
+ <state>down</state>
14
+ </status>
15
+ <memory>1073741824</memory>
16
+ <cpu>
17
+ <topology sockets="1" cores="4"/>
18
+ </cpu>
19
+ <os type="unassigned">
20
+ <boot dev="network"/>
21
+ <kernel/>
22
+ <initrd/>
23
+ <cmdline/>
24
+ </os>
25
+ <high_availability>
26
+ <enabled>false</enabled>
27
+ <priority>1</priority>
28
+ </high_availability>
29
+ <display>
30
+ <type>spice</type>
31
+ <monitors>1</monitors>
32
+ </display>
33
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
34
+ <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
35
+ <start_time>2012-02-06T10:47:32.214Z</start_time>
36
+ <creation_time>2012-01-31T07:45:13.068Z</creation_time>
37
+ <origin>rhev</origin>
38
+ <stateless>false</stateless>
39
+ <placement_policy>
40
+ <affinity>migratable</affinity>
41
+ </placement_policy>
42
+ <memory_policy>
43
+ <guaranteed>536870912</guaranteed>
44
+ </memory_policy>
45
+ <usb>
46
+ <enabled>true</enabled>
47
+ </usb>
48
+ </vm>
49
+ <vm href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1" id="349764bb-eba3-4466-abef-f18f4c40c9f1">
50
+ <name>fosdem</name>
51
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/disks" rel="disks"/>
52
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/nics" rel="nics"/>
53
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/cdroms" rel="cdroms"/>
54
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/snapshots" rel="snapshots"/>
55
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/tags" rel="tags"/>
56
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/permissions" rel="permissions"/>
57
+ <link href="/api/vms/349764bb-eba3-4466-abef-f18f4c40c9f1/statistics" rel="statistics"/>
58
+ <type>server</type>
59
+ <status>
60
+ <state>down</state>
61
+ </status>
62
+ <memory>536870912</memory>
63
+ <cpu>
64
+ <topology sockets="1" cores="1"/>
65
+ </cpu>
66
+ <os type="unassigned">
67
+ <boot dev="hd"/>
68
+ <kernel/>
69
+ <initrd/>
70
+ <cmdline/>
71
+ </os>
72
+ <high_availability>
73
+ <enabled>false</enabled>
74
+ <priority>1</priority>
75
+ </high_availability>
76
+ <display>
77
+ <type>spice</type>
78
+ <address>host</address>
79
+ <port>5902</port>
80
+ <secure_port>5903</secure_port>
81
+ <monitors>1</monitors>
82
+ </display>
83
+ <host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
84
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
85
+ <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
86
+ <start_time>2012-02-05T11:04:39.217Z</start_time>
87
+ <creation_time>2012-02-05T10:53:30.484Z</creation_time>
88
+ <origin>rhev</origin>
89
+ <stateless>false</stateless>
90
+ <placement_policy>
91
+ <affinity>migratable</affinity>
92
+ </placement_policy>
93
+ <memory_policy>
94
+ <guaranteed>536870912</guaranteed>
95
+ </memory_policy>
96
+ <usb>
97
+ <enabled>true</enabled>
98
+ </usb>
99
+ </vm>
100
+ <vm href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c" id="52b9406e-cf66-4867-8655-719a094e324c">
101
+ <name>vm01</name>
102
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/disks" rel="disks"/>
103
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/nics" rel="nics"/>
104
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/cdroms" rel="cdroms"/>
105
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/snapshots" rel="snapshots"/>
106
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/tags" rel="tags"/>
107
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/permissions" rel="permissions"/>
108
+ <link href="/api/vms/52b9406e-cf66-4867-8655-719a094e324c/statistics" rel="statistics"/>
109
+ <type>server</type>
110
+ <status>
111
+ <state>down</state>
112
+ </status>
113
+ <memory>805306368</memory>
114
+ <cpu>
115
+ <topology sockets="1" cores="1"/>
116
+ </cpu>
117
+ <os type="unassigned">
118
+ <boot dev="network"/>
119
+ <boot dev="hd"/>
120
+ <kernel/>
121
+ <initrd/>
122
+ <cmdline/>
123
+ </os>
124
+ <high_availability>
125
+ <enabled>false</enabled>
126
+ <priority>1</priority>
127
+ </high_availability>
128
+ <display>
129
+ <type>spice</type>
130
+ <address>host</address>
131
+ <port>5900</port>
132
+ <secure_port>5901</secure_port>
133
+ <monitors>1</monitors>
134
+ </display>
135
+ <host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
136
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
137
+ <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
138
+ <start_time>2012-02-05T11:00:33.222Z</start_time>
139
+ <creation_time>2012-01-31T07:21:10.667Z</creation_time>
140
+ <origin>rhev</origin>
141
+ <stateless>false</stateless>
142
+ <placement_policy>
143
+ <affinity>migratable</affinity>
144
+ </placement_policy>
145
+ <memory_policy>
146
+ <guaranteed>536870912</guaranteed>
147
+ </memory_policy>
148
+ <usb>
149
+ <enabled>true</enabled>
150
+ </usb>
151
+ </vm>
152
+ </vms>
@@ -0,0 +1,40 @@
1
+ <disks>
2
+ <disk href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/9f68ecfd-218b-4f80-8e7a-e70b2ab054cd" id="9f68ecfd-218b-4f80-8e7a-e70b2ab054cd">
3
+ <name>Disk 2</name>
4
+ <link href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/9f68ecfd-218b-4f80-8e7a-e70b2ab054cd/statistics" rel="statistics"/>
5
+ <vm href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387" id="192cdd3f-3281-4e20-b81d-93bdc57ac387"/>
6
+ <storage_domains>
7
+ <storage_domain id="cba62b33-887a-410c-b367-e3d9229a72f7"/>
8
+ </storage_domains>
9
+ <size>5368709120</size>
10
+ <type>data</type>
11
+ <status>
12
+ <state>ok</state>
13
+ </status>
14
+ <interface>virtio</interface>
15
+ <format>raw</format>
16
+ <sparse>true</sparse>
17
+ <bootable>false</bootable>
18
+ <wipe_after_delete>false</wipe_after_delete>
19
+ <propagate_errors>false</propagate_errors>
20
+ </disk>
21
+ <disk href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/e373b1a5-6c89-43f1-9a2d-cdf674412349" id="e373b1a5-6c89-43f1-9a2d-cdf674412349">
22
+ <name>Disk 1</name>
23
+ <link href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387/disks/e373b1a5-6c89-43f1-9a2d-cdf674412349/statistics" rel="statistics"/>
24
+ <vm href="/api/vms/192cdd3f-3281-4e20-b81d-93bdc57ac387" id="192cdd3f-3281-4e20-b81d-93bdc57ac387"/>
25
+ <storage_domains>
26
+ <storage_domain id="cba62b33-887a-410c-b367-e3d9229a72f7"/>
27
+ </storage_domains>
28
+ <size>8589934592</size>
29
+ <type>system</type>
30
+ <status>
31
+ <state>ok</state>
32
+ </status>
33
+ <interface>virtio</interface>
34
+ <format>cow</format>
35
+ <sparse>true</sparse>
36
+ <bootable>true</bootable>
37
+ <wipe_after_delete>false</wipe_after_delete>
38
+ <propagate_errors>false</propagate_errors>
39
+ </disk>
40
+ </disks>