squall 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/.gitignore +10 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +100 -0
  7. data/LICENSE +1 -1
  8. data/README.md +69 -0
  9. data/Rakefile +48 -42
  10. data/lib/squall/base.rb +96 -0
  11. data/lib/squall/config.rb +26 -0
  12. data/lib/squall/exception.rb +13 -0
  13. data/lib/squall/hypervisor.rb +46 -16
  14. data/lib/squall/ip_address.rb +13 -0
  15. data/lib/squall/network.rb +42 -0
  16. data/lib/squall/params.rb +50 -0
  17. data/lib/squall/role.rb +56 -0
  18. data/lib/squall/statistic.rb +10 -0
  19. data/lib/squall/template.rb +22 -0
  20. data/lib/squall/transaction.rb +16 -0
  21. data/lib/squall/user.rb +87 -0
  22. data/lib/squall/version.rb +3 -0
  23. data/lib/squall/virtual_machine.rb +169 -41
  24. data/lib/squall.rb +76 -20
  25. data/spec/params_spec.rb +195 -0
  26. data/spec/spec_helper.rb +47 -0
  27. data/spec/squall/base_spec.rb +135 -0
  28. data/spec/squall/config_spec.rb +44 -0
  29. data/spec/squall/hypervisor_spec.rb +143 -0
  30. data/spec/squall/ip_address_spec.rb +32 -0
  31. data/spec/squall/network_spec.rb +121 -0
  32. data/spec/squall/role_spec.rb +123 -0
  33. data/spec/squall/statistic_spec.rb +23 -0
  34. data/spec/squall/template_spec.rb +59 -0
  35. data/spec/squall/transaction_spec.rb +42 -0
  36. data/spec/squall/user_spec.rb +195 -0
  37. data/spec/squall/virtual_machine_spec.rb +471 -0
  38. data/spec/squall_spec.rb +67 -0
  39. data/spec/vcr_cassettes/hypervisor/create.yml +77 -0
  40. data/spec/vcr_cassettes/hypervisor/delete.yml +77 -0
  41. data/spec/vcr_cassettes/hypervisor/edit.yml +79 -0
  42. data/spec/vcr_cassettes/hypervisor/list.yml +40 -0
  43. data/spec/vcr_cassettes/hypervisor/reboot.yml +77 -0
  44. data/spec/vcr_cassettes/hypervisor/show.yml +77 -0
  45. data/spec/vcr_cassettes/ipaddress/list.yml +77 -0
  46. data/spec/vcr_cassettes/network/create.yml +196 -0
  47. data/spec/vcr_cassettes/network/delete.yml +77 -0
  48. data/spec/vcr_cassettes/network/edit.yml +233 -0
  49. data/spec/vcr_cassettes/network/list.yml +40 -0
  50. data/spec/vcr_cassettes/role/create.yml +77 -0
  51. data/spec/vcr_cassettes/role/delete.yml +77 -0
  52. data/spec/vcr_cassettes/role/edit.yml +139 -0
  53. data/spec/vcr_cassettes/role/list.yml +40 -0
  54. data/spec/vcr_cassettes/role/permissions.yml +40 -0
  55. data/spec/vcr_cassettes/role/show.yml +77 -0
  56. data/spec/vcr_cassettes/statistic/usage_statistics.yml +40 -0
  57. data/spec/vcr_cassettes/template/download.yml +40 -0
  58. data/spec/vcr_cassettes/template/list.yml +40 -0
  59. data/spec/vcr_cassettes/template/make_public.yml +77 -0
  60. data/spec/vcr_cassettes/transaction/list.yml +40 -0
  61. data/spec/vcr_cassettes/transaction/show.yml +77 -0
  62. data/spec/vcr_cassettes/user/activate.yml +40 -0
  63. data/spec/vcr_cassettes/user/create.yml +116 -0
  64. data/spec/vcr_cassettes/user/delete.yml +77 -0
  65. data/spec/vcr_cassettes/user/edit_role.yml +116 -0
  66. data/spec/vcr_cassettes/user/generate_api_key.yml +40 -0
  67. data/spec/vcr_cassettes/user/list.yml +40 -0
  68. data/spec/vcr_cassettes/user/show.yml +77 -0
  69. data/spec/vcr_cassettes/user/stats.yml +40 -0
  70. data/spec/vcr_cassettes/user/suspend.yml +40 -0
  71. data/spec/vcr_cassettes/user/virtual_machines.yml +79 -0
  72. data/spec/vcr_cassettes/virtual_machine/build.yml +77 -0
  73. data/spec/vcr_cassettes/virtual_machine/change_owner.yml +108 -0
  74. data/spec/vcr_cassettes/virtual_machine/change_password.yml +77 -0
  75. data/spec/vcr_cassettes/virtual_machine/create.yml +40 -0
  76. data/spec/vcr_cassettes/virtual_machine/delete.yml +77 -0
  77. data/spec/vcr_cassettes/virtual_machine/edit.yml +77 -0
  78. data/spec/vcr_cassettes/virtual_machine/list.yml +40 -0
  79. data/spec/vcr_cassettes/virtual_machine/migrate.yml +116 -0
  80. data/spec/vcr_cassettes/virtual_machine/reboot.yml +77 -0
  81. data/spec/vcr_cassettes/virtual_machine/resize.yml +77 -0
  82. data/spec/vcr_cassettes/virtual_machine/show.yml +77 -0
  83. data/spec/vcr_cassettes/virtual_machine/shutdown.yml +77 -0
  84. data/spec/vcr_cassettes/virtual_machine/startup.yml +77 -0
  85. data/spec/vcr_cassettes/virtual_machine/stop.yml +77 -0
  86. data/spec/vcr_cassettes/virtual_machine/suspend.yml +77 -0
  87. data/spec/vcr_cassettes/virtual_machine/unlock.yml +77 -0
  88. data/spec/vcr_cassettes/virtual_machine/unsuspend.yml +77 -0
  89. data/squall.gemspec +25 -62
  90. metadata +224 -42
  91. data/.document +0 -5
  92. data/README.rdoc +0 -17
  93. data/VERSION.yml +0 -5
  94. data/lib/squall/client.rb +0 -87
  95. data/test/fixtures/virtual_machines.json +0 -1
  96. data/test/fixtures/virtual_machines_1.json +0 -1
  97. data/test/helper.rb +0 -31
  98. data/test/test_client.rb +0 -152
  99. data/test/test_squall.rb +0 -12
  100. data/test/test_virtual_machine.rb +0 -98
