fog-ovirt 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +1 -1
  3. data/fog-ovirt.gemspec +1 -0
  4. data/lib/fog/ovirt/compute/v3.rb +1 -1
  5. data/lib/fog/ovirt/compute/v4.rb +163 -0
  6. data/lib/fog/ovirt/compute.rb +32 -11
  7. data/lib/fog/ovirt/requests/compute/v4/add_interface.rb +41 -0
  8. data/lib/fog/ovirt/requests/compute/v4/add_volume.rb +54 -0
  9. data/lib/fog/ovirt/requests/compute/v4/create_vm.rb +62 -0
  10. data/lib/fog/ovirt/requests/compute/v4/datacenters.rb +22 -0
  11. data/lib/fog/ovirt/requests/compute/v4/destroy_interface.rb +24 -0
  12. data/lib/fog/ovirt/requests/compute/v4/destroy_vm.rb +23 -0
  13. data/lib/fog/ovirt/requests/compute/v4/destroy_volume.rb +25 -0
  14. data/lib/fog/ovirt/requests/compute/v4/get_api_version.rb +18 -0
  15. data/lib/fog/ovirt/requests/compute/v4/get_cluster.rb +19 -0
  16. data/lib/fog/ovirt/requests/compute/v4/get_instance_type.rb +19 -0
  17. data/lib/fog/ovirt/requests/compute/v4/get_quota.rb +20 -0
  18. data/lib/fog/ovirt/requests/compute/v4/get_template.rb +19 -0
  19. data/lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb +19 -0
  20. data/lib/fog/ovirt/requests/compute/v4/list_clusters.rb +21 -0
  21. data/lib/fog/ovirt/requests/compute/v4/list_instance_types.rb +21 -0
  22. data/lib/fog/ovirt/requests/compute/v4/list_networks.rb +18 -0
  23. data/lib/fog/ovirt/requests/compute/v4/list_operating_systems.rb +21 -0
  24. data/lib/fog/ovirt/requests/compute/v4/list_quotas.rb +22 -0
  25. data/lib/fog/ovirt/requests/compute/v4/list_template_interfaces.rb +21 -0
  26. data/lib/fog/ovirt/requests/compute/v4/list_template_volumes.rb +27 -0
  27. data/lib/fog/ovirt/requests/compute/v4/list_templates.rb +21 -0
  28. data/lib/fog/ovirt/requests/compute/v4/list_virtual_machines.rb +28 -0
  29. data/lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb +21 -0
  30. data/lib/fog/ovirt/requests/compute/v4/list_vm_volumes.rb +30 -0
  31. data/lib/fog/ovirt/requests/compute/v4/list_volumes.rb +21 -0
  32. data/lib/fog/ovirt/requests/compute/v4/mock_files/affinitygroup.xml +8 -0
  33. data/lib/fog/ovirt/requests/compute/v4/mock_files/affinitygroup_vms.xml +9 -0
  34. data/lib/fog/ovirt/requests/compute/v4/mock_files/affinitygroups.xml +17 -0
  35. data/lib/fog/ovirt/requests/compute/v4/mock_files/cluster.xml +27 -0
  36. data/lib/fog/ovirt/requests/compute/v4/mock_files/clusters.xml +53 -0
  37. data/lib/fog/ovirt/requests/compute/v4/mock_files/data_centers.xml +21 -0
  38. data/lib/fog/ovirt/requests/compute/v4/mock_files/disks.xml +54 -0
  39. data/lib/fog/ovirt/requests/compute/v4/mock_files/instance_type.xml +50 -0
  40. data/lib/fog/ovirt/requests/compute/v4/mock_files/instance_types.xml +233 -0
  41. data/lib/fog/ovirt/requests/compute/v4/mock_files/nics.xml +12 -0
  42. data/lib/fog/ovirt/requests/compute/v4/mock_files/operating_systems.xml +10 -0
  43. data/lib/fog/ovirt/requests/compute/v4/mock_files/quotas.xml +7 -0
  44. data/lib/fog/ovirt/requests/compute/v4/mock_files/storage_domains.xml +34 -0
  45. data/lib/fog/ovirt/requests/compute/v4/mock_files/template.xml +45 -0
  46. data/lib/fog/ovirt/requests/compute/v4/mock_files/templates.xml +128 -0
  47. data/lib/fog/ovirt/requests/compute/v4/mock_files/vm.xml +58 -0
  48. data/lib/fog/ovirt/requests/compute/v4/mock_files/vms.xml +170 -0
  49. data/lib/fog/ovirt/requests/compute/v4/mock_files/volumes.xml +36 -0
  50. data/lib/fog/ovirt/requests/compute/v4/storage_domains.rb +27 -0
  51. data/lib/fog/ovirt/requests/compute/v4/update_interface.rb +35 -0
  52. data/lib/fog/ovirt/requests/compute/v4/update_volume.rb +36 -0
  53. data/lib/fog/ovirt/requests/compute/v4/vm_action.rb +26 -0
  54. data/lib/fog/ovirt/requests/compute/v4/vm_ticket.rb +19 -0
  55. data/lib/fog/ovirt/version.rb +1 -1
  56. data/tests/ovirt/requests/compute/{client_tests.rb → v3/client_tests.rb} +0 -0
  57. data/tests/ovirt/requests/compute/{create_vm_tests.rb → v3/create_vm_tests.rb} +0 -0
  58. data/tests/ovirt/requests/compute/{destroy_vm_tests.rb → v3/destroy_vm_tests.rb} +0 -0
  59. data/tests/ovirt/requests/compute/{list_datacenters_tests.rb → v3/list_datacenters_tests.rb} +0 -0
  60. data/tests/ovirt/requests/compute/{list_quotas_tests.rb → v3/list_quotas_tests.rb} +0 -0
  61. data/tests/ovirt/requests/compute/{list_storage_domains_tests.rb → v3/list_storage_domains_tests.rb} +0 -0
  62. data/tests/ovirt/requests/compute/{update_vm_tests.rb → v3/update_vm_tests.rb} +0 -0
  63. data/tests/ovirt/requests/compute/{update_volume_tests.rb → v3/update_volume_tests.rb} +0 -0
  64. data/tests/ovirt/requests/compute/v4/client_tests.rb +31 -0
  65. data/tests/ovirt/requests/compute/v4/create_vm_tests.rb +17 -0
  66. data/tests/ovirt/requests/compute/v4/destroy_vm_tests.rb +16 -0
  67. data/tests/ovirt/requests/compute/v4/list_datacenters_tests.rb +11 -0
  68. data/tests/ovirt/requests/compute/v4/list_quotas_tests.rb +10 -0
  69. data/tests/ovirt/requests/compute/v4/list_storage_domains_tests.rb +11 -0
  70. data/tests/ovirt/requests/compute/v4/update_volume_tests.rb +17 -0
  71. metadata +96 -19
