brightbox-cli 1.0.0.rc1 → 1.0.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. data/Gemfile.lock +1 -1
  2. data/Rakefile +0 -6
  3. data/lib/brightbox-cli/commands/accounts-accept-invite.rb +1 -0
  4. data/lib/brightbox-cli/commands/accounts-default.rb +1 -1
  5. data/lib/brightbox-cli/gli_global_hooks.rb +2 -1
  6. data/lib/brightbox-cli/version.rb +1 -1
  7. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +258 -193
  8. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +258 -195
  9. data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +153 -0
  10. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +229 -160
  11. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +229 -162
  12. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +229 -162
  13. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +229 -162
  14. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +229 -162
  15. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +229 -162
  16. data/spec/commands/accounts/list_spec.rb +1 -1
  17. data/spec/commands/config/user_add_spec.rb +1 -1
  18. data/spec/spec_helper.rb +4 -0
  19. data/spec/support/vcr.rb +2 -2
  20. data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -1
  21. data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +1 -1
  22. data/spec/unit/brightbox/firewall_policy/create_spec.rb +1 -1
  23. data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +1 -1
  24. data/spec/unit/brightbox/firewall_rule/create_spec.rb +1 -1
  25. data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +1 -1
  26. data/spec/unit/brightbox/firewall_rule/find_spec.rb +1 -1
  27. data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +1 -1
  28. data/spec/unit/brightbox/server/destroy_spec.rb +1 -1
  29. data/spec/unit/brightbox/server/find_or_call_spec.rb +1 -1
  30. data/spec/unit/brightbox/server/shutdown_spec.rb +1 -1
  31. data/spec/unit/brightbox/server/start_spec.rb +1 -1
  32. data/spec/unit/brightbox/server/stop_spec.rb +1 -1
  33. data/spec/unit/brightbox/server/update_spec.rb +1 -1
  34. data/spec/unit/brightbox/server_group/find_spec.rb +1 -1
  35. metadata +5 -4
  36. data/lib/brightbox-cli/command_generator.rb +0 -53
@@ -1,219 +1,286 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ recorded_with: VCR 2.5.0
3
+ http_interactions:
4
+ - request:
4
5
  method: post
5
6
  uri: http://api.brightbox.dev/token
6
- body:
7
- encoding: UTF-8
8
- string: '{"grant_type":"none","client_id":"cli-12345"}'
9
- headers:
10
- User-Agent:
7
+ body:
8
+ string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
9
+ headers:
10
+ User-Agent:
11
11
  - fog/1.15.0
12
- Authorization:
13
- - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
14
- Content-Type:
12
+ Content-Type:
15
13
  - application/json
16
- response:
17
- status:
14
+ Authorization:
15
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
16
+ response:
17
+ status:
18
18
  code: 200
19
19
  message:
20
- headers:
21
- X-Frame-Options:
20
+ headers:
21
+ X-Frame-Options:
22
22
  - sameorigin
23
- X-XSS-Protection:
24
- - 1; mode=block
25
- Content-Type:
26
- - application/json;charset=utf-8
27
- Cache-Control:
28
- - no-store
29
- Content-Length:
30
- - '77'
31
- X-UA-Compatible:
23
+ Date:
24
+ - Fri, 06 Sep 2013 15:58:57 GMT
25
+ X-UA-Compatible:
32
26
  - IE=Edge
33
- ETag:
34
- - '"a78b809004313e23bfe9e59cf55cc0ef"'
35
- X-Request-Id:
27
+ X-Request-Id:
36
28
  - 902afa65727fb5c659cdc0c27cc3a3e8
37
- X-Runtime:
38
- - '0.125689'
39
- Date:
40
- - Fri, 06 Sep 2013 15:58:57 GMT
41
- Connection:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ X-Runtime:
32
+ - "0.125689"
33
+ Content-Length:
34
+ - "77"
35
+ ETag:
36
+ - "\"a78b809004313e23bfe9e59cf55cc0ef\""
37
+ X-XSS-Protection:
38
+ - 1; mode=block
39
+ Connection:
42
40
  - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"access_token":"8b5e9d888b32ba835f99974f592d7c231406e3f9","expires_in":7200}'
41
+ Cache-Control:
42
+ - no-store
43
+ body:
44
+ string: "{\"access_token\":\"8b5e9d888b32ba835f99974f592d7c231406e3f9\",\"expires_in\":7200}"
46
45
  http_version:
47
46
  recorded_at: Fri, 06 Sep 2013 15:58:57 GMT
48
- - request:
47
+ - request:
49
48
  method: get
50
49
  uri: http://api.brightbox.dev/1.0/account
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- headers:
55
- User-Agent:
50
+ body:
51
+ string: ""
52
+ headers:
53
+ User-Agent:
56
54
  - fog/1.15.0
57
- Authorization:
58
- - OAuth 0ab4badeb10018d07c1f6c33690ee011f36b4183
59
- Content-Type:
55
+ Content-Type:
60
56
  - application/json