@@ -0,0 +1,40 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://user:pass@www.example.com:80/permissions.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic WHAT
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ etag:
20
+ - "\"731a1bb19aa90d4121869180de698e8a\""
21
+ x-powered-by:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ x-runtime:
26
+ - "10.386393"
27
+ server:
28
+ - Apache/2.2.3 (CentOS)
29
+ date:
30
+ - Fri, 15 Apr 2011 19:32:51 GMT
31
+ set-cookie:
32
+ - _onapp_session=WHAT; path=/; HttpOnly
33
+ status:
34
+ - "200"
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ transfer-encoding:
38
+ - chunked
39
+ body: "[{\"permission\":{\"label\":\"Any action on virtual machines\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":1,\"identifier\":\"virtual_machines\"}},{\"permission\":{\"label\":\"See all virtual machines\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":2,\"identifier\":\"virtual_machines.read\"}},{\"permission\":{\"label\":\"See own virtual machines\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":3,\"identifier\":\"virtual_machines.read.own\"}},{\"permission\":{\"label\":\"Create a new virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":4,\"identifier\":\"virtual_machines.create\"}},{\"permission\":{\"label\":\"Update any virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":5,\"identifier\":\"virtual_machines.update\"}},{\"permission\":{\"label\":\"Update own virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":6,\"identifier\":\"virtual_machines.update.own\"}},{\"permission\":{\"label\":\"Destroy any virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":7,\"identifier\":\"virtual_machines.delete\"}},{\"permission\":{\"label\":\"Destroy own virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":8,\"identifier\":\"virtual_machines.delete.own\"}},{\"permission\":{\"label\":\"Console to any virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":9,\"identifier\":\"virtual_machines.console\"}},{\"permission\":{\"label\":\"Console to own virtual machine\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":10,\"identifier\":\"virtual_machines.console.own\"}},{\"permission\":{\"label\":\"Any action on users\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":11,\"identifier\":\"users\"}},{\"permission\":{\"label\":\"See all users\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":12,\"identifier\":\"users.read\"}},{\"permission\":{\"label\":\"See own users\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":13,\"identifier\":\"users.read.own\"}},{\"permission\":{\"label\":\"Create a new user\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":14,\"identifier\":\"users.create\"}},{\"permission\":{\"label\":\"Update any user\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":15,\"identifier\":\"users.update\"}},{\"permission\":{\"label\":\"Update own user\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":16,\"identifier\":\"users.update.own\"}},{\"permission\":{\"label\":\"Destroy any user\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":17,\"identifier\":\"users.delete\"}},{\"permission\":{\"label\":\"Destroy own user\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":18,\"identifier\":\"users.delete.own\"}},{\"permission\":{\"label\":\"Any action on hypervisors\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":19,\"identifier\":\"hypervisors\"}},{\"permission\":{\"label\":\"See all hypervisors\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":20,\"identifier\":\"hypervisors.read\"}},{\"permission\":{\"label\":\"Create a new hypervisor\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":21,\"identifier\":\"hypervisors.create\"}},{\"permission\":{\"label\":\"Update any hypervisor\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":22,\"identifier\":\"hypervisors.update\"}},{\"permission\":{\"label\":\"Destroy any hypervisor\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":23,\"identifier\":\"hypervisors.delete\"}},{\"permission\":{\"label\":\"Any action on disks\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":24,\"identifier\":\"disks\"}},{\"permission\":{\"label\":\"See all disks\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":25,\"identifier\":\"disks.read\"}},{\"permission\":{\"label\":\"See own disks\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":26,\"identifier\":\"disks.read.own\"}},{\"permission\":{\"label\":\"Create a new disk\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":27,\"identifier\":\"disks.create\"}},{\"permission\":{\"label\":\"Update any disk\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":28,\"identifier\":\"disks.update\"}},{\"permission\":{\"label\":\"Update own disk\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":29,\"identifier\":\"disks.update.own\"}},{\"permission\":{\"label\":\"Destroy any disk\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":30,\"identifier\":\"disks.delete\"}},{\"permission\":{\"label\":\"Destroy own disk\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":31,\"identifier\":\"disks.delete.own\"}},{\"permission\":{\"label\":\"Any action on templates\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":32,\"identifier\":\"templates\"}},{\"permission\":{\"label\":\"See all templates\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":33,\"identifier\":\"templates.read\"}},{\"permission\":{\"label\":\"See own templates\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":34,\"identifier\":\"templates.read.own\"}},{\"permission\":{\"label\":\"Create a new template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":35,\"identifier\":\"templates.create\"}},{\"permission\":{\"label\":\"Update any template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":36,\"identifier\":\"templates.update\"}},{\"permission\":{\"label\":\"Update own template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":37,\"identifier\":\"templates.update.own\"}},{\"permission\":{\"label\":\"Destroy any template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":38,\"identifier\":\"templates.delete\"}},{\"permission\":{\"label\":\"Destroy own template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":39,\"identifier\":\"templates.delete.own\"}},{\"permission\":{\"label\":\"Make any template public\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":40,\"identifier\":\"templates.make_public\"}},{\"permission\":{\"label\":\"Make own template public\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":41,\"identifier\":\"templates.make_public.own\"}},{\"permission\":{\"label\":\"Create and Manage Templates\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":42,\"identifier\":\"templates.manage.own\"}},{\"permission\":{\"label\":\"Manage Global Templates\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":43,\"identifier\":\"templates.manage.public\"}},{\"permission\":{\"label\":\"Any action on backups\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":44,\"identifier\":\"backups\"}},{\"permission\":{\"label\":\"See all backups\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":45,\"identifier\":\"backups.read\"}},{\"permission\":{\"label\":\"See own backups\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":46,\"identifier\":\"backups.read.own\"}},{\"permission\":{\"label\":\"Create a new backup\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":47,\"identifier\":\"backups.create\"}},{\"permission\":{\"label\":\"Create an own backup\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":48,\"identifier\":\"backups.create.own\"}},{\"permission\":{\"label\":\"Update any backup\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":49,\"identifier\":\"backups.update\"}},{\"permission\":{\"label\":\"Update own backup\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":50,\"identifier\":\"backups.update.own\"}},{\"permission\":{\"label\":\"Destroy any backup\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":51,\"identifier\":\"backups.delete\"}},{\"permission\":{\"label\":\"Destroy own backup\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":52,\"identifier\":\"backups.delete.own\"}},{\"permission\":{\"label\":\"Convert any backup to template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":53,\"identifier\":\"backups.convert\"}},{\"permission\":{\"label\":\"Convert own backup to template\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":54,\"identifier\":\"backups.convert.own\"}},{\"permission\":{\"label\":\"Any action on data_stores\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":55,\"identifier\":\"data_stores\"}},{\"permission\":{\"label\":\"See all data_stores\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":56,\"identifier\":\"data_stores.read\"}},{\"permission\":{\"label\":\"Create a new data_store\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":57,\"identifier\":\"data_stores.create\"}},{\"permission\":{\"label\":\"Update any data_store\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":58,\"identifier\":\"data_stores.update\"}},{\"permission\":{\"label\":\"Destroy any data_store\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":59,\"identifier\":\"data_stores.delete\"}},{\"permission\":{\"label\":\"Any action on permissions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":60,\"identifier\":\"permissions\"}},{\"permission\":{\"label\":\"See all permissions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":61,\"identifier\":\"permissions.read\"}},{\"permission\":{\"label\":\"Create a new permission\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":62,\"identifier\":\"permissions.create\"}},{\"permission\":{\"label\":\"Update any permission\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":63,\"identifier\":\"permissions.update\"}},{\"permission\":{\"label\":\"Destroy any permission\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":64,\"identifier\":\"permissions.delete\"}},{\"permission\":{\"label\":\"Any action on networks\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":65,\"identifier\":\"networks\"}},{\"permission\":{\"label\":\"See all networks\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":66,\"identifier\":\"networks.read\"}},{\"permission\":{\"label\":\"Create a new network\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":67,\"identifier\":\"networks.create\"}},{\"permission\":{\"label\":\"Update any network\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":68,\"identifier\":\"networks.update\"}},{\"permission\":{\"label\":\"Destroy any network\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":69,\"identifier\":\"networks.delete\"}},{\"permission\":{\"label\":\"Any action on ip addresses\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":70,\"identifier\":\"ip_addresses\"}},{\"permission\":{\"label\":\"See all ip addresses\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":71,\"identifier\":\"ip_addresses.read\"}},{\"permission\":{\"label\":\"Create a new ip address\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":72,\"identifier\":\"ip_addresses.create\"}},{\"permission\":{\"label\":\"Update any ip address settings\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":73,\"identifier\":\"ip_addresses.update\"}},{\"permission\":{\"label\":\"Destroy any ip address\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":74,\"identifier\":\"ip_addresses.delete\"}},{\"permission\":{\"label\":\"Any action on nameservers\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":75,\"identifier\":\"nameservers\"}},{\"permission\":{\"label\":\"See all nameservers\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":76,\"identifier\":\"nameservers.read\"}},{\"permission\":{\"label\":\"Create a new nameserver\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":77,\"identifier\":\"nameservers.create\"}},{\"permission\":{\"label\":\"Update any nameserver settings\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":78,\"identifier\":\"nameservers.update\"}},{\"permission\":{\"label\":\"Destroy any nameserver\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":79,\"identifier\":\"nameservers.delete\"}},{\"permission\":{\"label\":\"Any power action on virtual machines\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":80,\"identifier\":\"virtual_machines.power\"}},{\"permission\":{\"label\":\"Any power action on own virtual machines\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":81,\"identifier\":\"virtual_machines.power.own\"}},{\"permission\":{\"label\":\"Any action on transactions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":82,\"identifier\":\"transactions\"}},{\"permission\":{\"label\":\"See details of any transaction\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":83,\"identifier\":\"transactions.read\"}},{\"permission\":{\"label\":\"See details of own transaction\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":84,\"identifier\":\"transactions.read.own\"}},{\"permission\":{\"label\":\"Any action on resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":85,\"identifier\":\"resource_limits\"}},{\"permission\":{\"label\":\"See all resource limits\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":86,\"identifier\":\"resource_limits.read\"}},{\"permission\":{\"label\":\"Create a new resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":87,\"identifier\":\"resource_limits.create\"}},{\"permission\":{\"label\":\"Update any resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":88,\"identifier\":\"resource_limits.update\"}},{\"permission\":{\"label\":\"Destroy any resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":89,\"identifier\":\"resource_limits.delete\"}},{\"permission\":{\"label\":\"Unlock any virtual machine\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":90,\"identifier\":\"virtual_machines.unlock\"}},{\"permission\":{\"label\":\"Any action on Roles\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":91,\"identifier\":\"roles\"}},{\"permission\":{\"label\":\"See all Roles\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":92,\"identifier\":\"roles.read\"}},{\"permission\":{\"label\":\"Create a new Role\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":93,\"identifier\":\"roles.create\"}},{\"permission\":{\"label\":\"Update any Role\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":94,\"identifier\":\"roles.update\"}},{\"permission\":{\"label\":\"Destroy any Role\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":95,\"identifier\":\"roles.delete\"}},{\"permission\":{\"label\":\"Any action on groups\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":96,\"identifier\":\"groups\"}},{\"permission\":{\"label\":\"See all groups\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":97,\"identifier\":\"groups.read\"}},{\"permission\":{\"label\":\"Create a new group\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":98,\"identifier\":\"groups.create\"}},{\"permission\":{\"label\":\"Update any group\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":99,\"identifier\":\"groups.update\"}},{\"permission\":{\"label\":\"Destroy any group\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":100,\"identifier\":\"groups.delete\"}},{\"permission\":{\"label\":\"Any action on payments\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":101,\"identifier\":\"payments\"}},{\"permission\":{\"label\":\"See all payments\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":102,\"identifier\":\"payments.read\"}},{\"permission\":{\"label\":\"Create a new payment\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":103,\"identifier\":\"payments.create\"}},{\"permission\":{\"label\":\"Update any payment\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":104,\"identifier\":\"payments.update\"}},{\"permission\":{\"label\":\"Destroy any payment\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":105,\"identifier\":\"payments.delete\"}},{\"permission\":{\"label\":\"See own payments\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":106,\"identifier\":\"payments.read.own\"}},{\"permission\":{\"label\":\"Any action on Settings\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":107,\"identifier\":\"settings\"}},{\"permission\":{\"label\":\"See read Settings\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":108,\"identifier\":\"settings.read\"}},{\"permission\":{\"label\":\"Update Settings\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":109,\"identifier\":\"settings.update\"}},{\"permission\":{\"label\":\"See Alerts\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":110,\"identifier\":\"dashboard.alerts\"}},{\"permission\":{\"label\":\"Any action Sysuser Tools\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":111,\"identifier\":\"sysuser_tools.read\"}},{\"permission\":{\"label\":\"Send Support requests\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":113,\"identifier\":\"help.read\"}},{\"permission\":{\"label\":\"See own resource limits\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":114,\"identifier\":\"resource_limits.read.own\"}},{\"permission\":{\"label\":\"Full access to Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":116,\"identifier\":\"vm_stats\"}},{\"permission\":{\"label\":\"See All Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":117,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"See Own Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":118,\"identifier\":\"io_stats.own\"}},{\"permission\":{\"label\":\"See Own Virtual Machine Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":119,\"identifier\":\"vm_stats.read.own\"}},{\"permission\":{\"label\":\"See all public templates\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":120,\"identifier\":\"templates.read.public\"}},{\"permission\":{\"label\":\"See list of all transactions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":121,\"identifier\":\"transactions.list\"}},{\"permission\":{\"label\":\"See list of own transactions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":122,\"identifier\":\"transactions.list.own\"}},{\"permission\":{\"label\":\"See Global Statistic\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":123,\"identifier\":\"dashboard.global_stats\"}},{\"permission\":{\"label\":\"All actions on Dashboard\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":124,\"identifier\":\"dashboard\"}},{\"permission\":{\"label\":\"All actions on Sysuser Tools\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":125,\"identifier\":\"sysuser_tools\"}},{\"permission\":{\"label\":\"All actions on Help\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":126,\"identifier\":\"help\"}},{\"permission\":{\"label\":\"Any action on schedules\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":127,\"identifier\":\"schedules\"}},{\"permission\":{\"label\":\"See all schedules\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":128,\"identifier\":\"schedules.read\"}},{\"permission\":{\"label\":\"See own schedules\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":129,\"identifier\":\"schedules.read.own\"}},{\"permission\":{\"label\":\"Create a new schedule\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":130,\"identifier\":\"schedules.create\"}},{\"permission\":{\"label\":\"Update any schedule\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":131,\"identifier\":\"schedules.update\"}},{\"permission\":{\"label\":\"Update own schedule\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":132,\"identifier\":\"schedules.update.own\"}},{\"permission\":{\"label\":\"Destroy any schedule\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":133,\"identifier\":\"schedules.delete\"}},{\"permission\":{\"label\":\"Destroy own schedule\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":134,\"identifier\":\"schedules.delete.own\"}},{\"permission\":{\"label\":\"Delete all transactions from log\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":135,\"identifier\":\"transactions.delete\"}},{\"permission\":{\"label\":\"Delete own transactions from logs\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":136,\"identifier\":\"transactions.delete.own\"}},{\"permission\":{\"label\":\"Any action on schedule logs\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":137,\"identifier\":\"schedule_logs\"}},{\"permission\":{\"label\":\"See all schedule logs\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":138,\"identifier\":\"schedule_logs.read\"}},{\"permission\":{\"label\":\"See own schedule logs\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":139,\"identifier\":\"schedule_logs.read.own\"}},{\"permission\":{\"label\":\"Create a new schedule log\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":140,\"identifier\":\"schedule_logs.create\"}},{\"permission\":{\"label\":\"Update any schedule log\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":141,\"identifier\":\"schedule_logs.update\"}},{\"permission\":{\"label\":\"Destroy any schedule log\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":142,\"identifier\":\"schedule_logs.delete\"}},{\"permission\":{\"label\":\"Migrate any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":143,\"identifier\":\"virtual_machines.migrate\"}},{\"permission\":{\"label\":\"Migrate own virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":144,\"identifier\":\"virtual_machines.migrate.own\"}},{\"permission\":{\"label\":\"Reboot any hypervisor\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":145,\"identifier\":\"hypervisors.reboot\"}},{\"permission\":{\"label\":\"All actions on virtual machine's IP addresses\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":146,\"identifier\":\"ip_address_joins\"}},{\"permission\":{\"label\":\"Add IP address to any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":147,\"identifier\":\"ip_address_joins.create\"}},{\"permission\":{\"label\":\"Add IP address to own virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":148,\"identifier\":\"ip_address_joins.create.own\"}},{\"permission\":{\"label\":\"See IP addresses assigned to any virtual machines\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":149,\"identifier\":\"ip_address_joins.read\"}},{\"permission\":{\"label\":\"See IP addresses assigned to own virtual machines\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":150,\"identifier\":\"ip_address_joins.read.own\"}},{\"permission\":{\"label\":\"Remove IP address from anyvirtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":151,\"identifier\":\"ip_address_joins.delete\"}},{\"permission\":{\"label\":\"Remove IP address from own virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":152,\"identifier\":\"ip_address_joins.delete.own\"}},{\"permission\":{\"label\":\"Reset root password to any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":153,\"identifier\":\"virtual_machines.reset_root_password\"}},{\"permission\":{\"label\":\"Reset root password to own virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":154,\"identifier\":\"virtual_machines.reset_root_password.own\"}},{\"permission\":{\"label\":\"Unlock any disk\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":155,\"identifier\":\"disks.unlock\"}},{\"permission\":{\"label\":\"Any action on log items\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":156,\"identifier\":\"log_items\"}},{\"permission\":{\"label\":\"See details of any log item\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":157,\"identifier\":\"log_items.read\"}},{\"permission\":{\"label\":\"See details of own log item\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":158,\"identifier\":\"log_items.read.own\"}},{\"permission\":{\"label\":\"See list of all log items\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":159,\"identifier\":\"log_items.list\"}},{\"permission\":{\"label\":\"See list of own log items\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":160,\"identifier\":\"log_items.list.own\"}},{\"permission\":{\"label\":\"Delete any log item\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":161,\"identifier\":\"log_items.delete\"}},{\"permission\":{\"label\":\"Delete own log item\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":162,\"identifier\":\"log_items.delete.own\"}},{\"permission\":{\"label\":\"Autobackup for any disk\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":163,\"identifier\":\"disks.autobackup\"}},{\"permission\":{\"label\":\"Autobackup for own disk\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":164,\"identifier\":\"disks.autobackup.own\"}},{\"permission\":{\"label\":\"All actions on datastores on Hypervisor\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":165,\"identifier\":\"data_store_joins\"}},{\"permission\":{\"label\":\"Add Data Store to any Hypervisor\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":166,\"identifier\":\"data_store_joins.create\"}},{\"permission\":{\"label\":\"Remove Data Store from any Hypervisor\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":168,\"identifier\":\"data_store_joins.delete\"}},{\"permission\":{\"label\":\"Any action on autobackup templates\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":169,\"identifier\":\"autobackup_templates\"}},{\"permission\":{\"label\":\"Update any autobackup template\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":170,\"identifier\":\"autobackup_templates.update\"}},{\"permission\":{\"label\":\"See all autobackup templates\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":171,\"identifier\":\"autobackup_templates.read\"}},{\"permission\":{\"label\":\"Change an owner of any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":172,\"identifier\":\"virtual_machines.change_owner\"}},{\"permission\":{\"label\":\"Any action on data store zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":173,\"identifier\":\"data_store_zones\"}},{\"permission\":{\"label\":\"See details of any data store zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":174,\"identifier\":\"data_store_zones.read\"}},{\"permission\":{\"label\":\"See list of all data store zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":175,\"identifier\":\"data_store_zones.list\"}},{\"permission\":{\"label\":\"Create a new data store zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":176,\"identifier\":\"data_store_zones.create\"}},{\"permission\":{\"label\":\"Update any data store zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":177,\"identifier\":\"data_store_zones.update\"}},{\"permission\":{\"label\":\"Delete any data store zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":178,\"identifier\":\"data_store_zones.delete\"}},{\"permission\":{\"label\":\"Any action on network zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":179,\"identifier\":\"network_zones\"}},{\"permission\":{\"label\":\"See details of any network zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":180,\"identifier\":\"network_zones.read\"}},{\"permission\":{\"label\":\"See list of all network zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":181,\"identifier\":\"network_zones.list\"}},{\"permission\":{\"label\":\"Create a new network zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":182,\"identifier\":\"network_zones.create\"}},{\"permission\":{\"label\":\"Update any network zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":183,\"identifier\":\"network_zones.update\"}},{\"permission\":{\"label\":\"Delete any network zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":184,\"identifier\":\"network_zones.delete\"}},{\"permission\":{\"label\":\"Any action on billing plans\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":185,\"identifier\":\"billing_plans\"}},{\"permission\":{\"label\":\"See details of any billing plan\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":186,\"identifier\":\"billing_plans.read\"}},{\"permission\":{\"label\":\"See list of all billing plans\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":187,\"identifier\":\"billing_plans.list\"}},{\"permission\":{\"label\":\"Create a new billing plan\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":188,\"identifier\":\"billing_plans.create\"}},{\"permission\":{\"label\":\"Update any billing plan\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":189,\"identifier\":\"billing_plans.update\"}},{\"permission\":{\"label\":\"Delete any billing plan\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":190,\"identifier\":\"billing_plans.delete\"}},{\"permission\":{\"label\":\"Any action on resources\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":191,\"identifier\":\"base_resources\"}},{\"permission\":{\"label\":\"See details of any resource\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":192,\"identifier\":\"base_resources.read\"}},{\"permission\":{\"label\":\"See list of all resources\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":193,\"identifier\":\"base_resources.list\"}},{\"permission\":{\"label\":\"Create a new resource\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":194,\"identifier\":\"base_resources.create\"}},{\"permission\":{\"label\":\"Update any resource\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":195,\"identifier\":\"base_resources.update\"}},{\"permission\":{\"label\":\"Delete any resource\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":196,\"identifier\":\"base_resources.delete\"}},{\"permission\":{\"label\":\"User can Login AS any user.\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":197,\"identifier\":\"users.login_as\"}},{\"permission\":{\"label\":\"Any action on isos\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":198,\"identifier\":\"isos\"}},{\"permission\":{\"label\":\"See all isos\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":199,\"identifier\":\"isos.read\"}},{\"permission\":{\"label\":\"See own isos\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":200,\"identifier\":\"isos.read.own\"}},{\"permission\":{\"label\":\"Create a new template\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":201,\"identifier\":\"isos.create\"}},{\"permission\":{\"label\":\"Update any template\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":202,\"identifier\":\"isos.update\"}},{\"permission\":{\"label\":\"Update own template\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":203,\"identifier\":\"isos.update.own\"}},{\"permission\":{\"label\":\"Destroy any template\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":204,\"identifier\":\"isos.delete\"}},{\"permission\":{\"label\":\"Destroy own template\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":205,\"identifier\":\"isos.delete.own\"}},{\"permission\":{\"label\":\"Make any iso public\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":206,\"identifier\":\"isos.make_public\"}},{\"permission\":{\"label\":\"Make own iso public\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":207,\"identifier\":\"isos.make_public.own\"}},{\"permission\":{\"label\":\"Create and Manage ISOs\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":208,\"identifier\":\"isos.manage.own\"}},{\"permission\":{\"label\":\"Manage Global ISOs\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":209,\"identifier\":\"isos.manage.public\"}},{\"permission\":{\"label\":\"Read all public ISOs\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":210,\"identifier\":\"isos.read.public\"}},{\"permission\":{\"label\":\"Any action on hypervisor zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":211,\"identifier\":\"hypervisor_zones\"}},{\"permission\":{\"label\":\"See details of any hypervisor zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":212,\"identifier\":\"hypervisor_zones.read\"}},{\"permission\":{\"label\":\"See list of all hypervisor zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":213,\"identifier\":\"hypervisor_zones.list\"}},{\"permission\":{\"label\":\"Create a new hypervisor zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":214,\"identifier\":\"hypervisor_zones.create\"}},{\"permission\":{\"label\":\"Update any hypervisor zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":215,\"identifier\":\"hypervisor_zones.update\"}},{\"permission\":{\"label\":\"Delete any hypervisor zone\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":216,\"identifier\":\"hypervisor_zones.delete\"}},{\"permission\":{\"label\":\"Any action on mounting ISO\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":217,\"identifier\":\"iso_joins\"}},{\"permission\":{\"label\":\"See all mount\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":218,\"identifier\":\"iso_joins.read\"}},{\"permission\":{\"label\":\"See own mounted ISOs\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":219,\"identifier\":\"iso_joins.read.own\"}},{\"permission\":{\"label\":\"Mount any ISO\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":220,\"identifier\":\"iso_joins.create\"}},{\"permission\":{\"label\":\"Mount own ISO\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":221,\"identifier\":\"iso_joins.create.own\"}},{\"permission\":{\"label\":\"Unmount any mounted ISOs\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":222,\"identifier\":\"iso_joins.delete\"}},{\"permission\":{\"label\":\"Umount own mounted ISOs\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":223,\"identifier\":\"iso_joins.delete.own\"}},{\"permission\":{\"label\":\"Change Suspended status for Virtual Machine\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":224,\"identifier\":\"virtual_machines.suspend\"}},{\"permission\":{\"label\":\"Show Hypervisor Zones on VirtualMachine creation\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":225,\"identifier\":\"hypervisor_zones.read_vm_creation\"}},{\"permission\":{\"label\":\"Show Hypervisors on VirtualMachine creation.\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":226,\"identifier\":\"hypervisors.read_vm_creation\"}},{\"permission\":{\"label\":\"See all IO Statistics\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":227,\"identifier\":\"io_stats.read\"}},{\"permission\":{\"label\":\"See own IO Statistics\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":228,\"identifier\":\"io_stats.read.own\"}},{\"permission\":{\"label\":\"See own billing plan\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":229,\"identifier\":\"billing_plans.read.own\"}},{\"permission\":{\"label\":\"See own base resources\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":230,\"identifier\":\"base_resources.read.own\"}},{\"permission\":{\"label\":\"See All Statistics\",\"created_at\":\"2011-04-13T14:37:45Z\",\"updated_at\":\"2011-04-13T14:37:45Z\",\"id\":231,\"identifier\":\"vm_stats.read\"}},{\"permission\":{\"label\":\"See License Details\",\"created_at\":\"2011-04-13T14:37:45Z\",\"updated_at\":\"2011-04-13T14:37:45Z\",\"id\":232,\"identifier\":\"dashboard.licensing\"}}]"
40
+ http_version: "1.1"
@@ -0,0 +1,77 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://user:pass@www.example.com:80/roles/5.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic WHAT
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 404
15
+ message: Not Found
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ x-powered-by:
20
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ date:
24
+ - Thu, 14 Apr 2011 18:37:20 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ x-runtime:
28
+ - "0.009226"
29
+ set-cookie:
30
+ - _onapp_session=WHAT; path=/; HttpOnly
31
+ cache-control:
32
+ - no-cache
33
+ status:
34
+ - "404"
35
+ transfer-encoding:
36
+ - chunked
37
+ body: "{\"error\":\"Resource not found\"}"
38
+ http_version: "1.1"
39
+ - !ruby/struct:VCR::HTTPInteraction
40
+ request: !ruby/struct:VCR::Request
41
+ method: :get
42
+ uri: http://user:pass@www.example.com:80/roles/1.json
43
+ body:
44
+ headers:
45
+ content-type:
46
+ - application/json
47
+ authorization:
48
+ - Basic WHAT
49
+ response: !ruby/struct:VCR::Response
50
+ status: !ruby/struct:VCR::ResponseStatus
51
+ code: 200
52
+ message: OK
53
+ headers:
54
+ x-ua-compatible:
55
+ - IE=Edge,chrome=1
56
+ etag:
57
+ - "\"5a32725d765a9442c19ce21925c3c5db\""
58
+ x-powered-by:
59
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
60
+ content-type:
61
+ - application/json; charset=utf-8
62
+ x-runtime:
63
+ - "0.029689"
64
+ server:
65
+ - Apache/2.2.3 (CentOS)
66
+ date:
67
+ - Thu, 14 Apr 2011 18:37:20 GMT
68
+ set-cookie:
69
+ - _onapp_session=WHAT; path=/; HttpOnly
70
+ status:
71
+ - "200"
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
+ transfer-encoding:
75
+ - chunked
76
+ body: "{\"role\":{\"label\":\"Administrator\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":1,\"permissions\":[{\"permission\":{\"label\":\"Any action on virtual machines\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":1,\"identifier\":\"virtual_machines\"}},{\"permission\":{\"label\":\"Any action on users\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":11,\"identifier\":\"users\"}},{\"permission\":{\"label\":\"Any action on hypervisors\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":19,\"identifier\":\"hypervisors\"}},{\"permission\":{\"label\":\"Any action on disks\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":24,\"identifier\":\"disks\"}},{\"permission\":{\"label\":\"Any action on templates\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":32,\"identifier\":\"templates\"}},{\"permission\":{\"label\":\"Any action on backups\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":44,\"identifier\":\"backups\"}},{\"permission\":{\"label\":\"Any action on data_stores\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":55,\"identifier\":\"data_stores\"}},{\"permission\":{\"label\":\"Any action on permissions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":60,\"identifier\":\"permissions\"}},{\"permission\":{\"label\":\"Any action on networks\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":65,\"identifier\":\"networks\"}},{\"permission\":{\"label\":\"Any action on ip addresses\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":70,\"identifier\":\"ip_addresses\"}},{\"permission\":{\"label\":\"Any action on nameservers\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":75,\"identifier\":\"nameservers\"}},{\"permission\":{\"label\":\"Any action on transactions\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":82,\"identifier\":\"transactions\"}},{\"permission\":{\"label\":\"Any action on resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":85,\"identifier\":\"resource_limits\"}},{\"permission\":{\"label\":\"Create a new resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":87,\"identifier\":\"resource_limits.create\"}},{\"permission\":{\"label\":\"Destroy any resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":89,\"identifier\":\"resource_limits.delete\"}},{\"permission\":{\"label\":\"See all resource limits\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":86,\"identifier\":\"resource_limits.read\"}},{\"permission\":{\"label\":\"Update any resource limit\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":88,\"identifier\":\"resource_limits.update\"}},{\"permission\":{\"label\":\"Unlock any virtual machine\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":90,\"identifier\":\"virtual_machines.unlock\"}},{\"permission\":{\"label\":\"Any action on Roles\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":91,\"identifier\":\"roles\"}},{\"permission\":{\"label\":\"Any action on groups\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":96,\"identifier\":\"groups\"}},{\"permission\":{\"label\":\"Any action on payments\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":101,\"identifier\":\"payments\"}},{\"permission\":{\"label\":\"Any action on Settings\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":107,\"identifier\":\"settings\"}},{\"permission\":{\"label\":\"See Alerts\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":110,\"identifier\":\"dashboard.alerts\"}},{\"permission\":{\"label\":\"Any action Sysuser Tools\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":111,\"identifier\":\"sysuser_tools.read\"}},{\"permission\":{\"label\":\"Send Support requests\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":113,\"identifier\":\"help.read\"}},{\"permission\":{\"label\":\"Full access to Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":116,\"identifier\":\"vm_stats\"}},{\"permission\":{\"label\":\"See All Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":117,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"See Global Statistic\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":123,\"identifier\":\"dashboard.global_stats\"}},{\"permission\":{\"label\":\"All actions on Dashboard\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":124,\"identifier\":\"dashboard\"}},{\"permission\":{\"label\":\"All actions on Sysuser Tools\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":125,\"identifier\":\"sysuser_tools\"}},{\"permission\":{\"label\":\"All actions on Help\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":126,\"identifier\":\"help\"}},{\"permission\":{\"label\":\"Any action on schedules\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":127,\"identifier\":\"schedules\"}},{\"permission\":{\"label\":\"Delete all transactions from log\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":135,\"identifier\":\"transactions.delete\"}},{\"permission\":{\"label\":\"Any action on schedule logs\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":137,\"identifier\":\"schedule_logs\"}},{\"permission\":{\"label\":\"Migrate any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":143,\"identifier\":\"virtual_machines.migrate\"}},{\"permission\":{\"label\":\"Reboot any hypervisor\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":145,\"identifier\":\"hypervisors.reboot\"}},{\"permission\":{\"label\":\"All actions on virtual machine's IP addresses\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":146,\"identifier\":\"ip_address_joins\"}},{\"permission\":{\"label\":\"Reset root password to any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":153,\"identifier\":\"virtual_machines.reset_root_password\"}},{\"permission\":{\"label\":\"Unlock any disk\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":155,\"identifier\":\"disks.unlock\"}},{\"permission\":{\"label\":\"Any action on log items\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":156,\"identifier\":\"log_items\"}},{\"permission\":{\"label\":\"Autobackup for any disk\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":163,\"identifier\":\"disks.autobackup\"}},{\"permission\":{\"label\":\"All actions on datastores on Hypervisor\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":165,\"identifier\":\"data_store_joins\"}},{\"permission\":{\"label\":\"Any action on autobackup templates\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":169,\"identifier\":\"autobackup_templates\"}},{\"permission\":{\"label\":\"Update any autobackup template\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":170,\"identifier\":\"autobackup_templates.update\"}},{\"permission\":{\"label\":\"See all autobackup templates\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":171,\"identifier\":\"autobackup_templates.read\"}},{\"permission\":{\"label\":\"Change an owner of any virtual machine\",\"created_at\":\"2011-04-13T14:37:40Z\",\"updated_at\":\"2011-04-13T14:37:40Z\",\"id\":172,\"identifier\":\"virtual_machines.change_owner\"}},{\"permission\":{\"label\":\"Any action on data store zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":173,\"identifier\":\"data_store_zones\"}},{\"permission\":{\"label\":\"Any action on network zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":179,\"identifier\":\"network_zones\"}},{\"permission\":{\"label\":\"Any action on billing plans\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":185,\"identifier\":\"billing_plans\"}},{\"permission\":{\"label\":\"Any action on resources\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":191,\"identifier\":\"base_resources\"}},{\"permission\":{\"label\":\"User can Login AS any user.\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":197,\"identifier\":\"users.login_as\"}},{\"permission\":{\"label\":\"Any action on isos\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":198,\"identifier\":\"isos\"}},{\"permission\":{\"label\":\"Any action on hypervisor zones\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":211,\"identifier\":\"hypervisor_zones\"}},{\"permission\":{\"label\":\"Any action on mounting ISO\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":217,\"identifier\":\"iso_joins\"}},{\"permission\":{\"label\":\"Change Suspended status for Virtual Machine\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":224,\"identifier\":\"virtual_machines.suspend\"}},{\"permission\":{\"label\":\"Show Hypervisor Zones on VirtualMachine creation\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":225,\"identifier\":\"hypervisor_zones.read_vm_creation\"}},{\"permission\":{\"label\":\"Show Hypervisors on VirtualMachine creation.\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":226,\"identifier\":\"hypervisors.read_vm_creation\"}},{\"permission\":{\"label\":\"See All Statistics\",\"created_at\":\"2011-04-13T14:37:39Z\",\"updated_at\":\"2011-04-13T14:37:39Z\",\"id\":117,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"See all IO Statistics\",\"created_at\":\"2011-04-13T14:37:41Z\",\"updated_at\":\"2011-04-13T14:37:41Z\",\"id\":227,\"identifier\":\"io_stats.read\"}},{\"permission\":{\"label\":\"See All Statistics\",\"created_at\":\"2011-04-13T14:37:45Z\",\"updated_at\":\"2011-04-13T14:37:45Z\",\"id\":231,\"identifier\":\"vm_stats.read\"}},{\"permission\":{\"label\":\"See License Details\",\"created_at\":\"2011-04-13T14:37:45Z\",\"updated_at\":\"2011-04-13T14:37:45Z\",\"id\":232,\"identifier\":\"dashboard.licensing\"}}],\"identifier\":\"user\"}}"
77
+ http_version: "1.1"
@@ -0,0 +1,40 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://user:pass@www.example.com:80/usage_statistics.json?
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic WHAT
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ etag:
20
+ - "\"9606792d4817ad0122726aa62e0a9bd2\""
21
+ x-powered-by:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ x-runtime:
26
+ - "0.030343"
27
+ server:
28
+ - Apache/2.2.3 (CentOS)
29
+ date:
30
+ - Fri, 29 Apr 2011 17:22:31 GMT
31
+ set-cookie:
32
+ - _onapp_session=WHAT; path=/; HttpOnly
33
+ status:
34
+ - "200"
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ transfer-encoding:
38
+ - chunked
39
+ body: "[{\"vm_hourly_stat\":{\"created_at\":\"2011-04-29T17:00:06Z\",\"cost\":0.0,\"updated_at\":\"2011-04-29T17:00:06Z\",\"stat_time\":\"2011-04-29T17:00:00Z\",\"id\":1,\"user_id\":2,\"vm_billing_stat_id\":3,\"virtual_machine_id\":2}}]"
40
+ http_version: "1.1"
@@ -0,0 +1,40 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://user:pass@www.example.com:80/templates.json?remote_template_id=404
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic WHAT
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ etag:
20
+ - "\"4c0d1111142b38d81129a0b6f51e87e6\""
21
+ x-powered-by:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ x-runtime:
26
+ - "5.851447"
27
+ server:
28
+ - Apache/2.2.3 (CentOS)
29
+ date:
30
+ - Tue, 19 Apr 2011 15:04:49 GMT
31
+ set-cookie:
32
+ - _onapp_session=WHAT; path=/; HttpOnly
33
+ status:
34
+ - "200"
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ transfer-encoding:
38
+ - chunked
39
+ body: "[{\"image_template\":{\"label\":\"CentOS 5.5 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"348e4b17225885109f13686c757c6e0b\",\"file_name\":\"centos-5.5-x64-1.2.tar.gz\",\"id\":1,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":313544,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"CentOS 5.5 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"fb198a5a2b0766bb7ea86750c886807c\",\"file_name\":\"centos-5.5-x86-1.3.tar.gz\",\"id\":2,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":295300,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 5.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"619af85550cc34fad74af8e145bd78c1\",\"file_name\":\"debian-5.0-x64-2.1.tar.gz\",\"id\":3,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":211800,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 5.0 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"3a74f9698528aeb769497032bca4ff6b\",\"file_name\":\"debian-5.0-x86-1.0.tar.gz\",\"id\":4,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":144972,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 6.0.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"bd8aea09f99e6811c47b88369d6e7fb6\",\"file_name\":\"debian-6.0.0-x64-1.1.tar.gz\",\"id\":5,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":173636,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 13 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"b9be9613b664abfb6fb3e2f883a0a4b3\",\"file_name\":\"fedora-13-x64-1.3.tar.gz\",\"id\":6,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":289864,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 13 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"f367c4c9c9f7ca28e76c0d24c5292d7b\",\"file_name\":\"fedora-13-x86-1.3.tar.gz\",\"id\":7,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":278916,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 14 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"7d3cd5c1511b1262be477b138b1c3013\",\"file_name\":\"fedora-14-x64-1.3.tar.gz\",\"id\":8,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":224980,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 14 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"c2ba61f05620719a6838a501a6a0794a\",\"file_name\":\"fedora-14-x86-1.3.tar.gz\",\"id\":9,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":221520,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Gentoo 10.1_2.6.34 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"gentoo\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"4cc4f6933b20a76bc2947245cfd2ad69\",\"file_name\":\"gentoo-10.1_2.6.34-x64-1.1.tar.gz\",\"id\":10,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":248200,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Red Hat Enterprise Linux 5.6 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":false,\"checksum\":\"98639a7c919e41cb8a9bebff5d4889fa\",\"file_name\":\"rhel-5.6-x64-1.0.tar.gz\",\"id\":11,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":false,\"template_size\":203604,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Red Hat Enterprise Linux 6.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":false,\"checksum\":\"d6acbda4bd264ac6087b87f27d1bc5ec\",\"file_name\":\"rhel-6.0-x64-1.2.tar.gz\",\"id\":12,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":false,\"template_size\":261636,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.04 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"d4aae5ac706775eca43849110aa27d26\",\"file_name\":\"ubuntu-10.04-x64-1.3.tar.gz\",\"id\":13,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":259296,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.10 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"bf511e473f44285293fd5dc4b12833e5\",\"file_name\":\"ubuntu-10.10-x64-1.1.tar.gz\",\"id\":14,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":185664,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 8.04 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"ff8d1460c29d6e7cea5554c9fdba9295\",\"file_name\":\"ubuntu-8.04-x64-3.2.tar.gz\",\"id\":15,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":206840,\"user_id\":null,\"version\":\"3.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition R2 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"883cfbbfba5d38a7d261fca56b15c792\",\"file_name\":\"win03_x64_std_r2-ver2.1.img\",\"id\":16,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":5517228,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"d645c366cba0ba542a2cc1aaa938abd9\",\"file_name\":\"win03_x64_std-ver2.1.img\",\"id\":17,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":7403672,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition R2 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"72d64f28d6fb1cf8b7adc8cd2889eb75\",\"file_name\":\"win03_x86_std_r2-ver2.1.img\",\"id\":18,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":5663372,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition R2 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"b6d846754b512fcfbb65914688b0d5c6\",\"file_name\":\"win08_x64_std_r2-ver2.1.img\",\"id\":19,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":8994272,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"7bb5c9b21b4202777db86afa7cbffdf3\",\"file_name\":\"win08_x64_std-ver2.1.img\",\"id\":20,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":12796572,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"af1efbe84379a618a3679d42c0454a23\",\"file_name\":\"win08_x86_std-ver2.1.img\",\"id\":21,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":8447664,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.10 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"1bd57466a6a852b889afbc37023a17fa\",\"file_name\":\"ubuntu-10.10-x86-1.0.tar.gz\",\"id\":22,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":210128,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}}]"
40
+ http_version: "1.1"
@@ -0,0 +1,40 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://user:pass@www.example.com:80/templates.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic WHAT
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ etag:
20
+ - "\"4c0d1111142b38d81129a0b6f51e87e6\""
21
+ x-powered-by:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ x-runtime:
26
+ - "0.144280"
27
+ server:
28
+ - Apache/2.2.3 (CentOS)
29
+ date:
30
+ - Tue, 19 Apr 2011 14:40:49 GMT
31
+ set-cookie:
32
+ - _onapp_session=WHAT; path=/; HttpOnly
33
+ status:
34
+ - "200"
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ transfer-encoding:
38
+ - chunked
39
+ body: "[{\"image_template\":{\"label\":\"CentOS 5.5 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"348e4b17225885109f13686c757c6e0b\",\"file_name\":\"centos-5.5-x64-1.2.tar.gz\",\"id\":1,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":313544,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"CentOS 5.5 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"fb198a5a2b0766bb7ea86750c886807c\",\"file_name\":\"centos-5.5-x86-1.3.tar.gz\",\"id\":2,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":295300,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 5.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"619af85550cc34fad74af8e145bd78c1\",\"file_name\":\"debian-5.0-x64-2.1.tar.gz\",\"id\":3,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":211800,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 5.0 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"3a74f9698528aeb769497032bca4ff6b\",\"file_name\":\"debian-5.0-x86-1.0.tar.gz\",\"id\":4,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":144972,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 6.0.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"bd8aea09f99e6811c47b88369d6e7fb6\",\"file_name\":\"debian-6.0.0-x64-1.1.tar.gz\",\"id\":5,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":173636,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 13 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"b9be9613b664abfb6fb3e2f883a0a4b3\",\"file_name\":\"fedora-13-x64-1.3.tar.gz\",\"id\":6,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":289864,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 13 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"f367c4c9c9f7ca28e76c0d24c5292d7b\",\"file_name\":\"fedora-13-x86-1.3.tar.gz\",\"id\":7,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":278916,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 14 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"7d3cd5c1511b1262be477b138b1c3013\",\"file_name\":\"fedora-14-x64-1.3.tar.gz\",\"id\":8,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":224980,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 14 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"c2ba61f05620719a6838a501a6a0794a\",\"file_name\":\"fedora-14-x86-1.3.tar.gz\",\"id\":9,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":221520,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Gentoo 10.1_2.6.34 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"gentoo\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"4cc4f6933b20a76bc2947245cfd2ad69\",\"file_name\":\"gentoo-10.1_2.6.34-x64-1.1.tar.gz\",\"id\":10,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":248200,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Red Hat Enterprise Linux 5.6 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":false,\"checksum\":\"98639a7c919e41cb8a9bebff5d4889fa\",\"file_name\":\"rhel-5.6-x64-1.0.tar.gz\",\"id\":11,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":false,\"template_size\":203604,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Red Hat Enterprise Linux 6.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":false,\"checksum\":\"d6acbda4bd264ac6087b87f27d1bc5ec\",\"file_name\":\"rhel-6.0-x64-1.2.tar.gz\",\"id\":12,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":false,\"template_size\":261636,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.04 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"d4aae5ac706775eca43849110aa27d26\",\"file_name\":\"ubuntu-10.04-x64-1.3.tar.gz\",\"id\":13,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":259296,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.10 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"bf511e473f44285293fd5dc4b12833e5\",\"file_name\":\"ubuntu-10.10-x64-1.1.tar.gz\",\"id\":14,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":185664,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 8.04 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"ff8d1460c29d6e7cea5554c9fdba9295\",\"file_name\":\"ubuntu-8.04-x64-3.2.tar.gz\",\"id\":15,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":206840,\"user_id\":null,\"version\":\"3.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition R2 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"883cfbbfba5d38a7d261fca56b15c792\",\"file_name\":\"win03_x64_std_r2-ver2.1.img\",\"id\":16,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":5517228,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"d645c366cba0ba542a2cc1aaa938abd9\",\"file_name\":\"win03_x64_std-ver2.1.img\",\"id\":17,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":7403672,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition R2 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"72d64f28d6fb1cf8b7adc8cd2889eb75\",\"file_name\":\"win03_x86_std_r2-ver2.1.img\",\"id\":18,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":5663372,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition R2 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"b6d846754b512fcfbb65914688b0d5c6\",\"file_name\":\"win08_x64_std_r2-ver2.1.img\",\"id\":19,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":8994272,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"7bb5c9b21b4202777db86afa7cbffdf3\",\"file_name\":\"win08_x64_std-ver2.1.img\",\"id\":20,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":12796572,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"af1efbe84379a618a3679d42c0454a23\",\"file_name\":\"win08_x86_std-ver2.1.img\",\"id\":21,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":8447664,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.10 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"1bd57466a6a852b889afbc37023a17fa\",\"file_name\":\"ubuntu-10.10-x86-1.0.tar.gz\",\"id\":22,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":210128,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}}]"
40
+ http_version: "1.1"
@@ -0,0 +1,77 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://user:pass@www.example.com:80/templates/404/make_public.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic WHAT
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 404
15
+ message: Not Found
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ x-powered-by:
20
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ date:
24
+ - Tue, 19 Apr 2011 14:54:30 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ x-runtime:
28
+ - "1.345163"
29
+ set-cookie:
30
+ - _onapp_session=WHAT; path=/; HttpOnly
31
+ cache-control:
32
+ - no-cache
33
+ status:
34
+ - "404"
35
+ transfer-encoding:
36
+ - chunked
37
+ body: "{\"error\":\"Resource not found\"}"
38
+ http_version: "1.1"
39
+ - !ruby/struct:VCR::HTTPInteraction
40
+ request: !ruby/struct:VCR::Request
41
+ method: :post
42
+ uri: http://user:pass@www.example.com:80/templates/1/make_public.json
43
+ body:
44
+ headers:
45
+ content-type:
46
+ - application/json
47
+ authorization:
48
+ - Basic WHAT
49
+ response: !ruby/struct:VCR::Response
50
+ status: !ruby/struct:VCR::ResponseStatus
51
+ code: 201
52
+ message: Created
53
+ headers:
54
+ x-ua-compatible:
55
+ - IE=Edge,chrome=1
56
+ location:
57
+ - http://www.example.com/templates/1
58
+ x-powered-by:
59
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
60
+ content-type:
61
+ - application/json; charset=utf-8
62
+ x-runtime:
63
+ - "0.206963"
64
+ server:
65
+ - Apache/2.2.3 (CentOS)
66
+ date:
67
+ - Tue, 19 Apr 2011 14:56:38 GMT
68
+ set-cookie:
69
+ - _onapp_session=WHAT; path=/; HttpOnly
70
+ status:
71
+ - "201"
72
+ cache-control:
73
+ - no-cache
74
+ transfer-encoding:
75
+ - chunked
76
+ body: "{\"image_template\":{\"label\":\"CentOS 5.5 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"348e4b17225885109f13686c757c6e0b\",\"file_name\":\"centos-5.5-x64-1.2.tar.gz\",\"id\":1,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":313544,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}}"
77
+ http_version: "1.1"