tengine_resource 0.5.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +30 -0
  4. data/Gemfile.lock +106 -0
  5. data/README.rdoc +20 -0
  6. data/Rakefile +42 -0
  7. data/VERSION +1 -0
  8. data/bin/tengine_resource_watchd +8 -0
  9. data/config/.gitignore +2 -0
  10. data/config/watchd.yml.erb.example +52 -0
  11. data/lib/tengine/resource.rb +29 -0
  12. data/lib/tengine/resource/config.rb +6 -0
  13. data/lib/tengine/resource/config/resource.rb +194 -0
  14. data/lib/tengine/resource/credential.rb +156 -0
  15. data/lib/tengine/resource/credential/ec2.rb +5 -0
  16. data/lib/tengine/resource/credential/ec2/dummy.rb +148 -0
  17. data/lib/tengine/resource/credential/ec2/launch_options.rb +179 -0
  18. data/lib/tengine/resource/drivers/resource_control_driver.rb +58 -0
  19. data/lib/tengine/resource/net_ssh.rb +134 -0
  20. data/lib/tengine/resource/observer.rb +25 -0
  21. data/lib/tengine/resource/physical_server.rb +7 -0
  22. data/lib/tengine/resource/provider.rb +82 -0
  23. data/lib/tengine/resource/provider/ec2.rb +187 -0
  24. data/lib/tengine/resource/provider/wakame.rb +615 -0
  25. data/lib/tengine/resource/server.rb +62 -0
  26. data/lib/tengine/resource/virtual_server.rb +62 -0
  27. data/lib/tengine/resource/virtual_server_image.rb +34 -0
  28. data/lib/tengine/resource/virtual_server_type.rb +21 -0
  29. data/lib/tengine/resource/watcher.rb +121 -0
  30. data/lib/tengine_resource.rb +4 -0
  31. data/spec/fixtures/goku_at_ec2_ap_northeast.rb +177 -0
  32. data/spec/mongoid.yml +35 -0
  33. data/spec/spec_helper.rb +40 -0
  34. data/spec/support/ec2.rb +129 -0
  35. data/spec/support/mongo_index_key_log.rb +91 -0
  36. data/spec/tengine/resource/bugfix/watcher_for_wakame_spec.rb +232 -0
  37. data/spec/tengine/resource/credential_spec.rb +205 -0
  38. data/spec/tengine/resource/drivers/resource_control_driver_spec.rb +84 -0
  39. data/spec/tengine/resource/net_ssh_spec.rb +148 -0
  40. data/spec/tengine/resource/physical_server_spec.rb +47 -0
  41. data/spec/tengine/resource/provider/ec2_spec.rb +473 -0
  42. data/spec/tengine/resource/provider/test_files/describe_host_nodes.json +22 -0
  43. data/spec/tengine/resource/provider/test_files/describe_images.json +23 -0
  44. data/spec/tengine/resource/provider/test_files/describe_instance_specs.json +23 -0
  45. data/spec/tengine/resource/provider/test_files/describe_instances.json +56 -0
  46. data/spec/tengine/resource/provider/test_files/run_instances.json +30 -0
  47. data/spec/tengine/resource/provider/test_files/terminate_instances.json +3 -0
  48. data/spec/tengine/resource/provider/wakame/00_describe_host_nodes_0_physical_servers.json +8 -0
  49. data/spec/tengine/resource/provider/wakame/01_describe_host_nodes_10_physical_servers.json +139 -0
  50. data/spec/tengine/resource/provider/wakame/02_describe_host_nodes_60_physical_servers.json +795 -0
  51. data/spec/tengine/resource/provider/wakame/10_describe_instances_0_virtual_servers.json +8 -0
  52. data/spec/tengine/resource/provider/wakame/11_describe_instances_10_virtual_servers.json +469 -0
  53. data/spec/tengine/resource/provider/wakame/12_describe_instances_after_run_instances.json +280 -0
  54. data/spec/tengine/resource/provider/wakame/13_describe_instances_after_terminate_instances.json +279 -0
  55. data/spec/tengine/resource/provider/wakame/20_describe_images_0_virtual_server_images.json +8 -0
  56. data/spec/tengine/resource/provider/wakame/21_describe_images_5_virtual_server_images.json +84 -0
  57. data/spec/tengine/resource/provider/wakame/22_describe_images_60_virtual_server_images.json +856 -0
  58. data/spec/tengine/resource/provider/wakame/30_describe_instance_specs_0_virtual_server_specs.json +8 -0
  59. data/spec/tengine/resource/provider/wakame/31_describe_instance_specs_4_virtual_server_specs.json +66 -0
  60. data/spec/tengine/resource/provider/wakame/40_run_instances_0_virtual_servers.json +1 -0
  61. data/spec/tengine/resource/provider/wakame/41_run_instances_1_virtual_servers.json +22 -0
  62. data/spec/tengine/resource/provider/wakame/42_run_instances_5_virtual_servers.json +106 -0
  63. data/spec/tengine/resource/provider/wakame/50_terminate_instances_0_virtual_servers.json +1 -0
  64. data/spec/tengine/resource/provider/wakame/51_terminate_instances_3_virtual_servers.json +5 -0
  65. data/spec/tengine/resource/provider/wakame/sync_physical_servers_spec.rb +114 -0
  66. data/spec/tengine/resource/provider/wakame/sync_virtual_server_images_spec.rb +116 -0
  67. data/spec/tengine/resource/provider/wakame/sync_virtual_server_types_spec.rb +116 -0
  68. data/spec/tengine/resource/provider/wakame/sync_virtual_servers_spec.rb +216 -0
  69. data/spec/tengine/resource/provider/wakame_api_spec.rb +319 -0
  70. data/spec/tengine/resource/provider/wakame_spec.rb +339 -0
  71. data/spec/tengine/resource/provider_spec.rb +252 -0
  72. data/spec/tengine/resource/server_spec.rb +195 -0
  73. data/spec/tengine/resource/test_files/.gitignore +6 -0
  74. data/spec/tengine/resource/test_files/00_describe_host_nodes_0_physical_servers.json +8 -0
  75. data/spec/tengine/resource/test_files/01_describe_host_nodes_10_physical_servers.json +139 -0
  76. data/spec/tengine/resource/test_files/02_describe_host_nodes_60_physical_servers.json +795 -0
  77. data/spec/tengine/resource/test_files/10_describe_instances_0_virtual_servers.json +8 -0
  78. data/spec/tengine/resource/test_files/11_describe_instances_10_virtual_servers.json +469 -0
  79. data/spec/tengine/resource/test_files/12_describe_instances_after_run_instances.json +280 -0
  80. data/spec/tengine/resource/test_files/13_describe_instances_after_terminate_instances.json +279 -0
  81. data/spec/tengine/resource/test_files/14_describe_instances_after_run_1_instance.json +55 -0
  82. data/spec/tengine/resource/test_files/20_describe_images_0_virtual_server_images.json +8 -0
  83. data/spec/tengine/resource/test_files/21_describe_images_5_virtual_server_images.json +84 -0
  84. data/spec/tengine/resource/test_files/22_describe_images_60_virtual_server_images.json +856 -0
  85. data/spec/tengine/resource/test_files/30_describe_instance_specs_0_virtual_server_specs.json +8 -0
  86. data/spec/tengine/resource/test_files/31_describe_instance_specs_4_virtual_server_specs.json +66 -0
  87. data/spec/tengine/resource/test_files/40_run_instances_0_virtual_servers.json +1 -0
  88. data/spec/tengine/resource/test_files/41_run_instances_1_virtual_servers.json +22 -0
  89. data/spec/tengine/resource/test_files/42_run_instances_5_virtual_servers.json +106 -0
  90. data/spec/tengine/resource/test_files/43_run_instances_1_virtual_servers_without_aws_availability_zone.json +22 -0
  91. data/spec/tengine/resource/test_files/50_terminate_instances_0_virtual_servers.json +1 -0
  92. data/spec/tengine/resource/test_files/51_terminate_instances_3_virtual_servers.json +5 -0
  93. data/spec/tengine/resource/virtual_server_image_spec.rb +94 -0
  94. data/spec/tengine/resource/virtual_server_spec.rb +116 -0
  95. data/spec/tengine/resource/virtual_server_type_spec.rb +4 -0
  96. data/spec/tengine/resource/watcher_spec.rb +1026 -0
  97. data/spec/tengine_resource_spec.rb +5 -0
  98. data/tengine_resource.gemspec +171 -0
  99. data/tmp/log/.gitignore +1 -0
  100. metadata +286 -0
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "owner_total": 0,
4
+ "start": 0,
5
+ "results": [],
6
+ "limit": null
7
+ }
8
+ ]
@@ -0,0 +1,469 @@
1
+ [
2
+ {
3
+ "owner_total": 10,
4
+ "start": 0,
5
+ "results": [
6
+ {
7
+ "id": "virtual_server_id_01",
8
+ "host_node": "physical_server_id_01",
9
+ "image_id": "virtual_server_image_uuid_01",
10
+ "instance_spec_id": "virtual_server_spec_id_01",
11
+ "state": "running",
12
+ "network": [
13
+ {
14
+ "network_name": "nw-data",
15
+ "ipaddr": ["192.168.2.1"],
16
+ "nat_network_name": "nw-outside",
17
+ "nat_ipaddr": ["172.16.0.1"],
18
+ "dns_name": "jria301q.shpoolxx.vdc.local",
19
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
20
+ },
21
+ {
22
+ "network_name": "nw-data_2",
23
+ "ipaddr": ["192.168.3.1"],
24
+ "nat_network_name": "nw-outside_2",
25
+ "nat_ipaddr": ["172.16.1.1"],
26
+ "dns_name": "jria301q.shpoolxx.vdc.local",
27
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
28
+ }
29
+ ],
30
+ "vif": [
31
+ {
32
+ "ipv4": {
33
+ "nat_address": "172.16.0.234",
34
+ "address": "192.168.2.188"
35
+ },
36
+ "vif_id": "vif-aspojqs4"
37
+ }
38
+ ],
39
+ "status": "online",
40
+ "cpu_cores": 1,
41
+ "memory_size": 256,
42
+ "ha_enabled": 0,
43
+ "arch": "x86_64",
44
+ "hostname": "jria301q",
45
+ "created_at": "2011-10-18T06:51:16Z",
46
+ "netfilter_group_id": ["ng-demofgr"],
47
+ "ssh_key_pair": null,
48
+ "volume": [],
49
+ "netfilter_group": ["default"]
50
+ },
51
+
52
+ {
53
+ "id": "virtual_server_id_02",
54
+ "host_node": "physical_server_id_01",
55
+ "image_id": "virtual_server_image_uuid_01",
56
+ "instance_spec_id": "virtual_server_spec_id_01",
57
+ "state": "running",
58
+ "network": [
59
+ {
60
+ "network_name": "nw-data",
61
+ "ipaddr": ["192.168.2.2"],
62
+ "nat_network_name": "nw-outside",
63
+ "nat_ipaddr": ["172.16.0.2"],
64
+ "dns_name": "jria301q.shpoolxx.vdc.local",
65
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
66
+ },
67
+ {
68
+ "network_name": "nw-data_2",
69
+ "ipaddr": ["192.168.3.2"],
70
+ "nat_network_name": "nw-outside_2",
71
+ "nat_ipaddr": ["172.16.1.2"],
72
+ "dns_name": "jria301q.shpoolxx.vdc.local",
73
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
74
+ }
75
+ ],
76
+ "vif": [
77
+ {
78
+ "ipv4": {
79
+ "nat_address": "172.16.0.234",
80
+ "address": "192.168.2.188"
81
+ },
82
+ "vif_id": "vif-aspojqs4"
83
+ }
84
+ ],
85
+ "status": "online",
86
+ "cpu_cores": 1,
87
+ "memory_size": 256,
88
+ "ha_enabled": 0,
89
+ "arch": "x86_64",
90
+ "hostname": "jria301q",
91
+ "created_at": "2011-10-18T06:51:16Z",
92
+ "netfilter_group_id": ["ng-demofgr"],
93
+ "ssh_key_pair": null,
94
+ "volume": [],
95
+ "netfilter_group": ["default"]
96
+ },
97
+
98
+ {
99
+ "id": "virtual_server_id_03",
100
+ "host_node": "physical_server_id_01",
101
+ "image_id": "virtual_server_image_uuid_01",
102
+ "instance_spec_id": "virtual_server_spec_id_01",
103
+ "state": "starting",
104
+ "network": [
105
+ {
106
+ "network_name": "nw-data",
107
+ "ipaddr": ["192.168.2.3"],
108
+ "nat_network_name": "nw-outside",
109
+ "nat_ipaddr": ["172.16.0.3"],
110
+ "dns_name": "jria301q.shpoolxx.vdc.local",
111
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
112
+ },
113
+ {
114
+ "network_name": "nw-data_2",
115
+ "ipaddr": ["192.168.3.3"],
116
+ "nat_network_name": "nw-outside_2",
117
+ "nat_ipaddr": ["172.16.1.3"],
118
+ "dns_name": "jria301q.shpoolxx.vdc.local",
119
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
120
+ }
121
+ ],
122
+ "vif": [
123
+ {
124
+ "ipv4": {
125
+ "nat_address": "172.16.0.234",
126
+ "address": "192.168.2.188"
127
+ },
128
+ "vif_id": "vif-aspojqs4"
129
+ }
130
+ ],
131
+ "status": "online",
132
+ "cpu_cores": 1,
133
+ "memory_size": 256,
134
+ "ha_enabled": 0,
135
+ "arch": "x86_64",
136
+ "hostname": "jria301q",
137
+ "created_at": "2011-10-18T06:51:16Z",
138
+ "netfilter_group_id": ["ng-demofgr"],
139
+ "ssh_key_pair": null,
140
+ "volume": [],
141
+ "netfilter_group": ["default"]
142
+ },
143
+
144
+ {
145
+ "id": "virtual_server_id_04",
146
+ "host_node": "physical_server_id_01",
147
+ "image_id": "virtual_server_image_uuid_01",
148
+ "instance_spec_id": "virtual_server_spec_id_01",
149
+ "state": "shuttingdown",
150
+ "network": [
151
+ {
152
+ "network_name": "nw-data",
153
+ "ipaddr": ["192.168.2.4"],
154
+ "nat_network_name": "nw-outside",
155
+ "nat_ipaddr": ["172.16.0.4"],
156
+ "dns_name": "jria301q.shpoolxx.vdc.local",
157
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
158
+ },
159
+ {
160
+ "network_name": "nw-data_2",
161
+ "ipaddr": ["192.168.3.4"],
162
+ "nat_network_name": "nw-outside_2",
163
+ "nat_ipaddr": ["172.16.1.4"],
164
+ "dns_name": "jria301q.shpoolxx.vdc.local",
165
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
166
+ }
167
+ ],
168
+ "vif": [
169
+ {
170
+ "ipv4": {
171
+ "nat_address": "172.16.0.234",
172
+ "address": "192.168.2.188"
173
+ },
174
+ "vif_id": "vif-aspojqs4"
175
+ }
176
+ ],
177
+ "status": "online",
178
+ "cpu_cores": 1,
179
+ "memory_size": 256,
180
+ "ha_enabled": 0,
181
+ "arch": "x86_64",
182
+ "hostname": "jria301q",
183
+ "created_at": "2011-10-18T06:51:16Z",
184
+ "netfilter_group_id": ["ng-demofgr"],
185
+ "ssh_key_pair": null,
186
+ "volume": [],
187
+ "netfilter_group": ["default"]
188
+ },
189
+
190
+ {
191
+ "id": "virtual_server_id_05",
192
+ "host_node": "physical_server_id_01",
193
+ "image_id": "virtual_server_image_uuid_01",
194
+ "instance_spec_id": "virtual_server_spec_id_01",
195
+ "state": "terminated",
196
+ "network": [
197
+ {
198
+ "network_name": "nw-data",
199
+ "ipaddr": ["192.168.2.5"],
200
+ "nat_network_name": "nw-outside",
201
+ "nat_ipaddr": ["172.16.0.5"],
202
+ "dns_name": "jria301q.shpoolxx.vdc.local",
203
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
204
+ },
205
+ {
206
+ "network_name": "nw-data_2",
207
+ "ipaddr": ["192.168.3.5"],
208
+ "nat_network_name": "nw-outside_2",
209
+ "nat_ipaddr": ["172.16.1.5"],
210
+ "dns_name": "jria301q.shpoolxx.vdc.local",
211
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
212
+ }
213
+ ],
214
+ "vif": [
215
+ {
216
+ "ipv4": {
217
+ "nat_address": "172.16.0.234",
218
+ "address": "192.168.2.188"
219
+ },
220
+ "vif_id": "vif-aspojqs4"
221
+ }
222
+ ],
223
+ "status": "online",
224
+ "cpu_cores": 1,
225
+ "memory_size": 256,
226
+ "ha_enabled": 0,
227
+ "arch": "x86_64",
228
+ "hostname": "jria301q",
229
+ "created_at": "2011-10-18T06:51:16Z",
230
+ "netfilter_group_id": ["ng-demofgr"],
231
+ "ssh_key_pair": null,
232
+ "volume": [],
233
+ "netfilter_group": ["default"]
234
+ },
235
+
236
+ {
237
+ "id": "virtual_server_id_06",
238
+ "host_node": "physical_server_id_02",
239
+ "image_id": "virtual_server_image_uuid_02",
240
+ "instance_spec_id": "virtual_server_spec_id_02",
241
+ "state": "running",
242
+ "network": [
243
+ {
244
+ "network_name": "nw-data",
245
+ "ipaddr": ["192.168.2.6"],
246
+ "nat_network_name": "nw-outside",
247
+ "nat_ipaddr": ["172.16.0.6"],
248
+ "dns_name": "jria301q.shpoolxx.vdc.local",
249
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
250
+ },
251
+ {
252
+ "network_name": "nw-data_2",
253
+ "ipaddr": ["192.168.3.6"],
254
+ "nat_network_name": "nw-outside_2",
255
+ "nat_ipaddr": ["172.16.1.6"],
256
+ "dns_name": "jria301q.shpoolxx.vdc.local",
257
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
258
+ }
259
+ ],
260
+ "vif": [
261
+ {
262
+ "ipv4": {
263
+ "nat_address": "172.16.0.234",
264
+ "address": "192.168.2.188"
265
+ },
266
+ "vif_id": "vif-aspojqs4"
267
+ }
268
+ ],
269
+ "status": "online",
270
+ "cpu_cores": 1,
271
+ "memory_size": 256,
272
+ "ha_enabled": 0,
273
+ "arch": "x86_64",
274
+ "hostname": "jria301q",
275
+ "created_at": "2011-10-18T06:51:16Z",
276
+ "netfilter_group_id": ["ng-demofgr"],
277
+ "ssh_key_pair": null,
278
+ "volume": [],
279
+ "netfilter_group": ["default"]
280
+ },
281
+
282
+ {
283
+ "id": "virtual_server_id_07",
284
+ "host_node": "physical_server_id_02",
285
+ "image_id": "virtual_server_image_uuid_02",
286
+ "instance_spec_id": "virtual_server_spec_id_02",
287
+ "state": "running",
288
+ "network": [
289
+ {
290
+ "network_name": "nw-data",
291
+ "ipaddr": ["192.168.2.7"],
292
+ "nat_network_name": "nw-outside",
293
+ "nat_ipaddr": ["172.16.0.7"],
294
+ "dns_name": "jria301q.shpoolxx.vdc.local",
295
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
296
+ },
297
+ {
298
+ "network_name": "nw-data_2",
299
+ "ipaddr": ["192.168.3.7"],
300
+ "nat_network_name": "nw-outside_2",
301
+ "nat_ipaddr": ["172.16.1.7"],
302
+ "dns_name": "jria301q.shpoolxx.vdc.local",
303
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
304
+ }
305
+ ],
306
+ "vif": [
307
+ {
308
+ "ipv4": {
309
+ "nat_address": "172.16.0.234",
310
+ "address": "192.168.2.188"
311
+ },
312
+ "vif_id": "vif-aspojqs4"
313
+ }
314
+ ],
315
+ "status": "online",
316
+ "cpu_cores": 1,
317
+ "memory_size": 256,
318
+ "ha_enabled": 0,
319
+ "arch": "x86_64",
320
+ "hostname": "jria301q",
321
+ "created_at": "2011-10-18T06:51:16Z",
322
+ "netfilter_group_id": ["ng-demofgr"],
323
+ "ssh_key_pair": null,
324
+ "volume": [],
325
+ "netfilter_group": ["default"]
326
+ },
327
+
328
+ {
329
+ "id": "virtual_server_id_08",
330
+ "host_node": "physical_server_id_02",
331
+ "image_id": "virtual_server_image_uuid_02",
332
+ "instance_spec_id": "virtual_server_spec_id_02",
333
+ "state": "running",
334
+ "network": [
335
+ {
336
+ "network_name": "nw-data",
337
+ "ipaddr": ["192.168.2.8"],
338
+ "nat_network_name": "nw-outside",
339
+ "nat_ipaddr": ["172.16.0.8"],
340
+ "dns_name": "jria301q.shpoolxx.vdc.local",
341
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
342
+ },
343
+ {
344
+ "network_name": "nw-data_2",
345
+ "ipaddr": ["192.168.3.8"],
346
+ "nat_network_name": "nw-outside_2",
347
+ "nat_ipaddr": ["172.16.1.8"],
348
+ "dns_name": "jria301q.shpoolxx.vdc.local",
349
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
350
+ }
351
+ ],
352
+ "vif": [
353
+ {
354
+ "ipv4": {
355
+ "nat_address": "172.16.0.234",
356
+ "address": "192.168.2.188"
357
+ },
358
+ "vif_id": "vif-aspojqs4"
359
+ }
360
+ ],
361
+ "status": "online",
362
+ "cpu_cores": 1,
363
+ "memory_size": 256,
364
+ "ha_enabled": 0,
365
+ "arch": "x86_64",
366
+ "hostname": "jria301q",
367
+ "created_at": "2011-10-18T06:51:16Z",
368
+ "netfilter_group_id": ["ng-demofgr"],
369
+ "ssh_key_pair": null,
370
+ "volume": [],
371
+ "netfilter_group": ["default"]
372
+ },
373
+
374
+ {
375
+ "id": "virtual_server_id_09",
376
+ "host_node": "physical_server_id_03",
377
+ "image_id": "virtual_server_image_uuid_01",
378
+ "instance_spec_id": "virtual_server_spec_id_01",
379
+ "state": "running",
380
+ "network": [
381
+ {
382
+ "network_name": "nw-data",
383
+ "ipaddr": ["192.168.2.9"],
384
+ "nat_network_name": "nw-outside",
385
+ "nat_ipaddr": ["172.16.0.9"],
386
+ "dns_name": "jria301q.shpoolxx.vdc.local",
387
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
388
+ },
389
+ {
390
+ "network_name": "nw-data_2",
391
+ "ipaddr": ["192.168.3.9"],
392
+ "nat_network_name": "nw-outside_2",
393
+ "nat_ipaddr": ["172.16.1.9"],
394
+ "dns_name": "jria301q.shpoolxx.vdc.local",
395
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
396
+ }
397
+ ],
398
+ "vif": [
399
+ {
400
+ "ipv4": {
401
+ "nat_address": "172.16.0.234",
402
+ "address": "192.168.2.188"
403
+ },
404
+ "vif_id": "vif-aspojqs4"
405
+ }
406
+ ],
407
+ "status": "online",
408
+ "cpu_cores": 1,
409
+ "memory_size": 256,
410
+ "ha_enabled": 0,
411
+ "arch": "x86_64",
412
+ "hostname": "jria301q",
413
+ "created_at": "2011-10-18T06:51:16Z",
414
+ "netfilter_group_id": ["ng-demofgr"],
415
+ "ssh_key_pair": null,
416
+ "volume": [],
417
+ "netfilter_group": ["default"]
418
+ },
419
+
420
+ {
421
+ "id": "virtual_server_id_10",
422
+ "host_node": "physical_server_id_03",
423
+ "image_id": "virtual_server_image_uuid_02",
424
+ "instance_spec_id": "virtual_server_spec_id_02",
425
+ "state": "running",
426
+ "network": [
427
+ {
428
+ "network_name": "nw-data",
429
+ "ipaddr": ["192.168.2.10"],
430
+ "nat_network_name": "nw-outside",
431
+ "nat_ipaddr": ["172.16.0.10"],
432
+ "dns_name": "jria301q.shpoolxx.vdc.local",
433
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
434
+ },
435
+ {
436
+ "network_name": "nw-data_2",
437
+ "ipaddr": ["192.168.3.10"],
438
+ "nat_network_name": "nw-outside_2",
439
+ "nat_ipaddr": ["172.16.1.10"],
440
+ "dns_name": "jria301q.shpoolxx.vdc.local",
441
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
442
+ }
443
+ ],
444
+ "vif": [
445
+ {
446
+ "ipv4": {
447
+ "nat_address": "172.16.0.234",
448
+ "address": "192.168.2.188"
449
+ },
450
+ "vif_id": "vif-aspojqs4"
451
+ }
452
+ ],
453
+ "status": "online",
454
+ "cpu_cores": 1,
455
+ "memory_size": 256,
456
+ "ha_enabled": 0,
457
+ "arch": "x86_64",
458
+ "hostname": "jria301q",
459
+ "created_at": "2011-10-18T06:51:16Z",
460
+ "netfilter_group_id": ["ng-demofgr"],
461
+ "ssh_key_pair": null,
462
+ "volume": [],
463
+ "netfilter_group": ["default"]
464
+ }
465
+
466
+ ],
467
+ "limit": null
468
+ }
469
+ ]