61
- response:
62
- status:
57
+ Authorization:
58
+ - OAuth 0ab4badeb10018d07c1f6c33690ee011f36b4183
59
+ response:
60
+ status:
63
61
  code: 200
64
62
  message:
65
- headers:
66
- Content-Type:
67
- - application/json; charset=utf-8
68
- X-UA-Compatible:
63
+ headers:
64
+ Date:
65
+ - Fri, 06 Sep 2013 15:58:58 GMT
66
+ X-UA-Compatible:
69
67
  - IE=Edge
70
- ETag:
71
- - '"a9e93d5f3268805675b0c5c935311a85"'
72
- Cache-Control:
73
- - max-age=0, private, must-revalidate
74
- X-Request-Id:
68
+ X-Request-Id:
75
69
  - 6349ac3cf0aa0aecf9461b5974502d22
76
- X-Runtime:
77
- - '0.089486'
78
- Date:
79
- - Fri, 06 Sep 2013 15:58:58 GMT
80
- Connection:
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ X-Runtime:
73
+ - "0.089486"
74
+ ETag:
75
+ - "\"a9e93d5f3268805675b0c5c935311a85\""
76
+ Connection:
81
77
  - close
82
- body:
83
- encoding: UTF-8
84
- string: '{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Aurnqfvgsbeyiprni","status":"active","address_1":"Kaycee
85
- Throughway","address_2":"","city":"South Hellenport","county":"","postcode":"60364-9886","country_code":"GB","country_name":"United
86
- Kingdom","vat_registration_number":"","telephone_number":"+444238318140","telephone_verified":false,"verified_telephone":null,"verified_at":null,"verified_ip":null,"created_at":"2013-09-04T07:53:13Z","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"valid_credit_card":false,"library_ftp_host":"ftp.library.gb1.brightbox.com","library_ftp_user":"acc-12345","library_ftp_password":null,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"56.67.59.219","reverse_dns":"cip-12345-67-59-219.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
87
- new servers are added to this group unless specified otherwise.","created_at":"2013-09-04T07:53:13Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-04T07:53:14Z","description":"Applied
88
- to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Dylan
89
- Fay DDS","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
78
+ Cache-Control:
79
+ - max-age=0, private, must-revalidate
80
+ body:
81
+ string: "{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"Aurnqfvgsbeyiprni\",\"status\":\"active\",\"address_1\":\"Kaycee Throughway\",\"address_2\":\"\",\"city\":\"South Hellenport\",\"county\":\"\",\"postcode\":\"60364-9886\",\"country_code\":\"GB\",\"country_name\":\"United Kingdom\",\"vat_registration_number\":\"\",\"telephone_number\":\"+444238318140\",\"telephone_verified\":false,\"verified_telephone\":null,\"verified_at\":null,\"verified_ip\":null,\"created_at\":\"2013-09-04T07:53:13Z\",\"ram_limit\":32768,\"ram_used\":0,\"cloud_ips_limit\":20,\"cloud_ips_used\":1,\"load_balancers_limit\":5,\"load_balancers_used\":0,\"valid_credit_card\":false,\"library_ftp_host\":\"ftp.library.gb1.brightbox.com\",\"library_ftp_user\":\"acc-12345\",\"library_ftp_password\":null,\"clients\":[{\"id\":\"cli-12345\",\"resource_type\":\"api_client\",\"url\":\"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345\",\"name\":null,\"description\":null,\"revoked_at\":null}],\"images\":[],\"servers\":[],\"load_balancers\":[],\"cloud_ips\":[{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"56.67.59.219\",\"reverse_dns\":\"cip-12345-67-59-219.gb1.brightbox.com\",\"name\":null}],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All new servers are added to this group unless specified otherwise.\",\"created_at\":\"2013-09-04T07:53:13Z\",\"default\":true}],\"firewall_policies\":[{\"id\":\"fwp-12345\",\"resource_type\":\"firewall_policy\",\"url\":\"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345\",\"default\":true,\"name\":\"default\",\"created_at\":\"2013-09-04T07:53:14Z\",\"description\":\"Applied to the default server group.\"}],\"owner\":{\"id\":\"usr-12345\",\"resource_type\":\"user\",\"url\":\"https://api.gb1.brightbox.com/1.0/users/usr-12345\",\"name\":\"Dylan Fay DDS\",\"email_address\":\"jason.null@brightbox.com\"},\"users\":[],\"zones\":[{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-a\"},{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-b\"}]}"
90
82
  http_version:
91
83
  recorded_at: Fri, 06 Sep 2013 15:58:58 GMT
92
- - request:
84
+ - request:
93
85
  method: get
94
86
  uri: http://api.brightbox.dev/1.0/accounts
95
- body:
96
- encoding: US-ASCII
97
- string: ''
98
- headers:
99
- User-Agent:
87
+ body:
88
+ string: ""
89
+ headers:
90
+ User-Agent:
100
91
  - fog/1.15.0
101
- Authorization:
102
- - OAuth 8b5e9d888b32ba835f99974f592d7c231406e3f9
103
- Content-Type:
92
+ Content-Type:
104
93
  - application/json
