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
- - '"e78c95ce98c050a99b89933f6ae9a830"'
35
- X-Request-Id:
27
+ X-Request-Id:
36
28
  - 82a65a1676245fa8c1af95c03887429a
37
- X-Runtime:
38
- - '0.124936'
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.124936"
33
+ Content-Length:
34
+ - "77"
35
+ ETag:
36
+ - "\"e78c95ce98c050a99b89933f6ae9a830\""
37
+ X-XSS-Protection:
38
+ - 1; mode=block
39
+ Connection:
42
40
  - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"access_token":"1885c545834fb6bf3580d01cd6951c49ef71948d","expires_in":7200}'
41
+ Cache-Control:
42
+ - no-store
43
+ body:
44
+ string: "{\"access_token\":\"1885c545834fb6bf3580d01cd6951c49ef71948d\",\"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:57 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
  - 10cd2e76dd41929bd9db6b337b08fd3d
76
- X-Runtime:
77
- - '0.265923'
78
- Date:
79
- - Fri, 06 Sep 2013 15:58:57 GMT
80
- Connection:
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ X-Runtime:
73
+ - "0.265923"
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:57 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 1885c545834fb6bf3580d01cd6951c49ef71948d
103
- Content-Type:
92
+ Content-Type:
104
93
  - application/json
105
- response:
106
- status:
94
+ Authorization:
95
+ - OAuth 1885c545834fb6bf3580d01cd6951c49ef71948d
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:35 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
  - 0f0d8c95cd487c2404156022833b8532
120
- X-Runtime:
121
- - '0.028998'
122
- Date:
123
- - Tue, 17 Sep 2013 17:07:35 GMT
124
- Connection:
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Runtime:
110
+ - "0.028998"
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:35 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:35 GMT
142
+ X-UA-Compatible:
161
143
  - IE=Edge
162
- ETag:
163
- - '"91cf3400439e1829dc9e630d44ea929a"'
164
- X-Request-Id:
144
+ X-Request-Id:
165
145
  - 7abc4002d2ec22ae654f54d013d4ced5
166
- X-Runtime:
167
- - '0.203379'
168
- Date:
169
- - Tue, 17 Sep 2013 17:07:35 GMT
170
- Connection:
146
+ Content-Type:
147
+ - application/json;charset=utf-8
148
+ X-Runtime:
149
+ - "0.203379"
150
+ Content-Length:
151
+ - "77"
152
+ ETag:
153
+ - "\"91cf3400439e1829dc9e630d44ea929a\""
154
+ X-XSS-Protection:
155
+ - 1; mode=block
156
+ Connection:
171
157
  - keep-alive
172
- body:
173
- encoding: UTF-8
174
- string: '{"access_token":"faec715aabc9c2024a4fe8b9f277ade01291db68","expires_in":7200}'
158
+ Cache-Control:
159
+ - no-store
160
+ body:
161
+ string: "{\"access_token\":\"faec715aabc9c2024a4fe8b9f277ade01291db68\",\"expires_in\":7200}"
175
162
  http_version:
176
163
  recorded_at: Tue, 17 Sep 2013 17:07:35 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 faec715aabc9c2024a4fe8b9f277ade01291db68
188
- Content-Type:
172
+ Content-Type:
189
173
  - application/json
190
- response:
191
- status:
174
+ Authorization:
175
+ - OAuth faec715aabc9c2024a4fe8b9f277ade01291db68
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
  - cb7ee2ea2e52e656e91e04e6c3b4a37a
205
- X-Runtime:
206
- - '0.709254'
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.709254"
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
+ - 5fea2f7700ff95f158770013e636bb6f
226
+ Content-Type:
227
+ - application/json;charset=utf-8
228
+ X-Runtime:
229
+ - "0.111563"
230
+ Content-Length:
231
+ - "77"
232
+ ETag:
233
+ - "\"331124a76bb22dab0ffba099c635007d\""
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\":\"38ee25f7ca3fb7ea080ecf2b84f0800117da8666\",\"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
+ - 9e7865a55c0f7a2af0d5381c3d24cef2
269
+ Content-Type:
270
+ - application/json;charset=utf-8
271
+ X-Runtime:
272
+ - "0.124098"
273
+ Content-Length:
274
+ - "77"
275
+ ETag:
276
+ - "\"76c230e0c0d12997e8f3ced749c2f528\""
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\":\"5c79a511d14aaef83c009d0326a3d77523a82d9f\",\"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 16:16:07 GMT
25
+ X-UA-Compatible:
32
26
  - IE=Edge
33
- ETag:
34
- - '"9d65a61d00a68da0c11d72d8d1b2a045"'
35
- X-Request-Id:
27
+ X-Request-Id:
36
28
  - 4b3d9660d717f5ffa44358b188e02138
