--- - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: http://:@:80/users/404.json body: headers: content-type: - application/json authorization: - Basic response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 404 message: Not Found headers: x-ua-compatible: - IE=Edge,chrome=1 x-powered-by: - Phusion Passenger (mod_rails/mod_rack) 3.0.1 content-type: - application/json; charset=utf-8 date: - Fri, 10 Feb 2012 16:17:58 GMT server: - Apache/2.2.3 (CentOS) x-runtime: - "0.023569" set-cookie: - cache-control: - no-cache status: - "404" transfer-encoding: - chunked body: "{\"errors\":[\"Resource not found\"]}" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: http://:@:80/users/1.json body: headers: content-type: - application/json authorization: - Basic response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: x-ua-compatible: - IE=Edge,chrome=1 etag: - "\"655bdb31efe5d1939bab3606daf190dc\"" x-powered-by: - Phusion Passenger (mod_rails/mod_rack) 3.0.1 content-type: - application/json; charset=utf-8 x-runtime: - "0.546276" server: - Apache/2.2.3 (CentOS) date: - Fri, 10 Feb 2012 16:17:59 GMT set-cookie: - status: - "200" cache-control: - max-age=0, private, must-revalidate transfer-encoding: - chunked body: "{\"user\":{\"aflexi_user_id\":614389567,\"total_amount\":2.342100018167e+28,\"activated_at\":\"2010-12-28T15:17:54Z\",\"created_at\":\"2010-10-27T10:08:40Z\",\"aflexi_password\":\"0QWXUCnSgDwt\",\"cdn_account_status\":\"ACTIVE\",\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":5935,\"used_disk_size\":12,\"used_ip_addresses\":[{\"ip_address\":{\"address\":\"109.123.105.210\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":15,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"109.123.105.215\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":20,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"83.170.67.234\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.224\",\"created_at\":\"2011-01-20T11:23:31Z\",\"broadcast\":\"83.170.67.255\",\"updated_at\":\"2011-10-10T09:15:15Z\",\"network_id\":1,\"network_address\":\"83.170.67.224\",\"id\":33451,\"free\":false,\"gateway\":\"83.170.67.225\"}}],\"deleted_at\":null,\"updated_at\":\"2012-02-10T09:51:46Z\",\"used_cpu_shares\":2,\"used_cpus\":2,\"billing_plan_id\":41,\"cdn_status\":\"ACTIVE\",\"group_id\":1,\"id\":1,\"update_billing_stat\":false,\"used_memory\":384,\"aflexi_key\":null,\"user_group_id\":4,\"payment_amount\":\"1003000.0\",\"last_name\":\"Smith\",\"remember_token\":null,\"disk_space_available\":460,\"image_template_group_id\":null,\"locale\":\"en\",\"time_zone\":\"Kyiv\",\"login\":\"admin\",\"status\":\"active\",\"outstanding_amount\":2.342100018167e+28,\"roles\":[{\"role\":{\"label\":\"administrator\",\"created_at\":\"2012-02-10T09:45:16Z\",\"updated_at\":\"2012-02-10T14:35:55Z\",\"id\":405,\"permissions\":[{\"permission\":{\"label\":\"Any action on Autoscaling Configuration\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:18Z\",\"id\":307,\"identifier\":\"auto_scalings\"}},{\"permission\":{\"label\":\"Any action on autobackup templates\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":168,\"identifier\":\"autobackup_templates\"}},{\"permission\":{\"label\":\"Any action on backups\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":44,\"identifier\":\"backups\"}},{\"permission\":{\"label\":\"Any action on resources\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":191,\"identifier\":\"base_resources\"}},{\"permission\":{\"label\":\"Any action on billing plans\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":185,\"identifier\":\"billing_plans\"}},{\"permission\":{\"label\":\"Any action on CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":328,\"identifier\":\"cdn_resources\"}},{\"permission\":{\"label\":\"See details of CDN usage statistics\",\"created_at\":\"2011-07-20T16:20:15Z\",\"updated_at\":\"2011-12-06T16:40:13Z\",\"id\":296,\"identifier\":\"cdn_usage_stats\"}},{\"permission\":{\"label\":\"Any action with Currencies\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":269,\"identifier\":\"currencies\"}},{\"permission\":{\"label\":\"All actions on Dashboard\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":123,\"identifier\":\"dashboard\"}},{\"permission\":{\"label\":\"All actions on datastores on Hypervisor\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":164,\"identifier\":\"data_store_joins\"}},{\"permission\":{\"label\":\"Any action on data store zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":173,\"identifier\":\"data_store_zones\"}},{\"permission\":{\"label\":\"Any action on data_stores\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":55,\"identifier\":\"data_stores\"}},{\"permission\":{\"label\":\"Any action on disks\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":24,\"identifier\":\"disks\"}},{\"permission\":{\"label\":\"Any action on edge group\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":323,\"identifier\":\"edge_groups\"}},{\"permission\":{\"label\":\"Any action on Edge Server\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":347,\"identifier\":\"edge_servers\"}},{\"permission\":{\"label\":\"Any action with Firewall Rules \",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":274,\"identifier\":\"firewall_rules\"}},{\"permission\":{\"label\":\"Any action on groups\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":96,\"identifier\":\"groups\"}},{\"permission\":{\"label\":\"All actions on Help\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":125,\"identifier\":\"help\"}},{\"permission\":{\"label\":\"Any action on hypervisor zones\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":211,\"identifier\":\"hypervisor_zones\"}},{\"permission\":{\"label\":\"Any action on hypervisors\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":19,\"identifier\":\"hypervisors\"}},{\"permission\":{\"label\":\"Any action on template groups\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":249,\"identifier\":\"image_template_groups\"}},{\"permission\":{\"label\":\"Full access to IO Statistics\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":227,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"All actions on virtual machine's IP addresses\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":145,\"identifier\":\"ip_address_joins\"}},{\"permission\":{\"label\":\"Any action on ip addresses\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":70,\"identifier\":\"ip_addresses\"}},{\"permission\":{\"label\":\"Any action on mounting ISO\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":217,\"identifier\":\"iso_joins\"}},{\"permission\":{\"label\":\"Any action on isos\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":198,\"identifier\":\"isos\"}},{\"permission\":{\"label\":\"Any action on Load Balancer\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":362,\"identifier\":\"load_balancers\"}},{\"permission\":{\"label\":\"Any action on relation load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":299,\"identifier\":\"load_balancing_clusters\"}},{\"permission\":{\"label\":\"Any action on log items\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":155,\"identifier\":\"log_items\"}},{\"permission\":{\"label\":\"Any action on relation monitis monitors\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":316,\"identifier\":\"monitis_monitors\"}},{\"permission\":{\"label\":\"Full access to Mounthly Bills Statistics\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":318,\"identifier\":\"monthly_bills\"}},{\"permission\":{\"label\":\"Any action on nameservers\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":75,\"identifier\":\"nameservers\"}},{\"permission\":{\"label\":\"Any action on network zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":179,\"identifier\":\"network_zones\"}},{\"permission\":{\"label\":\"Any action on networks\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":65,\"identifier\":\"networks\"}},{\"permission\":{\"label\":\"Any action on payments\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":101,\"identifier\":\"payments\"}},{\"permission\":{\"label\":\"Any action on permissions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":60,\"identifier\":\"permissions\"}},{\"permission\":{\"label\":\"Any action on relation group_templates\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":264,\"identifier\":\"relation_group_templates\"}},{\"permission\":{\"label\":\"Any action on resource limit\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":85,\"identifier\":\"resource_limits\"}},{\"permission\":{\"label\":\"Any action on Roles\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":91,\"identifier\":\"roles\"}},{\"permission\":{\"label\":\"Any action on schedule logs\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":136,\"identifier\":\"schedule_logs\"}},{\"permission\":{\"label\":\"Any action on schedules\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":126,\"identifier\":\"schedules\"}},{\"permission\":{\"label\":\"Any action on Settings\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":107,\"identifier\":\"settings\"}},{\"permission\":{\"label\":\"All actions on Sysadmin Tools\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":124,\"identifier\":\"sysadmin_tools\"}},{\"permission\":{\"label\":\"Any action on template sets\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":363,\"identifier\":\"template_sets\"}},{\"permission\":{\"label\":\"Any action on templates\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":32,\"identifier\":\"templates\"}},{\"permission\":{\"label\":\"Any action on Themes\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":286,\"identifier\":\"themes\"}},{\"permission\":{\"label\":\"Any action on transactions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":82,\"identifier\":\"transactions\"}},{\"permission\":{\"label\":\"Any action on user groups\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":243,\"identifier\":\"user_groups\"}},{\"permission\":{\"label\":\"Any action with White IP list \",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":255,\"identifier\":\"user_white_lists\"}},{\"permission\":{\"label\":\"Any action on users\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":11,\"identifier\":\"users\"}},{\"permission\":{\"label\":\"Any action on virtual machines\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":1,\"identifier\":\"virtual_machines\"}},{\"permission\":{\"label\":\"Full access to Statistics\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":116,\"identifier\":\"vm_stats\"}},{\"permission\":{\"label\":\"Add ssh keys for all the virtual machines\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":360,\"identifier\":\"ssh_keys.add\"}}],\"identifier\":\"r5yzw8wkarmh93\"}}],\"aflexi_username\":\"onapp-pub-1-a3ef742fb21ca0a8900a41c71183e4a0\",\"email\":\"admin@example.com\",\"first_name\":\"John\"}}" http_version: "1.1"