105
- response:
106
- status:
94
+ Authorization:
95
+ - OAuth 8b5e9d888b32ba835f99974f592d7c231406e3f9
96
+ response:
97
+ status:
107
98
  code: 401
108
99
  message:
109
- headers:
110
- WWW-Authenticate:
111
- - OAuth error="invalid_token"
112
- Content-Type:
113
- - application/json; charset=utf-8
114
- X-UA-Compatible:
100
+ headers:
101
+ Date:
102
+ - Tue, 17 Sep 2013 17:07:36 GMT
103
+ X-UA-Compatible:
115
104
  - IE=Edge
116
- Cache-Control:
117
- - no-cache
118
- X-Request-Id:
105
+ X-Request-Id:
119
106
  - eba0c75094c59614732db4fa96b425e1
120
- X-Runtime:
121
- - '0.017305'
122
- Date:
123
- - Tue, 17 Sep 2013 17:07:36 GMT
124
- Connection:
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Runtime:
110
+ - "0.017305"
111
+ WWW-Authenticate:
112
+ - OAuth error="invalid_token"
113
+ Connection:
125
114
  - close
126
- body:
127
- encoding: UTF-8
128
- string: '{"error":"invalid_token","error_description":"The OAuth token can not
129
- be found"}'
115
+ Cache-Control:
116
+ - no-cache
117
+ body:
118
+ string: "{\"error\":\"invalid_token\",\"error_description\":\"The OAuth token can not be found\"}"
130
119
  http_version:
131
120
  recorded_at: Tue, 17 Sep 2013 17:07:36 GMT
132
- - request:
121
+ - request:
133
122
  method: post
134
123
  uri: http://api.brightbox.dev/token
135
- body:
136
- encoding: UTF-8
137
- string: '{"grant_type":"none","client_id":"cli-12345"}'
138
- headers:
139
- User-Agent:
124
+ body:
125
+ string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
126
+ headers:
127
+ User-Agent:
140
128
  - fog/1.15.0
141
- Authorization:
142
- - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
143
- Content-Type:
129
+ Content-Type:
144
130
  - application/json
145
- response:
146
- status:
131
+ Authorization:
132
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
133
+ response:
134
+ status:
147
135
  code: 200
148
136
  message:
149
- headers:
150
- X-Frame-Options:
137
+ headers:
138
+ X-Frame-Options:
151
139
  - sameorigin
152
- X-XSS-Protection:
153
- - 1; mode=block
154
- Content-Type:
155
- - application/json;charset=utf-8
156
- Cache-Control:
157
- - no-store
158
- Content-Length:
159
- - '77'
160
- X-UA-Compatible:
140
+ Date:
141
+ - Tue, 17 Sep 2013 17:07:36 GMT
142
+ X-UA-Compatible:
161
143
  - IE=Edge
162
- ETag:
163
- - '"1e52b1389738c75a0755874a88842df7"'
164
- X-Request-Id:
144
+ X-Request-Id:
165
145
  - 567bea67f97c2000d813b702555266b5
166
- X-Runtime:
167
- - '0.146444'
168
- Date:
169
- - Tue, 17 Sep 2013 17:07:36 GMT
170
- Connection:
146
+ Content-Type:
147
+ - application/json;charset=utf-8
148
+ X-Runtime:
149
+ - "0.146444"
150
+ Content-Length:
151
+ - "77"
152
+ ETag:
153
+ - "\"1e52b1389738c75a0755874a88842df7\""
154
+ X-XSS-Protection:
155
+ - 1; mode=block
156
+ Connection:
171
157
  - keep-alive
172
- body:
173
- encoding: UTF-8
174
- string: '{"access_token":"827decf7d69e1df3737318fb9ac8a246c6ec17ed","expires_in":7200}'
158
+ Cache-Control:
159
+ - no-store
160
+ body:
161
+ string: "{\"access_token\":\"827decf7d69e1df3737318fb9ac8a246c6ec17ed\",\"expires_in\":7200}"
175
162
  http_version:
176
163
  recorded_at: Tue, 17 Sep 2013 17:07:36 GMT
177
- - request:
164
+ - request:
178
165
  method: get
179
166
  uri: http://api.brightbox.dev/1.0/accounts
180
- body:
181
- encoding: US-ASCII
182
- string: ''
183
- headers:
184
- User-Agent:
167
+ body:
168
+ string: ""
169
+ headers:
170
+ User-Agent:
185
171
  - fog/1.15.0
186
- Authorization:
187
- - OAuth 827decf7d69e1df3737318fb9ac8a246c6ec17ed
188
- Content-Type:
172
+ Content-Type:
189
173
  - application/json
190
- response:
191
- status:
174
+ Authorization:
175
+ - OAuth 827decf7d69e1df3737318fb9ac8a246c6ec17ed
176
+ response:
177
+ status:
192
178
  code: 200
193
179
  message:
194
- headers:
195
- Content-Type:
196
- - application/json; charset=utf-8
197
- X-UA-Compatible:
180
+ headers:
181
+ Date:
182
+ - Tue, 17 Sep 2013 17:07:36 GMT
183
+ X-UA-Compatible:
198
184
  - IE=Edge
