--- http_interactions: - request: method: get uri: http://api.brightbox.dev/1.0/account?account_id=acc-12345 body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth 63a4f6dbf53263e7468d3084ae9c50ecdcdf1714 Content-Type: - application/json response: status: code: 200 message: headers: Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge ETag: - '"781c9d4c8f91976cf1a05f030a156a44"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 1db8779a87e2de13e9f38c9e493ca722 X-Runtime: - '0.111858' Date: - Tue, 27 Aug 2013 16:12:48 GMT Connection: - close body: encoding: UTF-8 string: '{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active","address_1":"Israel Flats","address_2":"","city":"Clarkmouth","county":"","postcode":"97088-3817","country_code":"GB","country_name":"United Kingdom","vat_registration_number":"","telephone_number":"+445722683970","telephone_verified":false,"verified_telephone":null,"verified_at":null,"verified_ip":null,"created_at":"2013-08-27T15:47:00Z","ram_limit":32768,"ram_used":15360,"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":[{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"wow","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:24Z","started_at":"2013-08-27T15:54:27Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"medium servers","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:26Z","started_at":"2013-08-27T15:54:29Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"deleted","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:30Z","started_at":"2013-08-27T15:54:32Z","deleted_at":"2013-08-27T15:54:35Z"},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_shutdown","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:36Z","started_at":"2013-08-27T15:54:38Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_start","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:41Z","started_at":"2013-08-27T15:54:47Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"rspec_server_stop","status":"inactive","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:48Z","started_at":"2013-08-27T15:54:51Z","deleted_at":null},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"deleted","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T15:54:52Z","started_at":"2013-08-27T15:54:55Z","deleted_at":"2013-08-27T15:54:58Z"},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"deleted","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","created_at":"2013-08-27T16:12:22Z","started_at":"2013-08-27T16:12:25Z","deleted_at":"2013-08-27T16:12:27Z"}],"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":"217.16.230.132","reverse_dns":"cip-12345-16-230-132.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-08-27T15:47:00Z","default":true},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T15:54:53Z","default":false},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T16:12:22Z","default":false}],"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-08-27T15:47:00Z","description":"Applied to the default server group."},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T15:54:12Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:54:13Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:20Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:21Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:56:46Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:06:22Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T16:12:42Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:12:43Z","description":null}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Teresa Ullrich","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"}]}' http_version: recorded_at: Tue, 27 Aug 2013 16:12:48 GMT - request: method: post uri: http://api.brightbox.dev/1.0/firewall_policies?account_id=acc-12345 body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth 63a4f6dbf53263e7468d3084ae9c50ecdcdf1714 Content-Type: - application/json response: status: code: 201 message: headers: Location: - http://api.brightbox.dev/1.0/firewall_policies/fwp-4ib6v Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge ETag: - '"336261a5e26e034680403daabff435b9"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - de9178c9e163863080837da270df122b X-Runtime: - '0.351606' Date: - Tue, 27 Aug 2013 16:12:48 GMT Connection: - close body: encoding: UTF-8 string: '{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null,"server_group":null,"rules":[]}' http_version: recorded_at: Tue, 27 Aug 2013 16:12:48 GMT - request: method: post uri: http://api.brightbox.dev/1.0/firewall_rules?account_id=acc-12345 body: encoding: UTF-8 string: '{"firewall_policy":"fwp-12345","protocol":"tcp","destination":"0.0.0.0/0","destination_port":"1080"}' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth 63a4f6dbf53263e7468d3084ae9c50ecdcdf1714 Content-Type: - application/json response: status: code: 202 message: headers: Location: - http://api.brightbox.dev/1.0/firewall_rules/fwr-ixgd5 Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge Cache-Control: - no-cache X-Request-Id: - 7de137408c4d6ddd23daf24f0e0d4815 X-Runtime: - '0.103666' Date: - Tue, 27 Aug 2013 16:12:48 GMT Connection: - close body: encoding: UTF-8 string: '{"id":"fwr-12345","resource_type":"firewall_rule","url":"https://api.gb1.brightbox.com/1.0/firewall_rules/fwr-12345","source":null,"source_port":null,"destination":"0.0.0.0/0","destination_port":"1080","icmp_type_name":null,"protocol":"tcp","description":null,"created_at":"2013-08-27T16:12:48Z","firewall_policy":{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null}}' http_version: recorded_at: Tue, 27 Aug 2013 16:12:48 GMT - request: method: delete uri: http://api.brightbox.dev/1.0/firewall_rules/fwr-12345?account_id=acc-12345 body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth 63a4f6dbf53263e7468d3084ae9c50ecdcdf1714 Content-Type: - application/json response: status: code: 202 message: headers: Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge Cache-Control: - no-cache X-Request-Id: - 6085772ea7b8515aa671669e39898c9f X-Runtime: - '0.096784' Date: - Tue, 27 Aug 2013 16:12:48 GMT Connection: - close body: encoding: UTF-8 string: '{"id":"fwr-12345","resource_type":"firewall_rule","url":"https://api.gb1.brightbox.com/1.0/firewall_rules/fwr-12345","source":null,"source_port":null,"destination":"0.0.0.0/0","destination_port":"1080","icmp_type_name":null,"protocol":"tcp","description":null,"created_at":"2013-08-27T16:12:48Z","firewall_policy":{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null}}' http_version: recorded_at: Tue, 27 Aug 2013 16:12:48 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"client_credentials"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 400 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '135' X-UA-Compatible: - IE=Edge X-Request-Id: - 1cbfb09c4ebe1a2ceb7e0a4ee4c99c44 X-Runtime: - '0.100538' Date: - Tue, 27 Aug 2013 17:10:03 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}' http_version: recorded_at: Tue, 27 Aug 2013 17:10:03 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"client_credentials"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 400 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '135' X-UA-Compatible: - IE=Edge X-Request-Id: - 6b07e611b904a694298ae8acf1a7a338 X-Runtime: - '0.107544' Date: - Tue, 27 Aug 2013 17:10:03 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}' http_version: recorded_at: Tue, 27 Aug 2013 17:10:03 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"client_credentials"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 400 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '135' X-UA-Compatible: - IE=Edge X-Request-Id: - e4febf18fd02a91a568d0a1aa6a9b964 X-Runtime: - '0.111581' Date: - Tue, 27 Aug 2013 17:10:03 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}' http_version: recorded_at: Tue, 27 Aug 2013 17:10:03 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"client_credentials"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 400 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '135' X-UA-Compatible: - IE=Edge X-Request-Id: - 6c1dbe80448c47aadd72209d7c2b0b49 X-Runtime: - '0.106587' Date: - Tue, 27 Aug 2013 17:10:03 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}' http_version: recorded_at: Tue, 27 Aug 2013 17:10:03 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"client_credentials"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ== Content-Type: - application/json response: status: code: 200 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '77' X-UA-Compatible: - IE=Edge ETag: - '"02799889be9e8698569119b7def66998"' X-Request-Id: - 3823b89a979cfcc9578df6e24befdad8 X-Runtime: - '0.116536' Date: - Tue, 17 Sep 2013 17:07:45 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"access_token":"6b51c446b1410c8c4fdf3ff4d588d40a419aeb0d","expires_in":7200}' http_version: recorded_at: Tue, 17 Sep 2013 17:07:45 GMT - request: method: get uri: http://api.brightbox.dev/1.0/accounts body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth 6b51c446b1410c8c4fdf3ff4d588d40a419aeb0d Content-Type: - application/json response: status: code: 200 message: headers: Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge ETag: - '"7d4ad7857ea408897b8a2149197611ba"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - e5c21629193dcd483a1adc533f1f233b X-Runtime: - '0.108557' Date: - Tue, 17 Sep 2013 17:07:45 GMT Connection: - close body: encoding: UTF-8 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"}]}]' http_version: recorded_at: Tue, 17 Sep 2013 17:07:45 GMT recorded_with: VCR 2.5.0