37
- X-Runtime:
38
- - '0.164552'
39
- Date:
40
- - Fri, 06 Sep 2013 16:16:07 GMT
41
- Connection:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ X-Runtime:
32
+ - "0.164552"
33
+ Content-Length:
34
+ - "77"
35
+ ETag:
36
+ - "\"9d65a61d00a68da0c11d72d8d1b2a045\""
37
+ X-XSS-Protection:
38
+ - 1; mode=block
39
+ Connection:
42
40
  - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"access_token":"c4f4691ae80055c65f7845682204ca34e5be580f","expires_in":7200}'
41
+ Cache-Control:
42
+ - no-store
43
+ body:
44
+ string: "{\"access_token\":\"c4f4691ae80055c65f7845682204ca34e5be580f\",\"expires_in\":7200}"
46
45
  http_version:
47
46
  recorded_at: Fri, 06 Sep 2013 16:16:07 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 16:16:07 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
  - d61bcabc1a0a29bdc5296aaceb4a1bf7
76
- X-Runtime:
77
- - '0.227107'
78
- Date:
79
- - Fri, 06 Sep 2013 16:16:07 GMT
80
- Connection:
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ X-Runtime:
73
+ - "0.227107"
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 16:16:07 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 c4f4691ae80055c65f7845682204ca34e5be580f
103
- Content-Type:
92
+ Content-Type:
104
93
  - application/json
105
- response:
106
- status:
94
+ Authorization:
95
+ - OAuth c4f4691ae80055c65f7845682204ca34e5be580f
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
  - aff2832c7801a62b639c8832f1610c07
120
- X-Runtime:
121
- - '0.116391'
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.116391"
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:38 GMT
142
+ X-UA-Compatible:
161
143
  - IE=Edge
162
- ETag:
163
- - '"8550a007f91e80ae941b532703fe8dbf"'
164
- X-Request-Id:
144
+ X-Request-Id:
165
145
  - 895c0ac91dfe78507d1f7eac5e72239e
166
- X-Runtime:
167
- - '0.213071'
168
- Date:
169
- - Tue, 17 Sep 2013 17:07:38 GMT
170
- Connection:
146
+ Content-Type:
147
+ - application/json;charset=utf-8
148
+ X-Runtime:
149
+ - "0.213071"
150
+ Content-Length:
151
+ - "77"
152
+ ETag:
153
+ - "\"8550a007f91e80ae941b532703fe8dbf\""
154
+ X-XSS-Protection:
155
+ - 1; mode=block
156
+ Connection:
171
157
  - keep-alive
172
- body:
173
- encoding: UTF-8
174
- string: '{"access_token":"75cb4f5b94291dca03e6b0318fe60a09d8ebe4b6","expires_in":7200}'
158
+ Cache-Control:
159
+ - no-store
160
+ body:
161
+ string: "{\"access_token\":\"75cb4f5b94291dca03e6b0318fe60a09d8ebe4b6\",\"expires_in\":7200}"
175
162
  http_version:
176
163
  recorded_at: Tue, 17 Sep 2013 17:07:38 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 75cb4f5b94291dca03e6b0318fe60a09d8ebe4b6
188
- Content-Type:
172
+ Content-Type:
189
173
  - application/json
190
- response:
191
- status:
174
+ Authorization:
175
+ - OAuth 75cb4f5b94291dca03e6b0318fe60a09d8ebe4b6
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:38 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
  - ae9498d10e94bcd281608310efc1491b
205
- X-Runtime:
206
- - '0.214466'
207
- Date:
208
- - Tue, 17 Sep 2013 17:07:38 GMT
209
- Connection:
187
+ Content-Type:
188
+ - application/json; charset=utf-8
189
+ X-Runtime:
190
+ - "0.214466"
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:38 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:09 GMT
222
+ X-UA-Compatible:
223
+ - IE=Edge
224
+ X-Request-Id:
225
+ - 779a95d87c242f70724df5ccb2378671
226
+ Content-Type:
227
+ - application/json;charset=utf-8
228
+ X-Runtime:
229
+ - "0.165583"
230
+ Content-Length:
231
+ - "77"
232
+ ETag:
233
+ - "\"456912b33e9ca74eeedd985a0b1acf17\""
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\":\"638b2eb4f8bc0112665dc6aac4df3783678b906e\",\"expires_in\":7200}"
242
+ http_version:
243
+ recorded_at: Fri, 27 Sep 2013 15:26:09 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:09 GMT
265
+ X-UA-Compatible:
266
+ - IE=Edge
267
+ X-Request-Id:
268
+ - 0226b915b7fc242218037d187b482d06
269
+ Content-Type:
270
+ - application/json;charset=utf-8
271
+ X-Runtime:
272
+ - "0.122319"
273
+ Content-Length:
274
+ - "77"
275
+ ETag:
276
+ - "\"07d3918307ee6ec6b31b80e9052f3c37\""
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\":\"49a1710227dde7b0e2f716a49b791e2f7ce20d4b\",\"expires_in\":7200}"
285
+ http_version:
286
+ recorded_at: Fri, 27 Sep 2013 15:26:09 GMT