199
- ETag:
200
- - '"7d4ad7857ea408897b8a2149197611ba"'
201
- Cache-Control:
202
- - max-age=0, private, must-revalidate
203
- X-Request-Id:
185
+ X-Request-Id:
204
186
  - dc11ed37bda991b50e520f3d5fbc18ae
205
- X-Runtime:
206
- - '0.103621'
207
- Date:
208
- - Tue, 17 Sep 2013 17:07:36 GMT
209
- Connection:
187
+ Content-Type:
188
+ - application/json; charset=utf-8
189
+ X-Runtime:
190
+ - "0.103621"
191
+ ETag:
192
+ - "\"7d4ad7857ea408897b8a2149197611ba\""
193
+ Connection:
210
194
  - close
211
- body:
212
- encoding: UTF-8
213
- string: '[{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Asaibdsjnpdgrdcqo","status":"active","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"153.37.92.121","reverse_dns":"cip-12345-37-92-121.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
214
- new servers are added to this group unless specified otherwise.","created_at":"2013-09-17T08:44:16Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-17T08:44:16Z","description":"Applied
215
- to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Kobe
216
- Swaniawski Sr.","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]'
195
+ Cache-Control:
196
+ - max-age=0, private, must-revalidate
197
+ body:
198
+ string: "[{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"Asaibdsjnpdgrdcqo\",\"status\":\"active\",\"ram_limit\":32768,\"ram_used\":0,\"cloud_ips_limit\":20,\"cloud_ips_used\":1,\"load_balancers_limit\":5,\"load_balancers_used\":0,\"clients\":[{\"id\":\"cli-12345\",\"resource_type\":\"api_client\",\"url\":\"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345\",\"name\":null,\"description\":null,\"revoked_at\":null}],\"images\":[],\"servers\":[],\"load_balancers\":[],\"cloud_ips\":[{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"153.37.92.121\",\"reverse_dns\":\"cip-12345-37-92-121.gb1.brightbox.com\",\"name\":null}],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All new servers are added to this group unless specified otherwise.\",\"created_at\":\"2013-09-17T08:44:16Z\",\"default\":true}],\"firewall_policies\":[{\"id\":\"fwp-12345\",\"resource_type\":\"firewall_policy\",\"url\":\"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345\",\"default\":true,\"name\":\"default\",\"created_at\":\"2013-09-17T08:44:16Z\",\"description\":\"Applied to the default server group.\"}],\"owner\":{\"id\":\"usr-12345\",\"resource_type\":\"user\",\"url\":\"https://api.gb1.brightbox.com/1.0/users/usr-12345\",\"name\":\"Kobe Swaniawski Sr.\",\"email_address\":\"jason.null@brightbox.com\"},\"users\":[],\"zones\":[{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-a\"},{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-b\"}]}]"
217
199
  http_version:
218
200
  recorded_at: Tue, 17 Sep 2013 17:07:36 GMT
219
- recorded_with: VCR 2.5.0
201
+ - request:
202
+ method: post
203
+ uri: http://api.brightbox.dev/token
204
+ body:
205
+ string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
206
+ headers:
207
+ User-Agent:
208
+ - fog/1.15.0
209
+ Content-Type:
210
+ - application/json
211
+ Authorization:
212
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
213
+ response:
214
+ status:
215
+ code: 200
216
+ message:
217
+ headers:
218
+ X-Frame-Options:
219
+ - sameorigin
220
+ Date:
221
+ - Fri, 27 Sep 2013 15:26:07 GMT
222
+ X-UA-Compatible:
223
+ - IE=Edge
224
+ X-Request-Id:
225
+ - 1c950fb4e1bd3f09f0e62f533c88550e
226
+ Content-Type:
227
+ - application/json;charset=utf-8
228
+ X-Runtime:
229
+ - "0.115475"
230
+ Content-Length:
231
+ - "77"
232
+ ETag:
233
+ - "\"6596aa939ea6aed58628cec6d741c0e5\""
234
+ X-XSS-Protection:
235
+ - 1; mode=block
236
+ Connection:
237
+ - keep-alive
238
+ Cache-Control:
239
+ - no-store
240
+ body:
241
+ string: "{\"access_token\":\"5871da111763f610f7a25eaf05daf2805e688605\",\"expires_in\":7200}"
242
+ http_version:
243
+ recorded_at: Fri, 27 Sep 2013 15:26:07 GMT
244
+ - request:
245
+ method: post
246
+ uri: http://api.brightbox.dev/token
247
+ body:
248
+ string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
249
+ headers:
250
+ User-Agent:
251
+ - fog/1.15.0
252
+ Content-Type:
253
+ - application/json
254
+ Authorization:
255
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
256
+ response:
257
+ status:
258
+ code: 200
259
+ message:
260
+ headers:
261
+ X-Frame-Options:
262
+ - sameorigin
263
+ Date:
264
+ - Fri, 27 Sep 2013 15:26:07 GMT
265
+ X-UA-Compatible:
266
+ - IE=Edge
267
+ X-Request-Id:
268
+ - 171a1c0259d6f9fbcec34bfd80f0dc08
269
+ Content-Type:
270
+ - application/json;charset=utf-8
271
+ X-Runtime:
272
+ - "0.115763"
273
+ Content-Length:
274
+ - "77"
275
+ ETag:
276
+ - "\"b5df74a5c59d1ddd61dc78e649795a3e\""
277
+ X-XSS-Protection:
278
+ - 1; mode=block
279
+ Connection:
280
+ - keep-alive
281
+ Cache-Control:
282
+ - no-store
283
+ body:
284
+ string: "{\"access_token\":\"01c8090f779c70941b9df8e6fcee38e93e4ea8cc\",\"expires_in\":7200}"
285
+ http_version:
286
+ recorded_at: Fri, 27 Sep 2013 15:26:07 GMT
@@ -1,219 +1,286 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ recorded_with: VCR 2.5.0
3
+ http_interactions:
4
+ - request:
4
5
  method: post
