--- http_interactions: - request: method: post uri: http://api.brightbox.dev/1.0/database_servers?account_id=acc-12345 body: encoding: UTF-8 string: "{\"name\":null,\"description\":null,\"allow_access\":[\"srv-12345\",\"grp-12345\"],\"maintenance_weekday\":null,\"maintenance_hour\":null}" headers: User-Agent: - fog/1.20.0 Authorization: - OAuth f83da712e6299cda953513ec07f7a754f747d727 Content-Type: - application/json response: status: code: 202 message: headers: Location: - http://api.brightbox.dev/1.0/database_servers/dbs-el0py Content-Type: - application/json; charset=utf-8 X-Ua-Compatible: - IE=Edge Cache-Control: - no-cache X-Request-Id: - 74a33404daa192a234ae9e050696b55a X-Runtime: - '0.992636' Server: - WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22) Date: - Wed, 19 Feb 2014 17:02:30 GMT Content-Length: - '958' Connection: - Keep-Alive body: encoding: UTF-8 string: "{\"id\":\"dbs-el0py\",\"resource_type\":\"database_server\",\"url\":\"https://api.gb1.brightbox.com/1.0/database_servers/dbs-el0py\",\"name\":\"\",\"description\":\"\",\"admin_username\":\"admin\",\"admin_password\":\"7cykj0h2r0cnq1dt\",\"allow_access\":[\"srv-12345\",\"grp-12345\"],\"database_engine\":\"mysql\",\"database_version\":\"5.5\",\"status\":\"creating\",\"maintenance_weekday\":0,\"maintenance_hour\":6,\"created_at\":\"2014-02-19T17:02:29Z\",\"updated_at\":\"2014-02-19T17:02:29Z\",\"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\":\"moxccmwwwhtn\",\"description\":\"\",\"disk_size\":8192,\"ram\":2048},\"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: Wed, 19 Feb 2014 17:02:30 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}" 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: - 893f534ed3cfb55a8af6e992a717eda2 X-Runtime: - '0.104069' Server: - WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22) Date: - Wed, 19 Feb 2014 17:28:09 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: Wed, 19 Feb 2014 17:28:09 GMT recorded_with: VCR 2.5.0