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.
- data/Gemfile +3 -26
- data/Gemfile.lock +43 -35
- data/README.md +40 -4
- data/bin/occi +67 -64
- data/ext/mkrf_conf.rb +25 -0
- data/features/cassettes/Create_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
- data/features/cassettes/Delete_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
- 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
- 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
- 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
- data/features/cassettes/Miscellaneous_operation_on_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
- data/features/cassettes/Read_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
- data/features/cassettes/Update_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +186 -0
- data/features/occi/core/create/create.feature +3 -2
- data/features/occi/core/delete/delete.feature +6 -2
- data/features/occi/core/discovery_interface/discovery_interface.feature +4 -2
- data/features/occi/core/miscellaneous/miscellaneous.feature +6 -2
- data/features/occi/core/read/read.feature +6 -2
- data/features/occi/core/update/update.feature +6 -2
- data/features/occi/infrastructure/create/create.feature +6 -2
- data/features/support/env.rb +13 -1
- data/lib/occi/api/client/client_http.rb +914 -820
- data/lib/occi/api/client/http/net_http_fix.rb +7 -36
- data/lib/occi/api/dsl.rb +32 -2
- data/lib/occi/bin/occi_opts.rb +15 -1
- data/lib/occi/collection.rb +26 -15
- data/lib/occi/core/categories.rb +9 -1
- data/lib/occi/core/category.rb +20 -11
- data/lib/occi/core/link.rb +4 -5
- data/lib/occi/model.rb +2 -2
- data/lib/occi/parser.rb +51 -49
- data/lib/occi/version.rb +1 -1
- data/occi.gemspec +16 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_compute_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_network_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_storage_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_compute_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_network_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_storage_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deploys_an_instance_based_on_OVF_OVA_file.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_all_available_mixins.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_compute_resources.yml +324 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_network_resources.yml +326 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_os_tpl_mixins.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_resource_tpl_mixins.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_storage_resources.yml +386 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/establishes_connection.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_identifier.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_name.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_identifier.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_name.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_identifier.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_name.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_type_identifiers.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_types.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_type_identifiers.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_types.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_type_identifiers.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_types.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixins.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_type_identifiers.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_types.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_compute_resources.yml +264 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_network_resources.yml +264 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_os_tpl_mixins.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_resource_tpl_mixins.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_storage_resources.yml +266 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/refreshes_its_model.yml +397 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_compute_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_network_resource.yml +222 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_storage_resource.yml +222 -0
- data/spec/occi/api/client/client_amqp_spec.rb +10 -2
- data/spec/occi/api/client/client_http_spec.rb +111 -117
- data/spec/occi/api/dsl_spec.rb +22 -0
- data/spec/occi/collection_spec.rb +11 -2
- data/spec/occi/core/resource_spec.rb +1 -1
- data/spec/occi/infrastructure/compute_spec.rb +3 -3
- data/spec/occi/log_spec.rb +1 -1
- data/spec/occi/model_spec.rb +4 -8
- data/spec/occi/parser_spec.rb +4 -4
- data/spec/spec_helper.rb +3 -2
- metadata +264 -12
- data/spec/cassettes/client_http_text_plain.yml +0 -1066
- data/spec/occi/api/client/client_http_0.5_spec.rb +0 -292
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rubygems/command.rb'
|
3
|
+
require 'rubygems/dependency_installer.rb'
|
4
|
+
|
5
|
+
begin
|
6
|
+
Gem::Command.build_args = ARGV
|
7
|
+
rescue NoMethodError
|
8
|
+
# do nothing
|
9
|
+
end
|
10
|
+
|
11
|
+
if defined? RUBY_PLATFORM && RUBY_PLATFORM == "java"
|
12
|
+
inst = Gem::DependencyInstaller.new
|
13
|
+
|
14
|
+
begin
|
15
|
+
inst.install "jruby-openssl" if ((defined? JRUBY_VERSION) && (JRUBY_VERSION.split('.')[1].to_i < 7))
|
16
|
+
rescue
|
17
|
+
# installation failed
|
18
|
+
exit(1)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
# create dummy rakefile to indicate success
|
23
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
|
24
|
+
f.write "task :default\n"
|
25
|
+
f.close
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: head
|
5
|
+
uri: http://141.5.99.69/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- text/plain,text/occi;q=0.2
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Thu, 10 Jan 2013 13:52:01 GMT
|
19
|
+
Server:
|
20
|
+
- Apache/2.2.22 (Ubuntu)
|
21
|
+
X-Powered-By:
|
22
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
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
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFMDg3MzljYWY5NzIxY2VlOWE0NjI0%0AYTIxNWJlNjNmYzZmMTMxMzAxNDU2YzlkMGM1YjU0OWU1ZDFkNTZkYTE5Zkki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--ddb37075ac62fd3bda55c7fc4c29d508530b1d5d;
|
31
|
+
path=/; HttpOnly
|
32
|
+
Content-Length:
|
33
|
+
- '738'
|
34
|
+
Status:
|
35
|
+
- '200'
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
Content-Type:
|
39
|
+
- text/plain;charset=utf-8
|
40
|
+
body:
|
41
|
+
encoding: US-ASCII
|
42
|
+
string: ''
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 10 Jan 2013 13:52:41 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: http://141.5.99.69/-/
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
Accept:
|
53
|
+
- text/plain
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 200
|
57
|
+
message: OK
|
58
|
+
headers:
|
59
|
+
Date:
|
60
|
+
- Thu, 10 Jan 2013 13:52:01 GMT
|
61
|
+
Server:
|
62
|
+
- Apache/2.2.22 (Ubuntu)
|
63
|
+
X-Powered-By:
|
64
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
65
|
+
X-Frame-Options:
|
66
|
+
- sameorigin
|
67
|
+
X-Xss-Protection:
|
68
|
+
- 1; mode=block
|
69
|
+
Accept:
|
70
|
+
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
71
|
+
Set-Cookie:
|
72
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFNDQ2ZGUwN2IwNzRiNjM0ZTIxNGFh%0AMGRhMjUzZDRmY2ZjMDgwMTc1MjkzNjc2MGFhYTlkNmUzOWE4N2QyYjJmMEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--af7a5b05f9640950c2dd6dcd66eb00a201915e4c;
|
73
|
+
path=/; HttpOnly
|
74
|
+
Content-Length:
|
75
|
+
- '6397'
|
76
|
+
Status:
|
77
|
+
- '200'
|
78
|
+
Vary:
|
79
|
+
- Accept-Encoding
|
80
|
+
Content-Type:
|
81
|
+
- text/plain;charset=utf-8
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
|
85
|
+
occi.core.title"
|
86
|
+
|
87
|
+
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"
|
88
|
+
|
89
|
+
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
|
90
|
+
occi.core.source"
|
91
|
+
|
92
|
+
Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
|
93
|
+
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
|
94
|
+
occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
|
95
|
+
occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
|
96
|
+
http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
|
97
|
+
http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
|
98
|
+
|
99
|
+
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
|
100
|
+
occi.networkinterface.mac occi.networkinterface.state"
|
101
|
+
|
102
|
+
Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
|
103
|
+
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
|
104
|
+
occi.storage.state";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
|
105
|
+
http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
|
106
|
+
http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
|
107
|
+
|
108
|
+
Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
|
109
|
+
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
|
110
|
+
occi.network.label occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
|
111
|
+
http://schemas.ogf.org/occi/infrastructure/network/action#down"
|
112
|
+
|
113
|
+
Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
|
114
|
+
Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
|
115
|
+
occi.storagelink.mountpoint occi.storagelink.state"
|
116
|
+
|
117
|
+
Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
|
118
|
+
Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
|
119
|
+
occi.network.gateway occi.network.allocation occi.network.state"
|
120
|
+
|
121
|
+
Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
|
122
|
+
Template";location="/mixins/resource_tpl/"
|
123
|
+
|
124
|
+
Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
|
125
|
+
System Template";location="/mixins/os_tpl/"
|
126
|
+
|
127
|
+
Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
|
128
|
+
Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
|
129
|
+
occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
|
130
|
+
|
131
|
+
Category: my_os;scheme="http://my.occi.service/occi/infrastructure/os_tpl#";class="mixin";title="My
|
132
|
+
OS Template";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/my_os/"
|
133
|
+
|
134
|
+
Category: large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Large
|
135
|
+
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
|
136
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
137
|
+
|
138
|
+
Category: small;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Small
|
139
|
+
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
|
140
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
141
|
+
|
142
|
+
Category: medium;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
|
143
|
+
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
|
144
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
145
|
+
|
146
|
+
Category: extra_large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
|
147
|
+
Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
|
148
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
149
|
+
|
150
|
+
Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
|
151
|
+
Compute instance"
|
152
|
+
|
153
|
+
Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
|
154
|
+
Compute instance";attributes="method"
|
155
|
+
|
156
|
+
Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
|
157
|
+
Compute instance";attributes="method"
|
158
|
+
|
159
|
+
Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
|
160
|
+
Compute instance";attributes="method"
|
161
|
+
|
162
|
+
Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
|
163
|
+
Storage"
|
164
|
+
|
165
|
+
Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
|
166
|
+
Storage"
|
167
|
+
|
168
|
+
Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
|
169
|
+
Storage"
|
170
|
+
|
171
|
+
Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
|
172
|
+
Storage"
|
173
|
+
|
174
|
+
Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
|
175
|
+
Storage";attributes="size"
|
176
|
+
|
177
|
+
Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
|
178
|
+
network"
|
179
|
+
|
180
|
+
Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#up";class="action";title="Activate
|
181
|
+
network"
|
182
|
+
|
183
|
+
'
|
184
|
+
http_version:
|
185
|
+
recorded_at: Thu, 10 Jan 2013 13:52:41 GMT
|
186
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: head
|
5
|
+
uri: http://141.5.99.69/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- text/plain
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Thu, 10 Jan 2013 13:52:01 GMT
|
19
|
+
Server:
|
20
|
+
- Apache/2.2.22 (Ubuntu)
|
21
|
+
X-Powered-By:
|
22
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
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
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFODY4OGY0YzkxMzg3OGU2ZDExYjRm%0ANWZhMDUzMWQxMDllMjk4YTMyMDRhMWRmODZhMzJlODkzNjA3OGRmYWU0Nkki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--226357119a9d4fc759e9404447c370e9b0500ee5;
|
31
|
+
path=/; HttpOnly
|
32
|
+
Content-Length:
|
33
|
+
- '738'
|
34
|
+
Status:
|
35
|
+
- '200'
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
Content-Type:
|
39
|
+
- text/plain;charset=utf-8
|
40
|
+
body:
|
41
|
+
encoding: US-ASCII
|
42
|
+
string: ''
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 10 Jan 2013 13:52:41 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: http://141.5.99.69/-/
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
Accept:
|
53
|
+
- text/plain
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 200
|
57
|
+
message: OK
|
58
|
+
headers:
|
59
|
+
Date:
|
60
|
+
- Thu, 10 Jan 2013 13:52:01 GMT
|
61
|
+
Server:
|
62
|
+
- Apache/2.2.22 (Ubuntu)
|
63
|
+
X-Powered-By:
|
64
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
65
|
+
X-Frame-Options:
|
66
|
+
- sameorigin
|
67
|
+
X-Xss-Protection:
|
68
|
+
- 1; mode=block
|
69
|
+
Accept:
|
70
|
+
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
71
|
+
Set-Cookie:
|
72
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFNDRjNDM5MDFkNWRkNTIzMTJjYzUx%0AM2NjOWYwMWY5YjkwZmNiMGVjOTM4YTQ5ODBjYzVlMzA3NzI1ZjlhNjUwOEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--c224a47b47b5493715194c2186691ae91fa899e6;
|
73
|
+
path=/; HttpOnly
|
74
|
+
Content-Length:
|
75
|
+
- '6397'
|
76
|
+
Status:
|
77
|
+
- '200'
|
78
|
+
Vary:
|
79
|
+
- Accept-Encoding
|
80
|
+
Content-Type:
|
81
|
+
- text/plain;charset=utf-8
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
|
85
|
+
occi.core.title"
|
86
|
+
|
87
|
+
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"
|
88
|
+
|
89
|
+
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
|
90
|
+
occi.core.source"
|
91
|
+
|
92
|
+
Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
|
93
|
+
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
|
94
|
+
occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
|
95
|
+
occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
|
96
|
+
http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
|
97
|
+
http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
|
98
|
+
|
99
|
+
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
|
100
|
+
occi.networkinterface.mac occi.networkinterface.state"
|
101
|
+
|
102
|
+
Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
|
103
|
+
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
|
104
|
+
occi.storage.state";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
|
105
|
+
http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
|
106
|
+
http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
|
107
|
+
|
108
|
+
Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
|
109
|
+
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
|
110
|
+
occi.network.label occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
|
111
|
+
http://schemas.ogf.org/occi/infrastructure/network/action#down"
|
112
|
+
|
113
|
+
Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
|
114
|
+
Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
|
115
|
+
occi.storagelink.mountpoint occi.storagelink.state"
|
116
|
+
|
117
|
+
Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
|
118
|
+
Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
|
119
|
+
occi.network.gateway occi.network.allocation occi.network.state"
|
120
|
+
|
121
|
+
Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
|
122
|
+
Template";location="/mixins/resource_tpl/"
|
123
|
+
|
124
|
+
Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
|
125
|
+
System Template";location="/mixins/os_tpl/"
|
126
|
+
|
127
|
+
Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
|
128
|
+
Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
|
129
|
+
occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
|
130
|
+
|
131
|
+
Category: my_os;scheme="http://my.occi.service/occi/infrastructure/os_tpl#";class="mixin";title="My
|
132
|
+
OS Template";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/my_os/"
|
133
|
+
|
134
|
+
Category: large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Large
|
135
|
+
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
|
136
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
137
|
+
|
138
|
+
Category: small;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Small
|
139
|
+
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
|
140
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
141
|
+
|
142
|
+
Category: medium;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
|
143
|
+
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
|
144
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
145
|
+
|
146
|
+
Category: extra_large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
|
147
|
+
Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
|
148
|
+
occi.compute.cores occi.compute.speed occi.compute.memory"
|
149
|
+
|
150
|
+
Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
|
151
|
+
Compute instance"
|
152
|
+
|
153
|
+
Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
|
154
|
+
Compute instance";attributes="method"
|
155
|
+
|
156
|
+
Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
|
157
|
+
Compute instance";attributes="method"
|
158
|
+
|
159
|
+
Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
|
160
|
+
Compute instance";attributes="method"
|
161
|
+
|
162
|
+
Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
|
163
|
+
Storage"
|
164
|
+
|
165
|
+
Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
|
166
|
+
Storage"
|
167
|
+
|
168
|
+
Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
|
169
|
+
Storage"
|
170
|
+
|
171
|
+
Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
|
172
|
+
Storage"
|
173
|
+
|
174
|
+
Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
|
175
|
+
Storage";attributes="size"
|
176
|
+
|
177
|
+
Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
|
178
|
+
network"
|
179
|
+
|
180
|
+
Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#up";class="action";title="Activate
|
181
|
+
network"
|
182
|
+
|
183
|
+
'
|
184
|
+
http_version:
|
185
|
+
recorded_at: Thu, 10 Jan 2013 13:52:41 GMT
|
186
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,173 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: head
|
5
|
+
uri: http://141.5.99.69/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- text/plain
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Thu, 10 Jan 2013 13:52:02 GMT
|
19
|
+
Server:
|
20
|
+
- Apache/2.2.22 (Ubuntu)
|
21
|
+
X-Powered-By:
|
22
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
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
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFODAwNTljMDJkODdiNWZjNDNlNjNj%0AZjkzNzAzYzk0YzRhOGM5MTc1MjkxOWRiMGYzYzM3ZWFjMTQxYjY4OTdmZUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--fb0918431c668ae2d900279499d0c1960155a763;
|
31
|
+
path=/; HttpOnly
|
32
|
+
Content-Length:
|
33
|
+
- '738'
|
34
|
+
Status:
|
35
|
+
- '200'
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
Content-Type:
|
39
|
+
- text/plain;charset=utf-8
|
40
|
+
body:
|
41
|
+
encoding: US-ASCII
|
42
|
+
string: ''
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 10 Jan 2013 13:52:41 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: http://141.5.99.69/-/
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
Accept:
|
53
|
+
- application/json
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 200
|
57
|
+
message: OK
|
58
|
+
headers:
|
59
|
+
Date:
|
60
|
+
- Thu, 10 Jan 2013 13:52:02 GMT
|
61
|
+
Server:
|
62
|
+
- Apache/2.2.22 (Ubuntu)
|
63
|
+
X-Powered-By:
|
64
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
65
|
+
X-Frame-Options:
|
66
|
+
- sameorigin
|
67
|
+
X-Xss-Protection:
|
68
|
+
- 1; mode=block
|
69
|
+
Accept:
|
70
|
+
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
71
|
+
Set-Cookie:
|
72
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFMmQ3ODBmY2JjZmNkMDhiYWJjOWY0%0ANjg2YzA0YTBiYmM2MTFmZTA5ZTFiOWQ4MjQ4NDUyMDkxNGNiOGQ1ZjMxN0ki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--1dfa99c0a024965c7d38062b7ed677fa1a5751cd;
|
73
|
+
path=/; HttpOnly
|
74
|
+
Content-Length:
|
75
|
+
- '14819'
|
76
|
+
Status:
|
77
|
+
- '200'
|
78
|
+
Content-Type:
|
79
|
+
- application/json;charset=utf-8
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{"kinds":[{"scheme":"http://schemas.ogf.org/occi/core#","term":"entity","title":"Entity","attributes":{"occi":{"core":{"id":{"Type":"string","Required":false,"Mutable":false,"Pattern":"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"},"title":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/core#entity"],"scheme":"http://schemas.ogf.org/occi/core#","term":"resource","title":"Resource","attributes":{"occi":{"core":{"summary":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/core#entity"],"scheme":"http://schemas.ogf.org/occi/core#","term":"link","title":"Link","attributes":{"occi":{"core":{"target":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"},"source":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/core#resource"],"actions":["http://schemas.ogf.org/occi/infrastructure/compute/action#start","http://schemas.ogf.org/occi/infrastructure/compute/action#stop","http://schemas.ogf.org/occi/infrastructure/compute/action#restart","http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"compute","title":"Compute
|
83
|
+
Resource","attributes":{"occi":{"compute":{"architecture":{"Mutable":true,"Required":false,"Type":"string","Pattern":"x86|x64"},"cores":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"hostname":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*"},"speed":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"memory":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"inactive|active|suspended|error","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/core#link"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"networkinterface","title":"Networkinterface","attributes":{"occi":{"networkinterface":{"interface":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"mac":{"Mutable":true,"Required":false,"Type":"string","Pattern":"^([0-9a-fA-F]{2}[:-]){5}([0-9a-fA-F]{2})$"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/core#resource"],"actions":["http://schemas.ogf.org/occi/infrastructure/storage/action#online","http://schemas.ogf.org/occi/infrastructure/storage/action#offline","http://schemas.ogf.org/occi/infrastructure/storage/action#backup","http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot","http://schemas.ogf.org/occi/infrastructure/storage/action#resize"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"storage","title":"Storage
|
84
|
+
Resource","attributes":{"occi":{"storage":{"size":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"online|offline|backup|snapshot|resize|degraded","Default":"offline"}}}}},{"related":["http://schemas.ogf.org/occi/core#resource"],"actions":["http://schemas.ogf.org/occi/infrastructure/network/action#up","http://schemas.ogf.org/occi/infrastructure/network/action#down"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"network","title":"Network
|
85
|
+
Resource","attributes":{"occi":{"network":{"vlan":{"Mutable":true,"Required":false,"Type":"number","Minimum":0,"Maximum":4095,"Pattern":".*"},"label":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive|error","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/core#link"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"storagelink","title":"Storage
|
86
|
+
Link","attributes":{"occi":{"storagelink":{"deviceid":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"mountpoint":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}}],"mixins":[{"scheme":"http://schemas.ogf.org/occi/infrastructure/network#","term":"ipnetwork","title":"IP
|
87
|
+
Network Mixin","attributes":{"occi":{"network":{"address":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*(\\/(\\d|\\d\\d|1[0-1]\\d|12[0-8]))$)|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(\\d|[1-2]\\d|3[0-2]))$)"},"gateway":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*)"},"allocation":{"Mutable":true,"Required":false,"Type":"string","Pattern":"dynamic|static"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"resource_tpl","title":"Resource
|
88
|
+
Template"},{"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"os_tpl","title":"Operating
|
89
|
+
System Template"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/networkinterface#","term":"ipnetworkinterface","title":"IP
|
90
|
+
Networkinterface Mixin","attributes":{"occi":{"networkinterface":{"address":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*)"},"gateway":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*)"},"allocation":{"Mutable":true,"Required":false,"Type":"string","Pattern":"dynamic|static"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#os_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/os_tpl#","term":"my_os","title":"My
|
91
|
+
OS Template"},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"large","title":"Large
|
92
|
+
Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":false,"Type":"string","Default":"x64","Required":false,"Pattern":".*"},"cores":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":7.5,"Required":false,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"small","title":"Small
|
93
|
+
Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":true,"Required":false,"Type":"string","Pattern":"x86|x64","Default":"x86"},"cores":{"Mutable":false,"Type":"number","Default":1,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":1,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":1.7,"Required":false,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"medium","title":"Medium
|
94
|
+
Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":true,"Required":false,"Type":"string","Pattern":"x86|x64","Default":"x86"},"cores":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":1,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":3.75,"Required":false,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"extra_large","title":"Extra
|
95
|
+
Large Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":false,"Type":"string","Default":"x64","Required":false,"Pattern":".*"},"cores":{"Mutable":false,"Type":"number","Default":4,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":15,"Required":false,"Pattern":".*"}}}}}],"actions":[{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"start","title":"Start
|
96
|
+
Compute instance"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"stop","title":"Stop
|
97
|
+
Compute instance","attributes":{"method":{"Mutable":true,"Required":false,"Type":"string","Pattern":"graceful|acpioff|poweroff","Default":"poweroff"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"restart","title":"Restart
|
98
|
+
Compute instance","attributes":{"method":{"Mutable":true,"Required":false,"Type":"string","Pattern":"graceful|warm|cold","Default":"cold"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"suspend","title":"Suspend
|
99
|
+
Compute instance","attributes":{"method":{"Mutable":true,"Required":false,"Type":"string","Pattern":"hibernate|suspend","Default":"suspend"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"online","title":"Activate
|
100
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"offline","title":"Deactivate
|
101
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"backup","title":"Backup
|
102
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"snapshot","title":"Snapshot
|
103
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"resize","title":"Resize
|
104
|
+
Storage","attributes":{"size":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/network/action#","term":"up","title":"Activate
|
105
|
+
network"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/network/action#up","term":"down","title":"Activate
|
106
|
+
network"}]}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 10 Jan 2013 13:52:41 GMT
|
109
|
+
- request:
|
110
|
+
method: get
|
111
|
+
uri: http://141.5.99.69/-/
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ''
|
115
|
+
headers:
|
116
|
+
Accept:
|
117
|
+
- application/json
|
118
|
+
response:
|
119
|
+
status:
|
120
|
+
code: 200
|
121
|
+
message: OK
|
122
|
+
headers:
|
123
|
+
Date:
|
124
|
+
- Thu, 10 Jan 2013 13:52:02 GMT
|
125
|
+
Server:
|
126
|
+
- Apache/2.2.22 (Ubuntu)
|
127
|
+
X-Powered-By:
|
128
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
129
|
+
X-Frame-Options:
|
130
|
+
- sameorigin
|
131
|
+
X-Xss-Protection:
|
132
|
+
- 1; mode=block
|
133
|
+
Accept:
|
134
|
+
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
135
|
+
Set-Cookie:
|
136
|
+
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFMTMxNDg0MDNmYjcyNzk1ODJkODBh%0AYjRiODBlZDU2NWU1MjBhMjllZDJjNDAyZWRhZmJkZWJmNGNkZDBlZjUzOEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--54c35b2052a49ee5dd9b94aa108e42786cc54f69;
|
137
|
+
path=/; HttpOnly
|
138
|
+
Content-Length:
|
139
|
+
- '14819'
|
140
|
+
Status:
|
141
|
+
- '200'
|
142
|
+
Content-Type:
|
143
|
+
- application/json;charset=utf-8
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ! '{"kinds":[{"scheme":"http://schemas.ogf.org/occi/core#","term":"entity","title":"Entity","attributes":{"occi":{"core":{"id":{"Type":"string","Required":false,"Mutable":false,"Pattern":"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"},"title":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/core#entity"],"scheme":"http://schemas.ogf.org/occi/core#","term":"resource","title":"Resource","attributes":{"occi":{"core":{"summary":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/core#entity"],"scheme":"http://schemas.ogf.org/occi/core#","term":"link","title":"Link","attributes":{"occi":{"core":{"target":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"},"source":{"Type":"string","Required":false,"Mutable":true,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/core#resource"],"actions":["http://schemas.ogf.org/occi/infrastructure/compute/action#start","http://schemas.ogf.org/occi/infrastructure/compute/action#stop","http://schemas.ogf.org/occi/infrastructure/compute/action#restart","http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"compute","title":"Compute
|
147
|
+
Resource","attributes":{"occi":{"compute":{"architecture":{"Mutable":true,"Required":false,"Type":"string","Pattern":"x86|x64"},"cores":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"hostname":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*"},"speed":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"memory":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"inactive|active|suspended|error","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/core#link"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"networkinterface","title":"Networkinterface","attributes":{"occi":{"networkinterface":{"interface":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"mac":{"Mutable":true,"Required":false,"Type":"string","Pattern":"^([0-9a-fA-F]{2}[:-]){5}([0-9a-fA-F]{2})$"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/core#resource"],"actions":["http://schemas.ogf.org/occi/infrastructure/storage/action#online","http://schemas.ogf.org/occi/infrastructure/storage/action#offline","http://schemas.ogf.org/occi/infrastructure/storage/action#backup","http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot","http://schemas.ogf.org/occi/infrastructure/storage/action#resize"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"storage","title":"Storage
|
148
|
+
Resource","attributes":{"occi":{"storage":{"size":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"online|offline|backup|snapshot|resize|degraded","Default":"offline"}}}}},{"related":["http://schemas.ogf.org/occi/core#resource"],"actions":["http://schemas.ogf.org/occi/infrastructure/network/action#up","http://schemas.ogf.org/occi/infrastructure/network/action#down"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"network","title":"Network
|
149
|
+
Resource","attributes":{"occi":{"network":{"vlan":{"Mutable":true,"Required":false,"Type":"number","Minimum":0,"Maximum":4095,"Pattern":".*"},"label":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive|error","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/core#link"],"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"storagelink","title":"Storage
|
150
|
+
Link","attributes":{"occi":{"storagelink":{"deviceid":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"mountpoint":{"Mutable":true,"Required":false,"Type":"string","Pattern":".*"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}}],"mixins":[{"scheme":"http://schemas.ogf.org/occi/infrastructure/network#","term":"ipnetwork","title":"IP
|
151
|
+
Network Mixin","attributes":{"occi":{"network":{"address":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*(\\/(\\d|\\d\\d|1[0-1]\\d|12[0-8]))$)|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(\\d|[1-2]\\d|3[0-2]))$)"},"gateway":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*)"},"allocation":{"Mutable":true,"Required":false,"Type":"string","Pattern":"dynamic|static"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"resource_tpl","title":"Resource
|
152
|
+
Template"},{"scheme":"http://schemas.ogf.org/occi/infrastructure#","term":"os_tpl","title":"Operating
|
153
|
+
System Template"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/networkinterface#","term":"ipnetworkinterface","title":"IP
|
154
|
+
Networkinterface Mixin","attributes":{"occi":{"networkinterface":{"address":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*)"},"gateway":{"Mutable":true,"Required":false,"Type":"string","Pattern":"(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*)"},"allocation":{"Mutable":true,"Required":false,"Type":"string","Pattern":"dynamic|static"},"state":{"Mutable":false,"Required":false,"Type":"string","Pattern":"active|inactive","Default":"inactive"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#os_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/os_tpl#","term":"my_os","title":"My
|
155
|
+
OS Template"},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"large","title":"Large
|
156
|
+
Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":false,"Type":"string","Default":"x64","Required":false,"Pattern":".*"},"cores":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":7.5,"Required":false,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"small","title":"Small
|
157
|
+
Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":true,"Required":false,"Type":"string","Pattern":"x86|x64","Default":"x86"},"cores":{"Mutable":false,"Type":"number","Default":1,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":1,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":1.7,"Required":false,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"medium","title":"Medium
|
158
|
+
Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":true,"Required":false,"Type":"string","Pattern":"x86|x64","Default":"x86"},"cores":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":1,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":3.75,"Required":false,"Pattern":".*"}}}}},{"related":["http://schemas.ogf.org/occi/infrastructure#resource_tpl"],"scheme":"http://my.occi.service/occi/infrastructure/resource_tpl#","term":"extra_large","title":"Extra
|
159
|
+
Large Instance","attributes":{"occi":{"compute":{"architecture":{"Mutable":false,"Type":"string","Default":"x64","Required":false,"Pattern":".*"},"cores":{"Mutable":false,"Type":"number","Default":4,"Required":false,"Pattern":".*"},"speed":{"Mutable":false,"Type":"number","Default":2,"Required":false,"Pattern":".*"},"memory":{"Mutable":false,"Type":"number","Default":15,"Required":false,"Pattern":".*"}}}}}],"actions":[{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"start","title":"Start
|
160
|
+
Compute instance"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"stop","title":"Stop
|
161
|
+
Compute instance","attributes":{"method":{"Mutable":true,"Required":false,"Type":"string","Pattern":"graceful|acpioff|poweroff","Default":"poweroff"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"restart","title":"Restart
|
162
|
+
Compute instance","attributes":{"method":{"Mutable":true,"Required":false,"Type":"string","Pattern":"graceful|warm|cold","Default":"cold"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#","term":"suspend","title":"Suspend
|
163
|
+
Compute instance","attributes":{"method":{"Mutable":true,"Required":false,"Type":"string","Pattern":"hibernate|suspend","Default":"suspend"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"online","title":"Activate
|
164
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"offline","title":"Deactivate
|
165
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"backup","title":"Backup
|
166
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"snapshot","title":"Snapshot
|
167
|
+
Storage"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/storage/action#","term":"resize","title":"Resize
|
168
|
+
Storage","attributes":{"size":{"Mutable":true,"Required":false,"Type":"number","Pattern":".*"}}},{"scheme":"http://schemas.ogf.org/occi/infrastructure/network/action#","term":"up","title":"Activate
|
169
|
+
network"},{"scheme":"http://schemas.ogf.org/occi/infrastructure/network/action#up","term":"down","title":"Activate
|
170
|
+
network"}]}'
|
171
|
+
http_version:
|
172
|
+
recorded_at: Thu, 10 Jan 2013 13:52:42 GMT
|
173
|
+
recorded_with: VCR 2.4.0
|