5
6
  uri: http://api.brightbox.dev/token
6
- body:
7
- encoding: UTF-8
8
- string: '{"grant_type":"none","client_id":"cli-12345"}'
9
- headers:
10
- User-Agent:
7
+ body:
8
+ string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
9
+ headers:
10
+ User-Agent:
11
11
  - fog/1.15.0
12
- Authorization:
13
- - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
14
- Content-Type:
12
+ Content-Type:
15
13
  - application/json
16
- response:
17
- status:
14
+ Authorization:
15
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
16
+ response:
17
+ status:
18
18
  code: 200
19
19
  message:
20
- headers:
21
- X-Frame-Options:
20
+ headers:
21
+ X-Frame-Options:
22
22
  - sameorigin
23
- X-XSS-Protection:
24
- - 1; mode=block
25
- Content-Type:
26
- - application/json;charset=utf-8
27
- Cache-Control:
28
- - no-store
29
- Content-Length:
30
- - '77'
31
- X-UA-Compatible:
23
+ Date:
24
+ - Fri, 06 Sep 2013 15:58:58 GMT
25
+ X-UA-Compatible:
32
26
  - IE=Edge
33
- ETag:
34
- - '"1983bf38af3e5b331f98c65d9458eb40"'
35
- X-Request-Id:
27
+ X-Request-Id:
36
28
  - 3cfdad067b300b9787ffad7e12bb7d84
37
- X-Runtime:
38
- - '0.143104'
39
- Date:
40
- - Fri, 06 Sep 2013 15:58:58 GMT
41
- Connection:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ X-Runtime:
32
+ - "0.143104"
33
+ Content-Length:
34
+ - "77"
35
+ ETag:
36
+ - "\"1983bf38af3e5b331f98c65d9458eb40\""
37
+ X-XSS-Protection:
38
+ - 1; mode=block
39
+ Connection:
42
40
  - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"access_token":"1a37dd88bd5c6ca154ccc229b9d728526b098f02","expires_in":7200}'
41
+ Cache-Control:
42
+ - no-store
43
+ body:
44
+ string: "{\"access_token\":\"1a37dd88bd5c6ca154ccc229b9d728526b098f02\",\"expires_in\":7200}"
46
45
  http_version:
47
46
  recorded_at: Fri, 06 Sep 2013 15:58:58 GMT
48
- - request:
47
+ - request:
49
48
  method: get
50
49
  uri: http://api.brightbox.dev/1.0/account
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- headers:
55
- User-Agent:
50
+ body:
51
+ string: ""
52
+ headers:
53
+ User-Agent:
56
54
  - fog/1.15.0
57
- Authorization:
58
- - OAuth 0ab4badeb10018d07c1f6c33690ee011f36b4183
59
- Content-Type:
55
+ Content-Type:
60
56
  - application/json
61
- response:
62
- status:
57
+ Authorization:
58
+ - OAuth 0ab4badeb10018d07c1f6c33690ee011f36b4183
59
+ response:
60
+ status:
63
61
  code: 200
64
62
  message:
65
- headers:
66
- Content-Type:
67
- - application/json; charset=utf-8
68
- X-UA-Compatible:
63
+ headers:
64
+ Date:
65
+ - Fri, 06 Sep 2013 15:58:58 GMT
66
+ X-UA-Compatible:
69
67
  - IE=Edge
70
- ETag:
71
- - '"a9e93d5f3268805675b0c5c935311a85"'
72
- Cache-Control:
73
- - max-age=0, private, must-revalidate
74
- X-Request-Id:
68
+ X-Request-Id:
75
69
  - 2afefb0f54674e62c869e1a00c037fdb
76
- X-Runtime:
77
- - '0.096293'
78
- Date:
79
- - Fri, 06 Sep 2013 15:58:58 GMT
80
- Connection:
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ X-Runtime:
73
+ - "0.096293"
74
+ ETag:
75
+ - "\"a9e93d5f3268805675b0c5c935311a85\""
76
+ Connection:
81
77
  - close