@@ -0,0 +1,233 @@
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>
11
+ <cores>1</cores>
12
+ <sockets>2</sockets>
13
+ <threads>1</threads>
14
+ </topology>
15
+ </cpu>
16
+ <os>
17
+ <boot>
18
+ <devices>
19
+ <device>hd</device>
20
+ </devices>
21
+ </boot>
22
+ </os>
23
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
24
+ <high_availability>
25
+ <enabled>false</enabled>
26
+ <priority>0</priority>
27
+ </high_availability>
28
+ <display>
29
+ <type>spice</type>
30
+ <monitors>1</monitors>
31
+ <single_qxl_pci>false</single_qxl_pci>
32
+ <smartcard_enabled>false</smartcard_enabled>
33
+ </display>
34
+ <usb>
35
+ <enabled>false</enabled>
36
+ </usb>
37
+ <migration_downtime>-1</migration_downtime>
38
+ <migration>
39
+ <auto_converge>inherit</auto_converge>
40
+ <compressed>inherit</compressed>
41
+ </migration>
42
+ <io>
43
+ <threads>0</threads>
44
+ </io>
45
+ <memory_policy>
46
+ <guaranteed>8589934592</guaranteed>
47
+ </memory_policy>
48
+ </instance_type>
49
+ <instance_type href="/api/instancetypes/00000007-0007-0007-0007-000000000210" id="00000007-0007-0007-0007-000000000210">
50
+ <name>Medium</name>
51
+ <description>Medium instance type</description>
52
+ <link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/nics" rel="nics"/>
53
+ <link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/watchdogs" rel="watchdogs"/>
54
+ <link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/graphicsconsoles" rel="graphicsconsoles"/>
55
+ <memory>4294967296</memory>
56
+ <cpu>
57
+ <topology>
58
+ <cores>1</cores>
59
+ <sockets>2</sockets>
60
+ <threads>1</threads>
61
+ </topology>
62
+ </cpu>
63
+ <os>
64
+ <boot>
65
+ <devices>
66
+ <device>hd</device>
67
+ </devices>
68
+ </boot>
69
+ </os>
70
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
71
+ <high_availability>
72
+ <enabled>false</enabled>
73
+ <priority>0</priority>
74
+ </high_availability>
75
+ <display>
76
+ <type>spice</type>
77
+ <monitors>1</monitors>
78
+ <single_qxl_pci>false</single_qxl_pci>
79
+ <smartcard_enabled>false</smartcard_enabled>
80
+ </display>
81
+ <usb>
82
+ <enabled>false</enabled>
83
+ </usb>
84
+ <migration_downtime>-1</migration_downtime>
85
+ <migration>
86
+ <auto_converge>inherit</auto_converge>
87
+ <compressed>inherit</compressed>
88
+ </migration>
89
+ <io>
90
+ <threads>0</threads>
91
+ </io>
92
+ <memory_policy>
93
+ <guaranteed>4294967296</guaranteed>
94
+ </memory_policy>
95
+ </instance_type>
96
+ <instance_type href="/api/instancetypes/00000005-0005-0005-0005-000000000190" id="00000005-0005-0005-0005-000000000190">
97
+ <name>Small</name>
98
+ <description>Small instance type</description>
99
+ <link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/nics" rel="nics"/>
100
+ <link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/watchdogs" rel="watchdogs"/>
101
+ <link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/graphicsconsoles" rel="graphicsconsoles"/>
102
+ <memory>2147483648</memory>
103
+ <cpu>
104
+ <topology>
105
+ <cores>1</cores>
106
+ <sockets>1</sockets>
107
+ <threads>1</threads>
108
+ </topology>
109
+ </cpu>
110
+ <os>
111
+ <boot>
112
+ <devices>
113
+ <device>hd</device>
114
+ </devices>
115
+ </boot>
116
+ </os>
117
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
118
+ <high_availability>
119
+ <enabled>false</enabled>
120
+ <priority>0</priority>
121
+ </high_availability>
122
+ <display>
123
+ <type>spice</type>
124
+ <monitors>1</monitors>
125
+ <single_qxl_pci>false</single_qxl_pci>
126
+ <smartcard_enabled>false</smartcard_enabled>
127
+ </display>
128
+ <usb>
129
+ <enabled>false</enabled>
130
+ </usb>
131
+ <migration_downtime>-1</migration_downtime>
132
+ <migration>
133
+ <auto_converge>inherit</auto_converge>
134
+ <compressed>inherit</compressed>
135
+ </migration>
136
+ <io>
137
+ <threads>0</threads>
138
+ </io>
139
+ <memory_policy>
140
+ <guaranteed>2147483648</guaranteed>
141
+ </memory_policy>
142
+ </instance_type>
143
+ <instance_type href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce" id="00000003-0003-0003-0003-0000000000ce">
144
+ <name>Tiny</name>
145
+ <description>Tiny instance type</description>
146
+ <link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/nics" rel="nics"/>
147
+ <link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/watchdogs" rel="watchdogs"/>
148
+ <link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/graphicsconsoles" rel="graphicsconsoles"/>
149
+ <memory>536870912</memory>
150
+ <cpu>
151
+ <topology>
152
+ <cores>1</cores>
153
+ <sockets>1</sockets>
154
+ <threads>1</threads>
155
+ </topology>
156
+ </cpu>
157
+ <os>
158
+ <boot>
159
+ <devices>
160
+ <device>hd</device>
161
+ </devices>
162
+ </boot>
163
+ </os>
164
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
165
+ <high_availability>
166
+ <enabled>false</enabled>
167
+ <priority>0</priority>
168
+ </high_availability>
169
+ <display>
170
+ <type>spice</type>
171
+ <monitors>1</monitors>
172
+ <single_qxl_pci>false</single_qxl_pci>
173
+ <smartcard_enabled>false</smartcard_enabled>
174
+ </display>
175
+ <usb>
176
+ <enabled>false</enabled>
177
+ </usb>
178
+ <migration_downtime>-1</migration_downtime>
179
+ <migration>
180
+ <auto_converge>inherit</auto_converge>
181
+ <compressed>inherit</compressed>
182
+ </migration>
183
+ <io>
184
+ <threads>0</threads>
185
+ </io>
186
+ <memory_policy>
187
+ <guaranteed>536870912</guaranteed>
188
+ </memory_policy>
189
+ </instance_type>
190
+ <instance_type href="/api/instancetypes/0000000b-000b-000b-000b-000000000082" id="0000000b-000b-000b-000b-000000000082">
191
+ <name>XLarge</name>
192
+ <description>Extra Large instance type</description>
193
+ <link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/nics" rel="nics"/>
194
+ <link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/watchdogs" rel="watchdogs"/>
195
+ <link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/graphicsconsoles" rel="graphicsconsoles"/>
196
+ <memory>17179869184</memory>
197
+ <cpu>
198
+ <topology>
199
+ <cores>1</cores>
200
+ <sockets>4</sockets>
201
+ <threads>1</threads>
202
+ </topology>
203
+ </cpu>
204
+ <os>
205
+ <boot dev="hd"/>
206
+ </os>
207
+ <creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
208
+ <high_availability>
209
+ <enabled>false</enabled>
210
+ <priority>0</priority>
211
+ </high_availability>
212
+ <display>
213
+ <type>spice</type>
214
+ <monitors>1</monitors>
215
+ <single_qxl_pci>false</single_qxl_pci>
216
+ <smartcard_enabled>false</smartcard_enabled>
217
+ </display>
218
+ <usb>
219
+ <enabled>false</enabled>
220
+ </usb>
221
+ <migration_downtime>-1</migration_downtime>
222
+ <migration>
223
+ <auto_converge>inherit</auto_converge>
224
+ <compressed>inherit</compressed>
225
+ </migration>
226
+ <io>
227
+ <threads>0</threads>
228
+ </io>
229
+ <memory_policy>
230
+ <guaranteed>17179869184</guaranteed>
231
+ </memory_policy>
232
+ </instance_type>
233
+ </instance_types>
@@ -0,0 +1,12 @@
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
+ <interface>virtio</interface>
7
+ <mac>
8
+ <address>00:1a:4a:23:1b:8f</address>
9
+ </mac>
10
+ <vnic_profile href= "/ovirt-engine/api/vnicprofiles/871f3a06-ef53-4ab1-922f-5aa2bea2e94e" id="871f3a06-ef53-4ab1-922f-5aa2bea2e94e"/>
11
+ </nic>
12
+ </nics>
@@ -0,0 +1,10 @@
1
+ <operating_systems>
2
+ <operating_system href="/ovirt-engine/api/v3/operatingsystems/b51fe06a-9483-49e0-9577-9779826e7e82" id="b51fe06a-9483-49e0-9577-9779826e7e82">
3
+ <name>other</name>
4
+ <description>Other OS</description>
5
+ <large_icon href="/ovirt-engine/api/v3/icons/124c94be-be96-4df8-b109-ebf5d3cbf72b"
6
+ id="124c94be-be96-4df8-b109-ebf5d3cbf72b" />
7
+ <small_icon href="/ovirt-engine/api/v3/icons/55c8d56e-2ff0-46ef-aa27-9161db22fe21"
8
+ id="55c8d56e-2ff0-46ef-aa27-9161db22fe21"/>
9
+ </operating_system>
10
+ </operating_systems>
@@ -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,34 @@
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>unattached</status>
8
+ <master>false</master>
9
+ <storage>
10
+ <type>nfs</type>
11
+ <address>ovirt.server.com</address>
12
+ <path>/mnt/nfs</path>
13
+ </storage>
14
+ <available>0</available>
15
+ <used>0</used>
16
+ <committed>0</committed>
17
+ <storage_format>v1</storage_format>
18
+ </storage_domain>
19
+ <storage_domain href="/api/storagedomains/312f6445-79da-4ce4-907d-9a871125e3ca" id="312f6445-79da-4ce4-907d-9a871125e3ca">
20
+ <name>nfs</name>
21
+ <link href="/api/storagedomains/312f6445-79da-4ce4-907d-9a871125e3ca/permissions" rel="permissions"/>
22
+ <type>data</type>
23
+ <master>true</master>
24
+ <storage>
25
+ <type>nfs</type>
26
+ <address>storage.server.com</address>
27
+ <path>/volumes/path/for/ovirt</path>
28
+ </storage>
29
+ <available>40802189312</available>
30
+ <used>66571993088</used>
31
+ <committed>75161927680</committed>
32
+ <storage_format>v1</storage_format>
33
+ </storage_domain>
34
+ </storage_domains>
@@ -0,0 +1,45 @@
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>ok</status>
11
+ <memory>536870912</memory>
12
+ <cpu>
13
+ <topology>
14
+ <cores>1</cores>
15
+ <sockets>1</sockets>
16
+ </topology>
17
+ </cpu>
18
+ <os>
19
+ <type>unassigned</type>
20
+ <boot>
21
+ <devices>
22
+ <device>network</device>
23
+ </devices>
24
+ </boot>
25
+ <kernel/>
26
+ <initrd/>
27
+ <cmdline/>
28
+ </os>
29
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
30
+ <creation_time>2012-01-31T07:47:03.811Z</creation_time>
31
+ <origin>rhev</origin>
32
+ <high_availability>
33
+ <enabled>false</enabled>
34
+ <priority>1</priority>
35
+ </high_availability>
36
+ <display>
37
+ <type>spice</type>
38
+ <monitors>1</monitors>
39
+ </display>
40
+ <stateless>false</stateless>
41
+ <usb>
42
+ <enabled>true</enabled>
43
+ </usb>
44
+ </template>
45
+ </templates>
@@ -0,0 +1,128 @@
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>ok</status>
11
+ <memory>536870912</memory>
12
+ <cpu>
13
+ <topology>
14
+ <cores>1</cores>
15
+ <sockets>1</sockets>
16
+ </topology>
17
+ </cpu>
18
+ <os>
19
+ <type>unassigned</type>
20
+ <boot>
21
+ <devices>
22
+ <device>hd</device>
23
+ </devices>
24
+ </boot>
25
+ </os>
26
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
27
+ <creation_time>2008-04-01T00:00:00.000+01:00</creation_time>
28
+ <origin>rhev</origin>
29
+ <high_availability>
30
+ <enabled>false</enabled>
31
+ <priority>0</priority>
32
+ </high_availability>
33
+ <display>
34
+ <type>spice</type>
35
+ <monitors>1</monitors>
36
+ </display>
37
+ <stateless>false</stateless>
38
+ <usb>
39
+ <enabled>true</enabled>
40
+ </usb>
41
+ </template>
42
+ <template href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e" id="05a5144f-8ef7-4151-b7f9-5014510b489e">
43
+ <name>hwp_large</name>
44
+ <description>hardware profile large</description>
45
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/disks" rel="disks"/>
46
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/nics" rel="nics"/>
47
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/cdroms" rel="cdroms"/>
48
+ <link href="/api/templates/05a5144f-8ef7-4151-b7f9-5014510b489e/permissions" rel="permissions"/>
49
+ <type>server</type>
50
+ <status>ok</status>
51
+ <memory>1073741824</memory>
52
+ <cpu>
53
+ <topology>
54
+ <cores>1</cores>
55
+ <sockets>4</sockets>
56
+ </topology>
57
+ </cpu>
58
+ <os>
59
+ <type>unassigned</type>
60
+ <boot>
61
+ <devices>
62
+ <device>network</device>
63
+ </devices>
64
+ </boot>
65
+ <kernel/>
66
+ <initrd/>
67
+ <cmdline/>
68
+ </os>
69
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
70
+ <creation_time>2012-01-31T07:53:19.047Z</creation_time>
71
+ <origin>rhev</origin>
72
+ <high_availability>
73
+ <enabled>false</enabled>
74
+ <priority>1</priority>
75
+ </high_availability>
76
+ <display>
77
+ <type>spice</type>
78
+ <monitors>1</monitors>
79
+ </display>
80
+ <stateless>false</stateless>
81
+ <usb>
82
+ <enabled>true</enabled>
83
+ </usb>
84
+ </template>
85
+ <template href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323" id="2a08ba05-f3b1-4e5a-ade9-496466a8b323">
86
+ <name>hwp_small</name>
87
+ <description>hardware profile small</description>
88
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/disks" rel="disks"/>
89
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/nics" rel="nics"/>
90
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/cdroms" rel="cdroms"/>
91
+ <link href="/api/templates/2a08ba05-f3b1-4e5a-ade9-496466a8b323/permissions" rel="permissions"/>
92
+ <type>server</type>
93
+ <status>ok</status>
94
+ <memory>536870912</memory>
95
+ <cpu>
96
+ <topology>
97
+ <cores>1</cores>
98
+ <sockets>1</sockets>
99
+ </topology>
100
+ </cpu>
101
+ <os>
102
+ <type>unassigned</type>
103
+ <boot>
104
+ <devices>
105
+ <device>network</device>
106
+ </devices>
107
+ </boot>
108
+ <kernel/>
109
+ <initrd/>
110
+ <cmdline/>
111
+ </os>
112
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
113
+ <creation_time>2012-01-31T07:47:03.811Z</creation_time>
114
+ <origin>rhev</origin>
115
+ <high_availability>
116
+ <enabled>false</enabled>
117
+ <priority>1</priority>
118
+ </high_availability>
119
+ <display>
120
+ <type>spice</type>
121
+ <monitors>1</monitors>
122
+ </display>
123
+ <stateless>false</stateless>
124
+ <usb>
125
+ <enabled>true</enabled>
126
+ </usb>
127
+ </template>
128
+ </templates>
@@ -0,0 +1,58 @@
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>down</status>
12
+ <memory>805306368</memory>
13
+ <cpu>
14
+ <topology>
15
+ <cores>1</cores>
16
+ <sockets>1</sockets>
17
+ </topology>
18
+ </cpu>
19
+ <os>
20
+ <type>unassigned</type>
21
+ <boot>
22
+ <devices>
23
+ <device>network</device>
24
+ <device>hd</device>
25
+ </devices>
26
+ </boot>
27
+ <kernel/>
28
+ <initrd/>
29
+ <cmdline/>
30
+ </os>
31
+ <high_availability>
32
+ <enabled>false</enabled>
33
+ <priority>1</priority>
34
+ </high_availability>
35
+ <display>
36
+ <type>spice</type>
37
+ <address>host</address>
38
+ <port>5900</port>
39
+ <secure_port>5901</secure_port>
40
+ <monitors>1</monitors>
41
+ </display>
42
+ <host href="/api/hosts/3690fafa-4b4c-11e1-8b7b-5254009970cc" id="3690fafa-4b4c-11e1-8b7b-5254009970cc"/>
43
+ <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
44
+ <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
45
+ <start_time>2012-02-05T11:00:33.222Z</start_time>
46
+ <creation_time>2012-01-31T07:21:10.667Z</creation_time>
47
+ <origin>rhev</origin>
48
+ <stateless>false</stateless>
49
+ <placement_policy>
50
+ <affinity>migratable</affinity>
51
+ </placement_policy>
52
+ <memory_policy>
53
+ <guaranteed>536870912</guaranteed>
54
+ </memory_policy>
55
+ <usb>
56
+ <enabled>true</enabled>
57
+ </usb>
58
+ </vm>