occi 3.0.0.beta.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Gemfile +3 -26
  2. data/Gemfile.lock +43 -35
  3. data/README.md +40 -4
  4. data/bin/occi +67 -64
  5. data/ext/mkrf_conf.rb +25 -0
  6. data/features/cassettes/Create_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
  7. data/features/cassettes/Delete_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
  8. data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__application_json_200_.yml +173 -0
  9. data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__text_plain_200_.yml +325 -0
  10. data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__text_plain_200_action_.yml +186 -0
  11. data/features/cassettes/Miscellaneous_operation_on_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
  12. data/features/cassettes/Read_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
  13. data/features/cassettes/Update_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
  14. data/features/occi/core/create/create.feature +3 -2
  15. data/features/occi/core/delete/delete.feature +6 -2
  16. data/features/occi/core/discovery_interface/discovery_interface.feature +4 -2
  17. data/features/occi/core/miscellaneous/miscellaneous.feature +6 -2
  18. data/features/occi/core/read/read.feature +6 -2
  19. data/features/occi/core/update/update.feature +6 -2
  20. data/features/occi/infrastructure/create/create.feature +6 -2
  21. data/features/support/env.rb +13 -1
  22. data/lib/occi/api/client/client_http.rb +914 -820
  23. data/lib/occi/api/client/http/net_http_fix.rb +7 -36
  24. data/lib/occi/api/dsl.rb +32 -2
  25. data/lib/occi/bin/occi_opts.rb +15 -1
  26. data/lib/occi/collection.rb +26 -15
  27. data/lib/occi/core/categories.rb +9 -1
  28. data/lib/occi/core/category.rb +20 -11
  29. data/lib/occi/core/link.rb +4 -5
  30. data/lib/occi/model.rb +2 -2
  31. data/lib/occi/parser.rb +51 -49
  32. data/lib/occi/version.rb +1 -1
  33. data/occi.gemspec +16 -3
  34. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_compute_resource.yml +222 -0
  35. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_network_resource.yml +222 -0
  36. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_storage_resource.yml +222 -0
  37. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_compute_resource.yml +222 -0
  38. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_network_resource.yml +222 -0
  39. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_storage_resource.yml +222 -0
  40. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deploys_an_instance_based_on_OVF_OVA_file.yml +222 -0
  41. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_all_available_mixins.yml +222 -0
  42. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_compute_resources.yml +324 -0
  43. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_network_resources.yml +326 -0
  44. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_os_tpl_mixins.yml +222 -0
  45. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_resource_tpl_mixins.yml +222 -0
  46. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_storage_resources.yml +386 -0
  47. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/establishes_connection.yml +222 -0
  48. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_identifier.yml +222 -0
  49. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_name.yml +222 -0
  50. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_identifier.yml +222 -0
  51. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_name.yml +222 -0
  52. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_identifier.yml +222 -0
  53. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_name.yml +222 -0
  54. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_type_identifiers.yml +222 -0
  55. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_types.yml +222 -0
  56. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_type_identifiers.yml +222 -0
  57. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_types.yml +222 -0
  58. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_type_identifiers.yml +222 -0
  59. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_types.yml +222 -0
  60. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixins.yml +222 -0
  61. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_type_identifiers.yml +222 -0
  62. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_types.yml +222 -0
  63. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_compute_resources.yml +264 -0
  64. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_network_resources.yml +264 -0
  65. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_os_tpl_mixins.yml +222 -0
  66. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_resource_tpl_mixins.yml +222 -0
  67. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_storage_resources.yml +266 -0
  68. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/refreshes_its_model.yml +397 -0
  69. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_compute_resource.yml +222 -0
  70. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_network_resource.yml +222 -0
  71. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_storage_resource.yml +222 -0
  72. data/spec/occi/api/client/client_amqp_spec.rb +10 -2
  73. data/spec/occi/api/client/client_http_spec.rb +111 -117
  74. data/spec/occi/api/dsl_spec.rb +22 -0
  75. data/spec/occi/collection_spec.rb +11 -2
  76. data/spec/occi/core/resource_spec.rb +1 -1
  77. data/spec/occi/infrastructure/compute_spec.rb +3 -3
  78. data/spec/occi/log_spec.rb +1 -1
  79. data/spec/occi/model_spec.rb +4 -8
  80. data/spec/occi/parser_spec.rb +4 -4
  81. data/spec/spec_helper.rb +3 -2
  82. metadata +264 -12
  83. data/spec/cassettes/client_http_text_plain.yml +0 -1066
  84. data/spec/occi/api/client/client_http_0.5_spec.rb +0 -292