82
- body:
83
- encoding: UTF-8
84
- string: '{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Aurnqfvgsbeyiprni","status":"active","address_1":"Kaycee
85
- Throughway","address_2":"","city":"South Hellenport","county":"","postcode":"60364-9886","country_code":"GB","country_name":"United
86
- Kingdom","vat_registration_number":"","telephone_number":"+444238318140","telephone_verified":false,"verified_telephone":null,"verified_at":null,"verified_ip":null,"created_at":"2013-09-04T07:53:13Z","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"valid_credit_card":false,"library_ftp_host":"ftp.library.gb1.brightbox.com","library_ftp_user":"acc-12345","library_ftp_password":null,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"56.67.59.219","reverse_dns":"cip-12345-67-59-219.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
87
- new servers are added to this group unless specified otherwise.","created_at":"2013-09-04T07:53:13Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-04T07:53:14Z","description":"Applied
88
- to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Dylan
89
- Fay DDS","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
78
+ Cache-Control:
79
+ - max-age=0, private, must-revalidate
80
+ body:
81
+ string: "{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"Aurnqfvgsbeyiprni\",\"status\":\"active\",\"address_1\":\"Kaycee Throughway\",\"address_2\":\"\",\"city\":\"South Hellenport\",\"county\":\"\",\"postcode\":\"60364-9886\",\"country_code\":\"GB\",\"country_name\":\"United Kingdom\",\"vat_registration_number\":\"\",\"telephone_number\":\"+444238318140\",\"telephone_verified\":false,\"verified_telephone\":null,\"verified_at\":null,\"verified_ip\":null,\"created_at\":\"2013-09-04T07:53:13Z\",\"ram_limit\":32768,\"ram_used\":0,\"cloud_ips_limit\":20,\"cloud_ips_used\":1,\"load_balancers_limit\":5,\"load_balancers_used\":0,\"valid_credit_card\":false,\"library_ftp_host\":\"ftp.library.gb1.brightbox.com\",\"library_ftp_user\":\"acc-12345\",\"library_ftp_password\":null,\"clients\":[{\"id\":\"cli-12345\",\"resource_type\":\"api_client\",\"url\":\"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345\",\"name\":null,\"description\":null,\"revoked_at\":null}],\"images\":[],\"servers\":[],\"load_balancers\":[],\"cloud_ips\":[{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"56.67.59.219\",\"reverse_dns\":\"cip-12345-67-59-219.gb1.brightbox.com\",\"name\":null}],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All new servers are added to this group unless specified otherwise.\",\"created_at\":\"2013-09-04T07:53:13Z\",\"default\":true}],\"firewall_policies\":[{\"id\":\"fwp-12345\",\"resource_type\":\"firewall_policy\",\"url\":\"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345\",\"default\":true,\"name\":\"default\",\"created_at\":\"2013-09-04T07:53:14Z\",\"description\":\"Applied to the default server group.\"}],\"owner\":{\"id\":\"usr-12345\",\"resource_type\":\"user\",\"url\":\"https://api.gb1.brightbox.com/1.0/users/usr-12345\",\"name\":\"Dylan Fay DDS\",\"email_address\":\"jason.null@brightbox.com\"},\"users\":[],\"zones\":[{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-a\"},{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-b\"}]}"
90
82
  http_version:
91
83
  recorded_at: Fri, 06 Sep 2013 15:58:58 GMT
92
- - request:
84
+ - request:
93
85
  method: get
94
86
  uri: http://api.brightbox.dev/1.0/accounts
95
- body:
96
- encoding: US-ASCII
97
- string: ''
98
- headers:
99
- User-Agent:
87
+ body:
88
+ string: ""
89
+ headers:
90
+ User-Agent:
100
91
  - fog/1.15.0
101
- Authorization:
102
- - OAuth 1a37dd88bd5c6ca154ccc229b9d728526b098f02
103
- Content-Type:
92
+ Content-Type:
104
93
  - application/json
105
- response:
106
- status:
94
+ Authorization:
95
+ - OAuth 1a37dd88bd5c6ca154ccc229b9d728526b098f02
96
+ response:
97
+ status:
107
98
  code: 401
108
99
  message:
109
- headers:
110
- WWW-Authenticate:
111
- - OAuth error="invalid_token"
112
- Content-Type:
113
- - application/json; charset=utf-8
114
- X-UA-Compatible:
100
+ headers:
101
+ Date:
102
+ - Tue, 17 Sep 2013 17:07:37 GMT
103
+ X-UA-Compatible:
115
104
  - IE=Edge
116
- Cache-Control:
117
- - no-cache
118
- X-Request-Id:
105
+ X-Request-Id:
119
106
  - bb0ccf83a0a38c612f244e849ebccf2b
120
- X-Runtime:
121
- - '0.022034'
122
- Date:
123
- - Tue, 17 Sep 2013 17:07:37 GMT
124
- Connection:
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Runtime:
110
+ - "0.022034"
111
+ WWW-Authenticate:
112
+ - OAuth error="invalid_token"
113
+ Connection:
125
114
  - close
