--- http_interactions: - request: method: get uri: http://api.brightbox.dev/1.0/database_servers/dbs-12345?account_id=acc-12345 body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.19.0 Authorization: - OAuth f83da712e6299cda953513ec07f7a754f747d727 Content-Type: - application/json response: status: code: 200 message: headers: Content-Type: - application/json; charset=utf-8 X-Ua-Compatible: - IE=Edge Etag: - "\"56e81bcca509cc3ab218fadd4185d691\"" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - a3caa74bc89c64c2aca366583f5f04c9 X-Runtime: - '0.076712' Server: - WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22) Date: - Thu, 16 Jan 2014 15:29:56 GMT Content-Length: - '848' Connection: - Keep-Alive body: encoding: UTF-8 string: "{\"id\":\"dbs-12345\",\"resource_type\":\"database_server\",\"url\":\"https://api.gb1.brightbox.com/1.0/database_servers/dbs-12345\",\"name\":\"\",\"description\":\"\",\"admin_username\":\"admin\",\"admin_password\":null,\"allow_access\":[],\"database_version\":\"5.5\",\"status\":\"active\",\"created_at\":\"2014-01-16T15:23:32Z\",\"updated_at\":\"2014-01-16T15:24:58Z\",\"deleted_at\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR account\",\"status\":\"active\"},\"database_server_type\":{\"id\":\"dbt-12345\",\"resource_type\":\"database_type\",\"url\":\"https://api.gb1.brightbox.com/1.0/database_types/dbt-12345\",\"name\":\"hbdvmfqrrtyv\",\"description\":\"\",\"disk_size\":5120,\"ram\":4096},\"cloud_ips\":[],\"zone\":{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-a\"}}" http_version: recorded_at: Thu, 16 Jan 2014 15:29:56 GMT - request: method: post uri: http://api.brightbox.dev/1.0/database_servers/dbs-12345/snapshot?account_id=acc-12345 body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.19.0 Authorization: - OAuth f83da712e6299cda953513ec07f7a754f747d727 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: - 319d24953f1006d599b90d8e3db7a1a2 X-Runtime: - '0.823070' Server: - WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22) Date: - Thu, 16 Jan 2014 15:29:57 GMT Content-Length: - '848' Connection: - Keep-Alive body: encoding: UTF-8 string: "{\"id\":\"dbs-12345\",\"resource_type\":\"database_server\",\"url\":\"https://api.gb1.brightbox.com/1.0/database_servers/dbs-12345\",\"name\":\"\",\"description\":\"\",\"admin_username\":\"admin\",\"admin_password\":null,\"allow_access\":[],\"database_version\":\"5.5\",\"status\":\"active\",\"created_at\":\"2014-01-16T15:23:32Z\",\"updated_at\":\"2014-01-16T15:24:58Z\",\"deleted_at\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR account\",\"status\":\"active\"},\"database_server_type\":{\"id\":\"dbt-12345\",\"resource_type\":\"database_type\",\"url\":\"https://api.gb1.brightbox.com/1.0/database_types/dbt-12345\",\"name\":\"hbdvmfqrrtyv\",\"description\":\"\",\"disk_size\":5120,\"ram\":4096},\"cloud_ips\":[],\"zone\":{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-a\"}}" http_version: recorded_at: Thu, 16 Jan 2014 15:29:57 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: "{\"grant_type\":\"client_credentials\"}" headers: User-Agent: - fog/1.20.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: - cb7bfa462355f9a231859a0399c111a8 X-Runtime: - '0.105107' Server: - WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22) Date: - Tue, 18 Feb 2014 17:30:26 GMT Connection: - close 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, 18 Feb 2014 17:30:26 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: "{\"grant_type\":\"client_credentials\"}" headers: User-Agent: - fog/1.20.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: - 4a1e61d9325160ea8faa1911f20a82b1 X-Runtime: - '0.100535' Server: - WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22) Date: - Tue, 18 Feb 2014 17:30:26 GMT Connection: - close 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, 18 Feb 2014 17:30:26 GMT recorded_with: VCR 2.5.0