@@ -0,0 +1,222 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: https://localhost:3300/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/plain,text/occi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Thu, 10 Jan 2013 17:45:23 GMT
19
+ Server:
20
+ - Apache/2.2.20 (Ubuntu)
21
+ X-Powered-By:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
23
+ X-Frame-Options:
24
+ - sameorigin
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ Accept:
28
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
29
+ Set-Cookie:
30
+ - GRIDHTTP_PASSCODE=d7c3abb1b0e7ed9fvhjCIQ; domain=localhost; path=/;
31
+ secure
32
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFNmRmZGYwZjgwZTY0NDc5OGUyMjdm%0AMTM3MjlkNWMwOWIwNzhiNzU0YjAyYTg2YzE1M2EwNTUzNzk2OTA3ODg3Mkki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--bcf3b29269a450e7b643e4d5405e53684c99e9f9;
33
+ path=/; HttpOnly
34
+ Content-Length:
35
+ - '294'
36
+ Status:
37
+ - '200'
38
+ Vary:
39
+ - Accept-Encoding
40
+ Content-Type:
41
+ - text/plain;charset=utf-8
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Thu, 10 Jan 2013 17:45:23 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://localhost:3300/-/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - text/plain,text/occi
56
+ response:
57
+ status:
58
+ code: 200
59
+ message: OK
60
+ headers:
61
+ Date:
62
+ - Thu, 10 Jan 2013 17:45:23 GMT
63
+ Server:
64
+ - Apache/2.2.20 (Ubuntu)
65
+ X-Powered-By:
66
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
67
+ X-Frame-Options:
68
+ - sameorigin
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Accept:
72
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
73
+ Set-Cookie:
74
+ - GRIDHTTP_PASSCODE=71a7332acbb36377l0DYiu; domain=localhost; path=/;
75
+ secure
76
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFOGRmOGI1ODgwZTI2NzhkZWVjODFl%0AODAwOTMwZDkwMjc1NGNlN2MxZjg5NGI2YTZkNWVhOTE3Nzc1OTg1OTFiOUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--f141bb38b0aa273eea158df0b71202f4ecfa04cc;
77
+ path=/; HttpOnly
78
+ Content-Length:
79
+ - '8975'
80
+ Status:
81
+ - '200'
82
+ Vary:
83
+ - Accept-Encoding
84
+ Content-Type:
85
+ - text/plain;charset=utf-8
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
89
+ occi.core.title"
90
+
91
+ Category: resource;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Resource";rel="http://schemas.ogf.org/occi/core#entity";location="/resource/";attributes="occi.core.summary"
92
+
93
+ Category: link;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Link";rel="http://schemas.ogf.org/occi/core#entity";location="/link/";attributes="occi.core.target
94
+ occi.core.source"
95
+
96
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
97
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
98
+ occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
99
+ occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
100
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
101
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
102
+
103
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
104
+ Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
105
+ occi.storagelink.mountpoint occi.storagelink.state"
106
+
107
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
108
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
109
+ occi.network.label occi.network.state org.opennebula.network.id org.opennebula.network.bridge
110
+ org.opennebula.network.vlan org.opennebula.network.phydev org.opennebula.network.ip_start
111
+ org.opennebula.network.ip_end";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
112
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
113
+
114
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
115
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
116
+ occi.storage.state org.opennebula.storage.id org.opennebula.storage.type org.opennebula.storage.persistent
117
+ org.opennebula.storage.dev_prefix org.opennebula.storage.bus org.opennebula.storage.driver
118
+ org.opennebula.storage.fstype";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
119
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
120
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
121
+
122
+ Category: networkinterface;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Networkinterface";rel="http://schemas.ogf.org/occi/core#link";location="/networkinterface/";attributes="occi.networkinterface.interface
123
+ occi.networkinterface.mac occi.networkinterface.state"
124
+
125
+ Category: console;scheme="http://schemas.ogf.org/occi/infrastructure/compute#";class="kind";title="Link
126
+ to the VM''s console";rel="http://schemas.ogf.org/occi/core#link";location="/console/"
127
+
128
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
129
+ System Template";location="/mixins/os_tpl/"
130
+
131
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
132
+ Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
133
+ occi.network.gateway occi.network.allocation occi.network.state"
134
+
135
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
136
+ Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
137
+ occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
138
+
139
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
140
+ Template";location="/mixins/resource_tpl/"
141
+
142
+ Category: compute;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
143
+ specific Compute attributes";location="/mixins/compute/";attributes="org.opennebula.compute.cpu
144
+ org.opennebula.compute.kernel org.opennebula.compute.initrd org.opennebula.compute.root
145
+ org.opennebula.compute.kernel_cmd org.opennebula.compute.bootloader org.opennebula.compute.boot"
146
+
147
+ Category: storagelink;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
148
+ specific Storagelink attributes";location="/mixins/storagelink/";attributes="org.opennebula.storagelink.bus
149
+ org.opennebula.storagelink.driver"
150
+
151
+ Category: network;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
152
+ specific Network attributes";location="/mixins/network/";attributes="org.opennebula.network.id
153
+ org.opennebula.network.bridge org.opennebula.network.vlan org.opennebula.network.phydev
154
+ org.opennebula.network.ip_start org.opennebula.network.ip_end"
155
+
156
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
157
+ specific Storage attributes";location="/mixins/storage/";attributes="org.opennebula.storage.id
158
+ org.opennebula.storage.type org.opennebula.storage.persistent org.opennebula.storage.dev_prefix
159
+ org.opennebula.storage.bus org.opennebula.storage.driver org.opennebula.storage.fstype"
160
+
161
+ Category: networkinterface;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
162
+ specific Networkinterface attributes";location="/mixins/networkinterface/";attributes="org.opennebula.networkinterface.bridge
163
+ org.opennebula.networkinterface.script org.opennebula.networkinterface.model
164
+ org.opennebula.networkinterface.white_ports_tcp org.opennebula.networkinterface.black_ports_tcp
165
+ org.opennebula.networkinterface.white_ports_udp org.opennebula.networkinterface.black_ports_udp
166
+ org.opennebula.networkinterface.icmp"
167
+
168
+ Category: large;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Large
169
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
170
+ occi.compute.cores occi.compute.speed occi.compute.memory"
171
+
172
+ Category: extra_large;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
173
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
174
+ occi.compute.cores occi.compute.speed occi.compute.memory"
175
+
176
+ Category: medium;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
177
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
178
+ occi.compute.cores occi.compute.speed occi.compute.memory"
179
+
180
+ Category: small;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Small
181
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
182
+ occi.compute.cores occi.compute.speed occi.compute.memory"
183
+
184
+ Category: mytesttemplate;scheme="http://occi.localhost:3300/occi/infrastructure/os_tpl#";class="mixin";title="MyTestTemplate";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/mytesttemplate/"
185
+
186
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
187
+ Compute instance"
188
+
189
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
190
+ Compute instance";attributes="method"
191
+
192
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
193
+ Compute instance";attributes="method"
194
+
195
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
196
+ Compute instance";attributes="method"
197
+
198
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
199
+ network"
200
+
201
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#up";class="action";title="Activate
202
+ network"
203
+
204
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
205
+ Storage"
206
+
207
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
208
+ Storage"
209
+
210
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
211
+ Storage"
212
+
213
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
214
+ Storage"
215
+
216
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
217
+ Storage";attributes="size"
218
+
219
+ '
220
+ http_version:
221
+ recorded_at: Thu, 10 Jan 2013 17:45:24 GMT
222
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,222 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: https://localhost:3300/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/plain,text/occi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Thu, 10 Jan 2013 17:45:24 GMT
19
+ Server:
20
+ - Apache/2.2.20 (Ubuntu)
21
+ X-Powered-By:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
23
+ X-Frame-Options:
24
+ - sameorigin
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ Accept:
28
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
29
+ Set-Cookie:
30
+ - GRIDHTTP_PASSCODE=4568fd9f6eed3551H33cIy; domain=localhost; path=/;
31
+ secure
32
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFMmM4Y2I4NDIzZTMxM2YxMDNiYjI4%0ANDI1YTRlNTc2OGNlMWFiNWJhMjkzMDVmYmI5YjQ2MzRhMGRiYmFhOGM2Ykki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--4c0d04a8a5d7e9d752e73db4ccdcdeeb51096ef9;
33
+ path=/; HttpOnly
34
+ Content-Length:
35
+ - '294'
36
+ Status:
37
+ - '200'
38
+ Vary:
39
+ - Accept-Encoding
40
+ Content-Type:
41
+ - text/plain;charset=utf-8
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Thu, 10 Jan 2013 17:45:24 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://localhost:3300/-/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - text/plain,text/occi
56
+ response:
57
+ status:
58
+ code: 200
59
+ message: OK
60
+ headers:
61
+ Date:
62
+ - Thu, 10 Jan 2013 17:45:25 GMT
63
+ Server:
64
+ - Apache/2.2.20 (Ubuntu)
65
+ X-Powered-By:
66
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
67
+ X-Frame-Options:
68
+ - sameorigin
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Accept:
72
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
73
+ Set-Cookie:
74
+ - GRIDHTTP_PASSCODE=60effb3e9e7feb06gkurfe; domain=localhost; path=/;
75
+ secure
76
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZTI5ZTFmM2QyNTdkZjhhNmE0ZWFj%0AYWE0MTUyODZmMzc4MWMzN2NhMDY5NWQ1YTkzZTRlODdiNTM2ZTdiNDVkZUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--0199ba34d0a79ff87dbab4b356d977825ebfb684;
77
+ path=/; HttpOnly
78
+ Content-Length:
79
+ - '8975'
80
+ Status:
81
+ - '200'
82
+ Vary:
83
+ - Accept-Encoding
84
+ Content-Type:
85
+ - text/plain;charset=utf-8
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
89
+ occi.core.title"
90
+
91
+ Category: resource;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Resource";rel="http://schemas.ogf.org/occi/core#entity";location="/resource/";attributes="occi.core.summary"
92
+
93
+ Category: link;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Link";rel="http://schemas.ogf.org/occi/core#entity";location="/link/";attributes="occi.core.target
94
+ occi.core.source"
95
+
96
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
97
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
98
+ occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
99
+ occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
100
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
101
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
102
+
103
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
104
+ Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
105
+ occi.storagelink.mountpoint occi.storagelink.state"
106
+
107
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
108
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
109
+ occi.network.label occi.network.state org.opennebula.network.id org.opennebula.network.bridge
110
+ org.opennebula.network.vlan org.opennebula.network.phydev org.opennebula.network.ip_start
111
+ org.opennebula.network.ip_end";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
112
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
113
+
114
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
115
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
116
+ occi.storage.state org.opennebula.storage.id org.opennebula.storage.type org.opennebula.storage.persistent
117
+ org.opennebula.storage.dev_prefix org.opennebula.storage.bus org.opennebula.storage.driver
118
+ org.opennebula.storage.fstype";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
119
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
120
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
121
+
122
+ Category: networkinterface;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Networkinterface";rel="http://schemas.ogf.org/occi/core#link";location="/networkinterface/";attributes="occi.networkinterface.interface
123
+ occi.networkinterface.mac occi.networkinterface.state"
124
+
125
+ Category: console;scheme="http://schemas.ogf.org/occi/infrastructure/compute#";class="kind";title="Link
126
+ to the VM''s console";rel="http://schemas.ogf.org/occi/core#link";location="/console/"
127
+
128
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
129
+ System Template";location="/mixins/os_tpl/"
130
+
131
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
132
+ Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
133
+ occi.network.gateway occi.network.allocation occi.network.state"
134
+
135
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
136
+ Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
137
+ occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
138
+
139
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
140
+ Template";location="/mixins/resource_tpl/"
141
+
142
+ Category: compute;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
143
+ specific Compute attributes";location="/mixins/compute/";attributes="org.opennebula.compute.cpu
144
+ org.opennebula.compute.kernel org.opennebula.compute.initrd org.opennebula.compute.root
145
+ org.opennebula.compute.kernel_cmd org.opennebula.compute.bootloader org.opennebula.compute.boot"
146
+
147
+ Category: storagelink;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
148
+ specific Storagelink attributes";location="/mixins/storagelink/";attributes="org.opennebula.storagelink.bus
149
+ org.opennebula.storagelink.driver"
150
+
151
+ Category: network;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
152
+ specific Network attributes";location="/mixins/network/";attributes="org.opennebula.network.id
153
+ org.opennebula.network.bridge org.opennebula.network.vlan org.opennebula.network.phydev
154
+ org.opennebula.network.ip_start org.opennebula.network.ip_end"
155
+
156
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
157
+ specific Storage attributes";location="/mixins/storage/";attributes="org.opennebula.storage.id
158
+ org.opennebula.storage.type org.opennebula.storage.persistent org.opennebula.storage.dev_prefix
159
+ org.opennebula.storage.bus org.opennebula.storage.driver org.opennebula.storage.fstype"
160
+
161
+ Category: networkinterface;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
162
+ specific Networkinterface attributes";location="/mixins/networkinterface/";attributes="org.opennebula.networkinterface.bridge
163
+ org.opennebula.networkinterface.script org.opennebula.networkinterface.model
164
+ org.opennebula.networkinterface.white_ports_tcp org.opennebula.networkinterface.black_ports_tcp
165
+ org.opennebula.networkinterface.white_ports_udp org.opennebula.networkinterface.black_ports_udp
166
+ org.opennebula.networkinterface.icmp"
167
+
168
+ Category: large;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Large
169
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
170
+ occi.compute.cores occi.compute.speed occi.compute.memory"
171
+
172
+ Category: extra_large;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
173
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
174
+ occi.compute.cores occi.compute.speed occi.compute.memory"
175
+
176
+ Category: medium;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
177
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
178
+ occi.compute.cores occi.compute.speed occi.compute.memory"
179
+
180
+ Category: small;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Small
181
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
182
+ occi.compute.cores occi.compute.speed occi.compute.memory"
183
+
184
+ Category: mytesttemplate;scheme="http://occi.localhost:3300/occi/infrastructure/os_tpl#";class="mixin";title="MyTestTemplate";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/mytesttemplate/"
185
+
186
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
187
+ Compute instance"
188
+
189
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
190
+ Compute instance";attributes="method"
191
+
192
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
193
+ Compute instance";attributes="method"
194
+
195
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
196
+ Compute instance";attributes="method"
197
+
198
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
199
+ network"
200
+
201
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#up";class="action";title="Activate
202
+ network"
203
+
204
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
205
+ Storage"
206
+
207
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
208
+ Storage"
209
+
210
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
211
+ Storage"
212
+
213
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
214
+ Storage"
215
+
216
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
217
+ Storage";attributes="size"
218
+
219
+ '
220
+ http_version:
221
+ recorded_at: Thu, 10 Jan 2013 17:45:25 GMT
222
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,386 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: https://localhost:3300/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/plain,text/occi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Thu, 10 Jan 2013 17:45:15 GMT
19
+ Server:
20
+ - Apache/2.2.20 (Ubuntu)
21
+ X-Powered-By:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
23
+ X-Frame-Options:
24
+ - sameorigin
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ Accept:
28
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
29
+ Set-Cookie:
30
+ - GRIDHTTP_PASSCODE=7d125d80959a0716fHCHTe; domain=localhost; path=/;
31
+ secure
32
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZDNjNjc3YmUzNzQ0MzY3MzM3Y2Zk%0AOWIwZTFhNzIwYTc2YTE0MWFlNjJjMWU0NTJlN2E0OWM4Njg3OWE4NjY3ZUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--e07feba1354432e536f975e358760ce58bc0c896;
33
+ path=/; HttpOnly
34
+ Content-Length:
35
+ - '294'
36
+ Status:
37
+ - '200'
38
+ Vary:
39
+ - Accept-Encoding
40
+ Content-Type:
41
+ - text/plain;charset=utf-8
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Thu, 10 Jan 2013 17:45:16 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://localhost:3300/-/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - text/plain,text/occi
56
+ response:
57
+ status:
58
+ code: 200
59
+ message: OK
60
+ headers:
61
+ Date:
62
+ - Thu, 10 Jan 2013 17:45:16 GMT
63
+ Server:
64
+ - Apache/2.2.20 (Ubuntu)
65
+ X-Powered-By:
66
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
67
+ X-Frame-Options:
68
+ - sameorigin
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Accept:
72
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
73
+ Set-Cookie:
74
+ - GRIDHTTP_PASSCODE=ee85500fe2870dadFo8Fw9; domain=localhost; path=/;
75
+ secure
76
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFNjM1MTZiMTE0NjcwZTM4NDk5YTdm%0AYzU2YzU5OTFkZDE3NGRmMmIxYTNkMTgxMTgwYjUyNzk0MmJlNDIyYzIyY0ki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--25ad0c0814ebb1a114053dfec7fd828ffa479b10;
77
+ path=/; HttpOnly
78
+ Content-Length:
79
+ - '8975'
80
+ Status:
81
+ - '200'
82
+ Vary:
83
+ - Accept-Encoding
84
+ Content-Type:
85
+ - text/plain;charset=utf-8
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
89
+ occi.core.title"
90
+
91
+ Category: resource;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Resource";rel="http://schemas.ogf.org/occi/core#entity";location="/resource/";attributes="occi.core.summary"
92
+
93
+ Category: link;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Link";rel="http://schemas.ogf.org/occi/core#entity";location="/link/";attributes="occi.core.target
94
+ occi.core.source"
95
+
96
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
97
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
98
+ occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
99
+ occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
100
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
101
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
102
+
103
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
104
+ Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
105
+ occi.storagelink.mountpoint occi.storagelink.state"
106
+
107
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
108
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
109
+ occi.network.label occi.network.state org.opennebula.network.id org.opennebula.network.bridge
110
+ org.opennebula.network.vlan org.opennebula.network.phydev org.opennebula.network.ip_start
111
+ org.opennebula.network.ip_end";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
112
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
113
+
114
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
115
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
116
+ occi.storage.state org.opennebula.storage.id org.opennebula.storage.type org.opennebula.storage.persistent
117
+ org.opennebula.storage.dev_prefix org.opennebula.storage.bus org.opennebula.storage.driver
118
+ org.opennebula.storage.fstype";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
119
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
120
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
121
+
122
+ Category: networkinterface;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Networkinterface";rel="http://schemas.ogf.org/occi/core#link";location="/networkinterface/";attributes="occi.networkinterface.interface
123
+ occi.networkinterface.mac occi.networkinterface.state"
124
+
125
+ Category: console;scheme="http://schemas.ogf.org/occi/infrastructure/compute#";class="kind";title="Link
126
+ to the VM''s console";rel="http://schemas.ogf.org/occi/core#link";location="/console/"
127
+
128
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
129
+ System Template";location="/mixins/os_tpl/"
130
+
131
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
132
+ Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
133
+ occi.network.gateway occi.network.allocation occi.network.state"
134
+
135
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
136
+ Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
137
+ occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
138
+
139
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
140
+ Template";location="/mixins/resource_tpl/"
141
+
142
+ Category: compute;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
143
+ specific Compute attributes";location="/mixins/compute/";attributes="org.opennebula.compute.cpu
144
+ org.opennebula.compute.kernel org.opennebula.compute.initrd org.opennebula.compute.root
145
+ org.opennebula.compute.kernel_cmd org.opennebula.compute.bootloader org.opennebula.compute.boot"
146
+
147
+ Category: storagelink;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
148
+ specific Storagelink attributes";location="/mixins/storagelink/";attributes="org.opennebula.storagelink.bus
149
+ org.opennebula.storagelink.driver"
150
+
151
+ Category: network;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
152
+ specific Network attributes";location="/mixins/network/";attributes="org.opennebula.network.id
153
+ org.opennebula.network.bridge org.opennebula.network.vlan org.opennebula.network.phydev
154
+ org.opennebula.network.ip_start org.opennebula.network.ip_end"
155
+
156
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
157
+ specific Storage attributes";location="/mixins/storage/";attributes="org.opennebula.storage.id
158
+ org.opennebula.storage.type org.opennebula.storage.persistent org.opennebula.storage.dev_prefix
159
+ org.opennebula.storage.bus org.opennebula.storage.driver org.opennebula.storage.fstype"
160
+
161
+ Category: networkinterface;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
162
+ specific Networkinterface attributes";location="/mixins/networkinterface/";attributes="org.opennebula.networkinterface.bridge
163
+ org.opennebula.networkinterface.script org.opennebula.networkinterface.model
164
+ org.opennebula.networkinterface.white_ports_tcp org.opennebula.networkinterface.black_ports_tcp
165
+ org.opennebula.networkinterface.white_ports_udp org.opennebula.networkinterface.black_ports_udp
166
+ org.opennebula.networkinterface.icmp"
167
+
168
+ Category: large;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Large
169
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
170
+ occi.compute.cores occi.compute.speed occi.compute.memory"
171
+
172
+ Category: extra_large;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
173
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
174
+ occi.compute.cores occi.compute.speed occi.compute.memory"
175
+
176
+ Category: medium;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
177
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
178
+ occi.compute.cores occi.compute.speed occi.compute.memory"
179
+
180
+ Category: small;scheme="http://occi.localhost:3300/occi/infrastructure/resource_tpl#";class="mixin";title="Small
181
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
182
+ occi.compute.cores occi.compute.speed occi.compute.memory"
183
+
184
+ Category: mytesttemplate;scheme="http://occi.localhost:3300/occi/infrastructure/os_tpl#";class="mixin";title="MyTestTemplate";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/mytesttemplate/"
185
+
186
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
187
+ Compute instance"
188
+
189
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
190
+ Compute instance";attributes="method"
191
+
192
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
193
+ Compute instance";attributes="method"
194
+
195
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
196
+ Compute instance";attributes="method"
197
+
198
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
199
+ network"
200
+
201
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#up";class="action";title="Activate
202
+ network"
203
+
204
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
205
+ Storage"
206
+
207
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
208
+ Storage"
209
+
210
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
211
+ Storage"
212
+
213
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
214
+ Storage"
215
+
216
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
217
+ Storage";attributes="size"
218
+
219
+ '
220
+ http_version:
221
+ recorded_at: Thu, 10 Jan 2013 17:45:16 GMT
222
+ - request:
223
+ method: get
224
+ uri: https://localhost:3300/storage/
225
+ body:
226
+ encoding: US-ASCII
227
+ string: ''
228
+ headers:
229
+ Accept:
230
+ - text/uri-list
231
+ response:
232
+ status:
233
+ code: 200
234
+ message: OK
235
+ headers:
236
+ Date:
237
+ - Thu, 10 Jan 2013 17:45:20 GMT
238
+ Server:
239
+ - Apache/2.2.20 (Ubuntu)
240
+ X-Powered-By:
241
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
242
+ X-Frame-Options:
243
+ - sameorigin
244
+ X-Xss-Protection:
245
+ - 1; mode=block
246
+ Accept:
247
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
248
+ Set-Cookie:
249
+ - GRIDHTTP_PASSCODE=8d778e88e5795e7cAcH87H; domain=localhost; path=/;
250
+ secure
251
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFOTI2NWQ0NjQ3YmI3NWI4MzY0MGZm%0ANTA3YTZlMjYxZDQ0ZjM1OWNkZWNkODFlMzExYzhkYzcyN2NlZjJmZmY3MUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--95011fc5e094792d3b6b5c81e3d10e35b9fca201;
252
+ path=/; HttpOnly
253
+ Content-Length:
254
+ - '159'
255
+ Status:
256
+ - '200'
257
+ Content-Type:
258
+ - text/uri-list;charset=utf-8
259
+ body:
260
+ encoding: US-ASCII
261
+ string: ! 'https://localhost:3300/storage/32fc6c92-88aa-54dc-b814-be0df741278e
262
+
263
+ https://localhost:3300/storage/5c1a7099-859e-5c3d-9386-740edbb610b8'
264
+ http_version:
265
+ recorded_at: Thu, 10 Jan 2013 17:45:20 GMT
266
+ - request:
267
+ method: get
268
+ uri: https://localhost:3300/storage/32fc6c92-88aa-54dc-b814-be0df741278e
269
+ body:
270
+ encoding: US-ASCII
271
+ string: ''
272
+ headers:
273
+ Accept:
274
+ - text/plain,text/occi
275
+ response:
276
+ status:
277
+ code: 200
278
+ message: OK
279
+ headers:
280
+ Date:
281
+ - Thu, 10 Jan 2013 17:45:21 GMT
282
+ Server:
283
+ - Apache/2.2.20 (Ubuntu)
284
+ X-Powered-By:
285
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
286
+ X-Frame-Options:
287
+ - sameorigin
288
+ X-Xss-Protection:
289
+ - 1; mode=block
290
+ Accept:
291
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
292
+ Set-Cookie:
293
+ - GRIDHTTP_PASSCODE=36568f654d5fa296FMJBEE; domain=localhost; path=/;
294
+ secure
295
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZTNkMWJmMDAzMGE3MjM5YzJiZWQ2%0AMWE4OGIwNzA1YTBjMzc5MzQzMjhjMjk1ZGQxNmE3YzgwOTllOTk0MDg3Nkki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--c5669692b19c4ea132561da5fac716e82413bc22;
296
+ path=/; HttpOnly
297
+ Content-Length:
298
+ - '498'
299
+ Status:
300
+ - '200'
301
+ Vary:
302
+ - Accept-Encoding
303
+ Content-Type:
304
+ - text/plain;charset=utf-8
305
+ body:
306
+ encoding: US-ASCII
307
+ string: ! 'Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind"
308
+
309
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin"
310
+
311
+ X-OCCI-Attribute: occi.core.id="32fc6c92-88aa-54dc-b814-be0df741278e"
312
+
313
+ X-OCCI-Attribute: occi.core.title="ttylinux - kvm"
314
+
315
+ X-OCCI-Attribute: occi.storage.state="online"
316
+
317
+ X-OCCI-Attribute: org.opennebula.storage.id="2"
318
+
319
+ X-OCCI-Attribute: org.opennebula.storage.dev_prefix="xvd"
320
+
321
+ X-OCCI-Attribute: org.opennebula.storage.persistent="NO"
322
+
323
+ '
324
+ http_version:
325
+ recorded_at: Thu, 10 Jan 2013 17:45:21 GMT
326
+ - request:
327
+ method: get
328
+ uri: https://localhost:3300/storage/5c1a7099-859e-5c3d-9386-740edbb610b8
329
+ body:
330
+ encoding: US-ASCII
331
+ string: ''
332
+ headers:
333
+ Accept:
334
+ - text/plain,text/occi
335
+ response:
336
+ status:
337
+ code: 200
338
+ message: OK
339
+ headers:
340
+ Date:
341
+ - Thu, 10 Jan 2013 17:45:21 GMT
342
+ Server:
343
+ - Apache/2.2.20 (Ubuntu)
344
+ X-Powered-By:
345
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
346
+ X-Frame-Options:
347
+ - sameorigin
348
+ X-Xss-Protection:
349
+ - 1; mode=block
350
+ Accept:
351
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
352
+ Set-Cookie:
353
+ - GRIDHTTP_PASSCODE=31be8605bcb14c62BMhc1e; domain=localhost; path=/;
354
+ secure
355
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFODE0YWFjMjE5NDQ0MTY5Njc5YmI3%0AZGEzZDU1OWZiZjY2ZDg5YWQ2OWY0ZTBmZDlkNzcwNTg0ZGFjN2ZkNTY3MUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--d6727396544ff3085d8b7bc3abf40719fa73cce0;
356
+ path=/; HttpOnly
357
+ Content-Length:
358
+ - '501'
359
+ Status:
360
+ - '200'
361
+ Vary:
362
+ - Accept-Encoding
363
+ Content-Type:
364
+ - text/plain;charset=utf-8
365
+ body:
366
+ encoding: US-ASCII
367
+ string: ! 'Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind"
368
+
369
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin"
370
+
371
+ X-OCCI-Attribute: occi.core.id="5c1a7099-859e-5c3d-9386-740edbb610b8"
372
+
373
+ X-OCCI-Attribute: occi.core.title="ttylinux - VMware "
374
+
375
+ X-OCCI-Attribute: occi.storage.state="online"
376
+
377
+ X-OCCI-Attribute: org.opennebula.storage.id="4"
378
+
379
+ X-OCCI-Attribute: org.opennebula.storage.dev_prefix="hd"
380
+
381
+ X-OCCI-Attribute: org.opennebula.storage.persistent="NO"
382
+
383
+ '
384
+ http_version:
385
+ recorded_at: Thu, 10 Jan 2013 17:45:21 GMT
386
+ recorded_with: VCR 2.4.0