126
- body:
127
- encoding: UTF-8
128
- string: '{"error":"invalid_token","error_description":"The OAuth token can not
129
- be found"}'
115
+ Cache-Control:
116
+ - no-cache
117
+ body:
118
+ string: "{\"error\":\"invalid_token\",\"error_description\":\"The OAuth token can not be found\"}"
130
119
  http_version:
131
120
  recorded_at: Tue, 17 Sep 2013 17:07:37 GMT
132
- - request:
121
+ - request:
133
122
  method: post
134
123
  uri: http://api.brightbox.dev/token
135
- body:
136
- encoding: UTF-8
137
- string: '{"grant_type":"none","client_id":"cli-12345"}'
138
- headers:
139
- User-Agent:
124
+ body:
125
+ string: "{\"grant_type\":\"none\",\"client_id\":\"cli-12345\"}"
126
+ headers:
127
+ User-Agent:
140
128
  - fog/1.15.0
141
- Authorization:
142
- - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
143
- Content-Type:
129
+ Content-Type:
144
130
  - application/json
145
- response:
146
- status:
131
+ Authorization:
132
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
133
+ response:
134
+ status:
147
135
  code: 200
148
136
  message:
149
- headers:
150
- X-Frame-Options:
137
+ headers:
138
+ X-Frame-Options:
151
139
  - sameorigin
152
- X-XSS-Protection:
153
- - 1; mode=block
154
- Content-Type:
155
- - application/json;charset=utf-8
156
- Cache-Control:
157
- - no-store
158
- Content-Length:
159
- - '77'
160
- X-UA-Compatible:
140
+ Date:
141
+ - Tue, 17 Sep 2013 17:07:37 GMT
142
+ X-UA-Compatible:
161
143
  - IE=Edge
162
- ETag:
163
- - '"d336ab2614d671174622556776834fdb"'
164
- X-Request-Id:
144
+ X-Request-Id:
165
145
  - 283553ccfd3ac3bc840721936366460c
166
- X-Runtime:
167
- - '0.110243'
168
- Date:
169
- - Tue, 17 Sep 2013 17:07:37 GMT
170
- Connection:
146
+ Content-Type:
147
+ - application/json;charset=utf-8
148
+ X-Runtime:
149
+ - "0.110243"
150
+ Content-Length:
151
+ - "77"
152
+ ETag:
153
+ - "\"d336ab2614d671174622556776834fdb\""
154
+ X-XSS-Protection:
155
+ - 1; mode=block
156
+ Connection:
171
157
  - keep-alive
172
- body:
173
- encoding: UTF-8
174
- string: '{"access_token":"034e02defea3b2fd64258fa63e1ba25fc80194c0","expires_in":7200}'
158
+ Cache-Control:
159
+ - no-store
160
+ body:
161
+ string: "{\"access_token\":\"034e02defea3b2fd64258fa63e1ba25fc80194c0\",\"expires_in\":7200}"
175
162
  http_version:
176
163
  recorded_at: Tue, 17 Sep 2013 17:07:37 GMT
177
- - request:
164
+ - request:
178
165
  method: get
179
166
  uri: http://api.brightbox.dev/1.0/accounts
180
- body:
181
- encoding: US-ASCII
182
- string: ''
183
- headers:
184
- User-Agent:
167
+ body:
168
+ string: ""
169
+ headers:
170
+ User-Agent:
185
171
  - fog/1.15.0
186
- Authorization:
187
- - OAuth 034e02defea3b2fd64258fa63e1ba25fc80194c0
188
- Content-Type:
172
+ Content-Type:
189
173
  - application/json
190
- response:
191
- status:
174
+ Authorization:
175
+ - OAuth 034e02defea3b2fd64258fa63e1ba25fc80194c0
176
+ response:
177
+ status:
192
178
  code: 200
193
179
  message:
194
- headers:
195
- Content-Type:
196
- - application/json; charset=utf-8
197
- X-UA-Compatible:
180
+ headers:
181
+ Date:
182
+ - Tue, 17 Sep 2013 17:07:37 GMT
183
+ X-UA-Compatible:
198
184
  - IE=Edge
199
- ETag:
200
- - '"7d4ad7857ea408897b8a2149197611ba"'
201
- Cache-Control:
202
- - max-age=0, private, must-revalidate
203
- X-Request-Id:
185
+ X-Request-Id:
204
186
  - 082f5f3047be0c1f79a00228fc646c22
205
- X-Runtime:
206
- - '0.220104'
207
- Date:
208
- - Tue, 17 Sep 2013 17:07:37 GMT
209
- Connection:
187
+ Content-Type:
188
+ - application/json; charset=utf-8
189
+ X-Runtime:
190
+ - "0.220104"
191
+ ETag:
192
+ - "\"7d4ad7857ea408897b8a2149197611ba\""
193
+ Connection:
210
194
  - close
211
- body:
212
- encoding: UTF-8
213
- string: '[{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Asaibdsjnpdgrdcqo","status":"active","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"153.37.92.121","reverse_dns":"cip-12345-37-92-121.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
214
- new servers are added to this group unless specified otherwise.","created_at":"2013-09-17T08:44:16Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-17T08:44:16Z","description":"Applied
215
- to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Kobe
216
- Swaniawski Sr.","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]'
195
+ Cache-Control:
196
+ - max-age=0, private, must-revalidate
197
+ body:
198
+ string: "[{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"Asaibdsjnpdgrdcqo\",\"status\":\"active\",\"ram_limit\":32768,\"ram_used\":0,\"cloud_ips_limit\":20,\"cloud_ips_used\":1,\"load_balancers_limit\":5,\"load_balancers_used\":0,\"clients\":[{\"id\":\"cli-12345\",\"resource_type\":\"api_client\",\"url\":\"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345\",\"name\":null,\"description\":null,\"revoked_at\":null}],\"images\":[],\"servers\":[],\"load_balancers\":[],\"cloud_ips\":[{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"153.37.92.121\",\"reverse_dns\":\"cip-12345-37-92-121.gb1.brightbox.com\",\"name\":null}],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All new servers are added to this group unless specified otherwise.\",\"created_at\":\"2013-09-17T08:44:16Z\",\"default\":true}],\"firewall_policies\":[{\"id\":\"fwp-12345\",\"resource_type\":\"firewall_policy\",\"url\":\"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345\",\"default\":true,\"name\":\"default\",\"created_at\":\"2013-09-17T08:44:16Z\",\"description\":\"Applied to the default server group.\"}],\"owner\":{\"id\":\"usr-12345\",\"resource_type\":\"user\",\"url\":\"https://api.gb1.brightbox.com/1.0/users/usr-12345\",\"name\":\"Kobe Swaniawski Sr.\",\"email_address\":\"jason.null@brightbox.com\"},\"users\":[],\"zones\":[{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-a\"},{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-b\"}]}]"
217
199
  http_version:
218
200
  recorded_at: Tue, 17 Sep 2013 17:07:37 GMT
219
- recorded_with: VCR 2.5.0
201
+ - request:
202
+ method: post
203
+ uri: http://api.brightbox.dev/token
204
+ body:
205
+ string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
206
+ headers:
207
+ User-Agent:
208
+ - fog/1.15.0
209
+ Content-Type:
210
+ - application/json
211
+ Authorization:
212
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
213
+ response:
214
+ status:
215
+ code: 200
216
+ message:
217
+ headers:
218
+ X-Frame-Options:
219
+ - sameorigin
220
+ Date:
221
+ - Fri, 27 Sep 2013 15:26:08 GMT
222
+ X-UA-Compatible:
223
+ - IE=Edge
224
+ X-Request-Id:
225
+ - 0f4077af847c3788fedf04f8f9ef16e9
226
+ Content-Type:
227
+ - application/json;charset=utf-8
228
+ X-Runtime:
229
+ - "0.114075"
230
+ Content-Length:
231
+ - "77"
232
+ ETag:
233
+ - "\"78c6833daafba072e19688ed2e8632e4\""
234
+ X-XSS-Protection:
235
+ - 1; mode=block
236
+ Connection:
237
+ - keep-alive
238
+ Cache-Control:
239
+ - no-store
240
+ body:
241
+ string: "{\"access_token\":\"dfbf2eb752d7d20855952c80e421b1781ffeef68\",\"expires_in\":7200}"
242
+ http_version:
243
+ recorded_at: Fri, 27 Sep 2013 15:26:08 GMT
244
+ - request:
245
+ method: post
246
+ uri: http://api.brightbox.dev/token
247
+ body:
248
+ string: "{\"client_id\":\"cli-12345\",\"grant_type\":\"none\"}"
249
+ headers:
250
+ User-Agent:
251
+ - fog/1.15.0
252
+ Content-Type:
253
+ - application/json
254
+ Authorization:
255
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
256
+ response:
257
+ status:
258
+ code: 200
259
+ message:
260
+ headers:
261
+ X-Frame-Options:
262
+ - sameorigin
263
+ Date:
264
+ - Fri, 27 Sep 2013 15:26:08 GMT
265
+ X-UA-Compatible:
266
+ - IE=Edge
267
+ X-Request-Id:
268
+ - 9d82388a985ce00b9223faddfc72a35d
269
+ Content-Type:
270
+ - application/json;charset=utf-8
271
+ X-Runtime:
272
+ - "0.254398"
273
+ Content-Length:
274
+ - "77"
275
+ ETag:
276
+ - "\"aee664c674bbbacf7973f2849f033c87\""
277
+ X-XSS-Protection:
278
+ - 1; mode=block
279
+ Connection:
280
+ - keep-alive
281
+ Cache-Control:
282
+ - no-store
283
+ body:
284
+ string: "{\"access_token\":\"be6ecda98aa935edb60a4450e279af8bc512f2e6\",\"expires_in\":7200}"
285
+ http_version:
286
+ recorded_at: Fri, 27 Sep 2013 15:26:08 GMT