squall 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. data/.gitignore +3 -0
  2. data/.rbenv-version +1 -0
  3. data/.rspec +1 -1
  4. data/.rvmrc +41 -1
  5. data/.travis.yml +13 -3
  6. data/README.md +122 -27
  7. data/Rakefile +5 -34
  8. data/lib/squall/data_store_zone.rb +58 -0
  9. data/lib/squall/firewall_rule.rb +66 -0
  10. data/lib/squall/hypervisor.rb +63 -11
  11. data/lib/squall/hypervisor_zone.rb +135 -0
  12. data/lib/squall/ip_address.rb +50 -3
  13. data/lib/squall/ip_address_join.rb +46 -0
  14. data/lib/squall/network.rb +21 -4
  15. data/lib/squall/network_zone.rb +73 -0
  16. data/lib/squall/payment.rb +59 -0
  17. data/lib/squall/role.rb +28 -11
  18. data/lib/squall/statistic.rb +3 -3
  19. data/lib/squall/{base.rb → support/base.rb} +8 -4
  20. data/lib/squall/{config.rb → support/config.rb} +4 -0
  21. data/lib/squall/{exception.rb → support/exception.rb} +0 -0
  22. data/lib/squall/{params.rb → support/params.rb} +0 -0
  23. data/lib/squall/support/version.rb +3 -0
  24. data/lib/squall/support/yaml.rb +5 -0
  25. data/lib/squall/template.rb +4 -0
  26. data/lib/squall/transaction.rb +4 -0
  27. data/lib/squall/user.rb +126 -30
  28. data/lib/squall/user_group.rb +56 -0
  29. data/lib/squall/virtual_machine.rb +176 -52
  30. data/lib/squall/whitelist.rb +74 -0
  31. data/lib/squall.rb +21 -12
  32. data/spec/spec_helper.rb +21 -16
  33. data/spec/squall/data_store_zone_spec.rb +97 -0
  34. data/spec/squall/firewall_rule_spec.rb +112 -0
  35. data/spec/squall/hypervisor_spec.rb +101 -48
  36. data/spec/squall/hypervisor_zone_spec.rb +190 -0
  37. data/spec/squall/ip_address_join_spec.rb +67 -0
  38. data/spec/squall/ip_address_spec.rb +68 -6
  39. data/spec/squall/network_spec.rb +0 -1
  40. data/spec/squall/network_zone_spec.rb +147 -0
  41. data/spec/squall/payment_spec.rb +98 -0
  42. data/spec/squall/role_spec.rb +31 -46
  43. data/spec/squall/statistic_spec.rb +7 -9
  44. data/spec/squall/{base_spec.rb → support/base_spec.rb} +5 -7
  45. data/spec/squall/{config_spec.rb → support/config_spec.rb} +0 -0
  46. data/spec/{params_spec.rb → squall/support/params_spec.rb} +0 -0
  47. data/spec/squall/template_spec.rb +0 -1
  48. data/spec/squall/transaction_spec.rb +0 -1
  49. data/spec/squall/user_group_spec.rb +74 -0
  50. data/spec/squall/user_spec.rb +142 -59
  51. data/spec/squall/virtual_machine_spec.rb +179 -67
  52. data/spec/squall/whitelist_spec.rb +113 -0
  53. data/spec/squall_spec.rb +4 -8
  54. data/spec/vcr_cassettes/data_store_zone/create.yml +40 -0
  55. data/spec/vcr_cassettes/data_store_zone/delete.yml +77 -0
  56. data/spec/vcr_cassettes/data_store_zone/edit.yml +77 -0
  57. data/spec/vcr_cassettes/data_store_zone/list.yml +40 -0
  58. data/spec/vcr_cassettes/data_store_zone/show.yml +77 -0
  59. data/spec/vcr_cassettes/firewall_rule/create.yml +75 -0
  60. data/spec/vcr_cassettes/firewall_rule/delete.yml +75 -0
  61. data/spec/vcr_cassettes/firewall_rule/edit.yml +75 -0
  62. data/spec/vcr_cassettes/firewall_rule/list.yml +40 -0
  63. data/spec/vcr_cassettes/hypervisor/add_data_store_join.yml +40 -0
  64. data/spec/vcr_cassettes/hypervisor/add_network_join.yml +40 -0
  65. data/spec/vcr_cassettes/hypervisor/create.yml +7 -44
  66. data/spec/vcr_cassettes/hypervisor/data_store_joins.yml +40 -0
  67. data/spec/vcr_cassettes/hypervisor/delete.yml +11 -11
  68. data/spec/vcr_cassettes/hypervisor/edit.yml +7 -46
  69. data/spec/vcr_cassettes/hypervisor/list.yml +7 -7
  70. data/spec/vcr_cassettes/hypervisor/network_joins.yml +40 -0
  71. data/spec/vcr_cassettes/hypervisor/reboot.yml +13 -13
  72. data/spec/vcr_cassettes/hypervisor/remove_data_store_join.yml +40 -0
  73. data/spec/vcr_cassettes/hypervisor/remove_network_join.yml +40 -0
  74. data/spec/vcr_cassettes/hypervisor/show.yml +13 -13
  75. data/spec/vcr_cassettes/hypervisor_zones/add_data_store_join.yml +40 -0
  76. data/spec/vcr_cassettes/hypervisor_zones/add_network_join.yml +40 -0
  77. data/spec/vcr_cassettes/hypervisor_zones/create.yml +40 -0
  78. data/spec/vcr_cassettes/hypervisor_zones/data_store_joins.yml +40 -0
  79. data/spec/vcr_cassettes/hypervisor_zones/delete.yml +77 -0
  80. data/spec/vcr_cassettes/hypervisor_zones/edit.yml +77 -0
  81. data/spec/vcr_cassettes/hypervisor_zones/hypervisors.yml +40 -0
  82. data/spec/vcr_cassettes/hypervisor_zones/list.yml +40 -0
  83. data/spec/vcr_cassettes/hypervisor_zones/network_joins.yml +40 -0
  84. data/spec/vcr_cassettes/hypervisor_zones/remove_data_store_join.yml +40 -0
  85. data/spec/vcr_cassettes/hypervisor_zones/remove_network_join.yml +40 -0
  86. data/spec/vcr_cassettes/hypervisor_zones/show.yml +77 -0
  87. data/spec/vcr_cassettes/ipaddress/create.yml +40 -0
  88. data/spec/vcr_cassettes/ipaddress/delete.yml +40 -0
  89. data/spec/vcr_cassettes/ipaddress/edit.yml +40 -0
  90. data/spec/vcr_cassettes/ipaddress/list.yml +17 -17
  91. data/spec/vcr_cassettes/ipaddress_join/assign.yml +77 -0
  92. data/spec/vcr_cassettes/ipaddress_join/delete.yml +77 -0
  93. data/spec/vcr_cassettes/ipaddress_join/list.yml +77 -0
  94. data/spec/vcr_cassettes/network/create.yml +15 -15
  95. data/spec/vcr_cassettes/network/delete.yml +6 -6
  96. data/spec/vcr_cassettes/network/edit.yml +18 -18
  97. data/spec/vcr_cassettes/network/list.yml +3 -3
  98. data/spec/vcr_cassettes/network_zones/attach.yml +114 -0
  99. data/spec/vcr_cassettes/network_zones/create.yml +40 -0
  100. data/spec/vcr_cassettes/network_zones/delete.yml +77 -0
  101. data/spec/vcr_cassettes/network_zones/detach.yml +114 -0
  102. data/spec/vcr_cassettes/network_zones/edit.yml +77 -0
  103. data/spec/vcr_cassettes/network_zones/list.yml +40 -0
  104. data/spec/vcr_cassettes/network_zones/show.yml +77 -0
  105. data/spec/vcr_cassettes/payment/create.yml +78 -0
  106. data/spec/vcr_cassettes/payment/delete.yml +77 -0
  107. data/spec/vcr_cassettes/payment/edit.yml +77 -0
  108. data/spec/vcr_cassettes/payment/list.yml +41 -0
  109. data/spec/vcr_cassettes/role/create.yml +7 -44
  110. data/spec/vcr_cassettes/role/delete.yml +6 -6
  111. data/spec/vcr_cassettes/role/edit.yml +13 -75
  112. data/spec/vcr_cassettes/role/list.yml +7 -7
  113. data/spec/vcr_cassettes/role/permissions.yml +7 -7
  114. data/spec/vcr_cassettes/role/show.yml +13 -13
  115. data/spec/vcr_cassettes/statistic/usage_statistics.yml +7 -7
  116. data/spec/vcr_cassettes/template/list.yml +3 -3
  117. data/spec/vcr_cassettes/template/make_public.yml +6 -6
  118. data/spec/vcr_cassettes/transaction/list.yml +3 -3
  119. data/spec/vcr_cassettes/transaction/show.yml +6 -6
  120. data/spec/vcr_cassettes/user/activate.yml +7 -7
  121. data/spec/vcr_cassettes/user/create.yml +7 -83
  122. data/spec/vcr_cassettes/user/data_store_zones.yml +79 -0
  123. data/spec/vcr_cassettes/user/delete.yml +11 -11
  124. data/spec/vcr_cassettes/user/edit.yml +40 -0
  125. data/spec/vcr_cassettes/user/edit_role.yml +9 -9
  126. data/spec/vcr_cassettes/user/generate_api_key.yml +7 -7
  127. data/spec/vcr_cassettes/user/hypervisors.yml +77 -0
  128. data/spec/vcr_cassettes/user/limits.yml +77 -0
  129. data/spec/vcr_cassettes/user/list.yml +8 -8
  130. data/spec/vcr_cassettes/user/monthly_bills.yml +40 -0
  131. data/spec/vcr_cassettes/user/network_zones.yml +79 -0
  132. data/spec/vcr_cassettes/user/show.yml +29 -29
  133. data/spec/vcr_cassettes/user/stats.yml +6 -6
  134. data/spec/vcr_cassettes/user/suspend.yml +7 -7
  135. data/spec/vcr_cassettes/user/virtual_machines.yml +18 -20
  136. data/spec/vcr_cassettes/user_group/create.yml +40 -0
  137. data/spec/vcr_cassettes/user_group/delete.yml +77 -0
  138. data/spec/vcr_cassettes/user_group/edit.yml +77 -0
  139. data/spec/vcr_cassettes/user_group/list.yml +40 -0
  140. data/spec/vcr_cassettes/virtual_machine/build.yml +7 -7
  141. data/spec/vcr_cassettes/virtual_machine/change_owner.yml +8 -8
  142. data/spec/vcr_cassettes/virtual_machine/change_password.yml +13 -13
  143. data/spec/vcr_cassettes/virtual_machine/console.yml +63 -0
  144. data/spec/vcr_cassettes/virtual_machine/create.yml +9 -11
  145. data/spec/vcr_cassettes/virtual_machine/delete.yml +11 -11
  146. data/spec/vcr_cassettes/virtual_machine/edit.yml +16 -18
  147. data/spec/vcr_cassettes/virtual_machine/list.yml +3 -3
  148. data/spec/vcr_cassettes/virtual_machine/migrate.yml +22 -24
  149. data/spec/vcr_cassettes/virtual_machine/reboot.yml +22 -22
  150. data/spec/vcr_cassettes/virtual_machine/resize.yml +13 -13
  151. data/spec/vcr_cassettes/virtual_machine/segregate.yml +114 -0
  152. data/spec/vcr_cassettes/virtual_machine/set_ssh_keys.yml +77 -0
  153. data/spec/vcr_cassettes/virtual_machine/set_vip.yml +77 -0
  154. data/spec/vcr_cassettes/virtual_machine/show.yml +6 -6
  155. data/spec/vcr_cassettes/virtual_machine/shutdown.yml +6 -6
  156. data/spec/vcr_cassettes/virtual_machine/startup.yml +6 -6
  157. data/spec/vcr_cassettes/virtual_machine/stats.yml +63 -0
  158. data/spec/vcr_cassettes/virtual_machine/stop.yml +22 -22
  159. data/spec/vcr_cassettes/virtual_machine/suspend.yml +13 -13
  160. data/spec/vcr_cassettes/virtual_machine/unlock.yml +13 -13
  161. data/spec/vcr_cassettes/virtual_machine/unsuspend.yml +6 -6
  162. data/spec/vcr_cassettes/whitelist/create.yml +77 -0
  163. data/spec/vcr_cassettes/whitelist/delete.yml +77 -0
  164. data/spec/vcr_cassettes/whitelist/edit.yml +77 -0
  165. data/spec/vcr_cassettes/whitelist/list.yml +40 -0
  166. data/spec/vcr_cassettes/whitelist/show.yml +77 -0
  167. data/squall.gemspec +3 -2
  168. metadata +247 -131
  169. data/Gemfile.lock +0 -100
  170. data/lib/squall/version.rb +0 -3
@@ -0,0 +1,77 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://<USER>:<PASS>@<URL>:80/users/438768534623/limits.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic <REDACTED>
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, 14 Feb 2012 14:40:42 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ x-runtime:
28
+ - "0.038479"
29
+ set-cookie:
30
+ - <REDACTED>
31
+ cache-control:
32
+ - no-cache
33
+ status:
34
+ - "404"
35
+ transfer-encoding:
36
+ - chunked
37
+ body: "{\"errors\":[\"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>@<URL>:80/users/1/limits.json
43
+ body:
44
+ headers:
45
+ content-type:
46
+ - application/json
47
+ authorization:
48
+ - Basic <REDACTED>
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
+ - "\"9c65dc1f69bd0327775ca3e78281d162\""
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.450571"
64
+ server:
65
+ - Apache/2.2.3 (CentOS)
66
+ date:
67
+ - Tue, 14 Feb 2012 14:40:43 GMT
68
+ set-cookie:
69
+ - <REDACTED>
70
+ status:
71
+ - "200"
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
+ transfer-encoding:
75
+ - chunked
76
+ body: "{\"limits\":{\"cpus\":4,\"cpu_shares\":400,\"swap_disk_size\":460,\"memory\":4332,\"rate\":1000,\"data_store_groups\":[{\"label\":\"Default DataStore Zone\",\"id\":1}],\"network_groups\":[{\"label\":\"Default Network Zone\",\"id\":2}],\"hypervisor_groups\":[{\"label\":\"Default Hypervisor Zone\",\"id\":3}],\"primary_disk_size\":460,\"hypervisors\":[{\"label\":\"HV1_DEV7\",\"hypervisor_type\":\"xen\",\"id\":1},{\"label\":\"dev7hv2\",\"hypervisor_type\":\"xen\",\"id\":5}]},\"best_data_store_group_primary_id\":1,\"best_data_store_group_swap_id\":1,\"best_network_group_id\":2}"
77
+ http_version: "1.1"
@@ -2,13 +2,13 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://user:pass@www.example.com:80/users.json
5
+ uri: http://<USER>:<PASS>@<URL>:80/users.json
6
6
  body:
7
7
  headers:
8
8
  content-type:
9
9
  - application/json
10
10
  authorization:
11
- - Basic WHAT
11
+ - Basic <REDACTED>
12
12
  response: !ruby/struct:VCR::Response
13
13
  status: !ruby/struct:VCR::ResponseStatus
14
14
  code: 200
@@ -17,24 +17,24 @@
17
17
  x-ua-compatible:
18
18
  - IE=Edge,chrome=1
19
19
  etag:
20
- - "\"050e82b7c087f67fcfcaa715d0ba87d5\""
20
+ - "\"9bcb7a8a677e2299cb052b91074d7a80\""
21
21
  x-powered-by:
22
22
  - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
23
  content-type:
24
24
  - application/json; charset=utf-8
25
25
  x-runtime:
26
- - "0.400365"
26
+ - "23.097079"
27
27
  server:
28
28
  - Apache/2.2.3 (CentOS)
29
29
  date:
30
- - Wed, 13 Apr 2011 15:27:06 GMT
30
+ - Fri, 10 Feb 2012 15:51:24 GMT
31
31
  set-cookie:
32
- - _onapp_session=WHAT; path=/; HttpOnly
32
+ - <REDACTED>
33
33
  status:
34
34
  - "200"
35
35
  cache-control:
36
36
  - max-age=0, private, must-revalidate
37
37
  transfer-encoding:
38
38
  - chunked
39
- body: "[{\"user\":{\"activated_at\":\"2011-04-13T14:37:45Z\",\"created_at\":\"2011-04-13T14:37:45Z\",\"total_amount\":0.0,\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":null,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2011-04-13T15:07:38Z\",\"used_disk_size\":0,\"used_cpus\":0,\"used_cpu_shares\":0,\"activation_code\":null,\"billing_plan_id\":1,\"group_id\":null,\"id\":1,\"used_memory\":0,\"payment_amount\":\"0.0\",\"last_name\":\"Smith\",\"remember_token\":null,\"disk_space_available\":null,\"time_zone\":\"\",\"login\":\"user\",\"status\":\"active\",\"roles\":[{\"role\":{\"label\":\"Administrator\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":1,\"identifier\":\"user\"}}],\"outstanding_amount\":0.0,\"email\":\"user@example.com\",\"first_name\":\"John\"}},{\"user\":{\"activated_at\":\"2011-04-13T15:13:35Z\",\"created_at\":\"2011-04-13T15:13:35Z\",\"total_amount\":0.0,\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":null,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2011-04-13T15:13:35Z\",\"used_disk_size\":0,\"used_cpus\":0,\"used_cpu_shares\":0,\"activation_code\":null,\"billing_plan_id\":1,\"group_id\":null,\"id\":2,\"used_memory\":0,\"payment_amount\":\"0.0\",\"last_name\":\"last\",\"remember_token\":null,\"disk_space_available\":null,\"time_zone\":null,\"login\":\"testing\",\"status\":\"active\",\"roles\":[{\"role\":{\"label\":\"User\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":2,\"identifier\":\"user\"}}],\"outstanding_amount\":0.0,\"email\":\"test@example.com\",\"first_name\":\"first\"}}]"
40
- http_version: "1.1"
39
+ body: "[{\"user\":{\"aflexi_user_id\":614389567,\"total_amount\":2.342100018167e+28,\"activated_at\":\"2010-12-28T15:17:54Z\",\"created_at\":\"2010-10-27T10:08:40Z\",\"aflexi_password\":\"0QWXUCnSgDwt\",\"cdn_account_status\":\"ACTIVE\",\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":5935,\"used_disk_size\":12,\"used_ip_addresses\":[{\"ip_address\":{\"address\":\"109.123.105.210\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":15,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"109.123.105.215\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":20,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"83.170.67.234\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.224\",\"created_at\":\"2011-01-20T11:23:31Z\",\"broadcast\":\"83.170.67.255\",\"updated_at\":\"2011-10-10T09:15:15Z\",\"network_id\":1,\"network_address\":\"83.170.67.224\",\"id\":33451,\"free\":false,\"gateway\":\"83.170.67.225\"}}],\"deleted_at\":null,\"updated_at\":\"2012-02-10T09:51:46Z\",\"used_cpu_shares\":2,\"used_cpus\":2,\"billing_plan_id\":41,\"cdn_status\":\"ACTIVE\",\"group_id\":1,\"id\":1,\"update_billing_stat\":false,\"used_memory\":384,\"aflexi_key\":null,\"user_group_id\":4,\"payment_amount\":\"1003000.0\",\"last_name\":\"Smith\",\"remember_token\":null,\"disk_space_available\":460,\"image_template_group_id\":null,\"locale\":\"en\",\"time_zone\":\"Kyiv\",\"login\":\"admin\",\"status\":\"active\",\"outstanding_amount\":2.342100018167e+28,\"roles\":[{\"role\":{\"label\":\"administrator\",\"created_at\":\"2012-02-10T09:45:16Z\",\"updated_at\":\"2012-02-10T14:35:55Z\",\"id\":405,\"permissions\":[{\"permission\":{\"label\":\"Any action on Autoscaling Configuration\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:18Z\",\"id\":307,\"identifier\":\"auto_scalings\"}},{\"permission\":{\"label\":\"Any action on autobackup templates\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":168,\"identifier\":\"autobackup_templates\"}},{\"permission\":{\"label\":\"Any action on backups\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":44,\"identifier\":\"backups\"}},{\"permission\":{\"label\":\"Any action on resources\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":191,\"identifier\":\"base_resources\"}},{\"permission\":{\"label\":\"Any action on billing plans\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":185,\"identifier\":\"billing_plans\"}},{\"permission\":{\"label\":\"Any action on CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":328,\"identifier\":\"cdn_resources\"}},{\"permission\":{\"label\":\"See details of CDN usage statistics\",\"created_at\":\"2011-07-20T16:20:15Z\",\"updated_at\":\"2011-12-06T16:40:13Z\",\"id\":296,\"identifier\":\"cdn_usage_stats\"}},{\"permission\":{\"label\":\"Any action with Currencies\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":269,\"identifier\":\"currencies\"}},{\"permission\":{\"label\":\"All actions on Dashboard\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":123,\"identifier\":\"dashboard\"}},{\"permission\":{\"label\":\"All actions on datastores on Hypervisor\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":164,\"identifier\":\"data_store_joins\"}},{\"permission\":{\"label\":\"Any action on data store zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":173,\"identifier\":\"data_store_zones\"}},{\"permission\":{\"label\":\"Any action on data_stores\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":55,\"identifier\":\"data_stores\"}},{\"permission\":{\"label\":\"Any action on disks\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":24,\"identifier\":\"disks\"}},{\"permission\":{\"label\":\"Any action on edge group\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":323,\"identifier\":\"edge_groups\"}},{\"permission\":{\"label\":\"Any action on Edge Server\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":347,\"identifier\":\"edge_servers\"}},{\"permission\":{\"label\":\"Any action with Firewall Rules \",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":274,\"identifier\":\"firewall_rules\"}},{\"permission\":{\"label\":\"Any action on groups\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":96,\"identifier\":\"groups\"}},{\"permission\":{\"label\":\"All actions on Help\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":125,\"identifier\":\"help\"}},{\"permission\":{\"label\":\"Any action on hypervisor zones\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":211,\"identifier\":\"hypervisor_zones\"}},{\"permission\":{\"label\":\"Any action on hypervisors\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":19,\"identifier\":\"hypervisors\"}},{\"permission\":{\"label\":\"Any action on template groups\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":249,\"identifier\":\"image_template_groups\"}},{\"permission\":{\"label\":\"Full access to IO Statistics\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":227,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"All actions on virtual machine's IP addresses\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":145,\"identifier\":\"ip_address_joins\"}},{\"permission\":{\"label\":\"Any action on ip addresses\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":70,\"identifier\":\"ip_addresses\"}},{\"permission\":{\"label\":\"Any action on mounting ISO\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":217,\"identifier\":\"iso_joins\"}},{\"permission\":{\"label\":\"Any action on isos\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":198,\"identifier\":\"isos\"}},{\"permission\":{\"label\":\"Any action on Load Balancer\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":362,\"identifier\":\"load_balancers\"}},{\"permission\":{\"label\":\"Any action on relation load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":299,\"identifier\":\"load_balancing_clusters\"}},{\"permission\":{\"label\":\"Any action on log items\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":155,\"identifier\":\"log_items\"}},{\"permission\":{\"label\":\"Any action on relation monitis monitors\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":316,\"identifier\":\"monitis_monitors\"}},{\"permission\":{\"label\":\"Full access to Mounthly Bills Statistics\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":318,\"identifier\":\"monthly_bills\"}},{\"permission\":{\"label\":\"Any action on nameservers\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":75,\"identifier\":\"nameservers\"}},{\"permission\":{\"label\":\"Any action on network zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":179,\"identifier\":\"network_zones\"}},{\"permission\":{\"label\":\"Any action on networks\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":65,\"identifier\":\"networks\"}},{\"permission\":{\"label\":\"Any action on payments\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":101,\"identifier\":\"payments\"}},{\"permission\":{\"label\":\"Any action on permissions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":60,\"identifier\":\"permissions\"}},{\"permission\":{\"label\":\"Any action on relation group_templates\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":264,\"identifier\":\"relation_group_templates\"}},{\"permission\":{\"label\":\"Any action on resource limit\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":85,\"identifier\":\"resource_limits\"}},{\"permission\":{\"label\":\"Any action on Roles\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":91,\"identifier\":\"roles\"}},{\"permission\":{\"label\":\"Any action on schedule logs\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":136,\"identifier\":\"schedule_logs\"}},{\"permission\":{\"label\":\"Any action on schedules\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":126,\"identifier\":\"schedules\"}},{\"permission\":{\"label\":\"Any action on Settings\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":107,\"identifier\":\"settings\"}},{\"permission\":{\"label\":\"All actions on Sysadmin Tools\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":124,\"identifier\":\"sysadmin_tools\"}},{\"permission\":{\"label\":\"Any action on template sets\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":363,\"identifier\":\"template_sets\"}},{\"permission\":{\"label\":\"Any action on templates\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":32,\"identifier\":\"templates\"}},{\"permission\":{\"label\":\"Any action on Themes\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":286,\"identifier\":\"themes\"}},{\"permission\":{\"label\":\"Any action on transactions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":82,\"identifier\":\"transactions\"}},{\"permission\":{\"label\":\"Any action on user groups\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":243,\"identifier\":\"user_groups\"}},{\"permission\":{\"label\":\"Any action with White IP list \",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":255,\"identifier\":\"user_white_lists\"}},{\"permission\":{\"label\":\"Any action on users\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":11,\"identifier\":\"users\"}},{\"permission\":{\"label\":\"Any action on virtual machines\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":1,\"identifier\":\"virtual_machines\"}},{\"permission\":{\"label\":\"Full access to Statistics\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":116,\"identifier\":\"vm_stats\"}},{\"permission\":{\"label\":\"Add ssh keys for all the virtual machines\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":360,\"identifier\":\"ssh_keys.add\"}}],\"identifier\":\"r5yzw8wkarmh93\"}}],\"aflexi_username\":\"onapp-pub-1-a3ef742fb21ca0a8900a41c71183e4a0\",\"email\":\"admin@example.com\",\"first_name\":\"John\"}},{\"user\":{\"aflexi_user_id\":null,\"total_amount\":164784.5,\"activated_at\":\"2012-02-06T23:46:22Z\",\"created_at\":\"2010-10-29T14:41:07Z\",\"aflexi_password\":null,\"cdn_account_status\":\"ACTIVE\",\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":2048,\"used_disk_size\":0,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2012-02-06T23:46:22Z\",\"used_cpu_shares\":0,\"used_cpus\":0,\"billing_plan_id\":2,\"cdn_status\":\"INACTIVE\",\"group_id\":1,\"id\":2,\"update_billing_stat\":false,\"used_memory\":0,\"aflexi_key\":null,\"user_group_id\":null,\"payment_amount\":\"0.0\",\"last_name\":\"ioiupuipuip\",\"remember_token\":null,\"disk_space_available\":80,\"image_template_group_id\":null,\"locale\":\"en\",\"time_zone\":\"\",\"login\":\"ayatsk1_username1@onapp.com\",\"status\":\"active\",\"outstanding_amount\":164784.5,\"roles\":[{\"role\":{\"label\":\"User\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2012-01-09T10:31:29Z\",\"id\":2,\"permissions\":[{\"permission\":{\"label\":\"Create a new virtual machine\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":4,\"identifier\":\"virtual_machines.create\"}},{\"permission\":{\"label\":\"See own virtual machines\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":3,\"identifier\":\"virtual_machines.read.own\"}},{\"permission\":{\"label\":\"Update own virtual machine\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":6,\"identifier\":\"virtual_machines.update.own\"}},{\"permission\":{\"label\":\"Destroy own virtual machine\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":8,\"identifier\":\"virtual_machines.delete.own\"}},{\"permission\":{\"label\":\"Console to own virtual machine\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":10,\"identifier\":\"virtual_machines.console.own\"}},{\"permission\":{\"label\":\"See own users\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":13,\"identifier\":\"users.read.own\"}},{\"permission\":{\"label\":\"Update own user\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":16,\"identifier\":\"users.update.own\"}},{\"permission\":{\"label\":\"See all hypervisors\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":20,\"identifier\":\"hypervisors.read\"}},{\"permission\":{\"label\":\"Create a new disk\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":27,\"identifier\":\"disks.create\"}},{\"permission\":{\"label\":\"See own disks\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":26,\"identifier\":\"disks.read.own\"}},{\"permission\":{\"label\":\"Update own disk\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":29,\"identifier\":\"disks.update.own\"}},{\"permission\":{\"label\":\"Destroy own disk\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":31,\"identifier\":\"disks.delete.own\"}},{\"permission\":{\"label\":\"Manage Own Templates\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":42,\"identifier\":\"templates.manage.own\"}},{\"permission\":{\"label\":\"Create an own backup\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":48,\"identifier\":\"backups.create.own\"}},{\"permission\":{\"label\":\"See own backups\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":46,\"identifier\":\"backups.read.own\"}},{\"permission\":{\"label\":\"Update own backup\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":50,\"identifier\":\"backups.update.own\"}},{\"permission\":{\"label\":\"Destroy own backup\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":52,\"identifier\":\"backups.delete.own\"}},{\"permission\":{\"label\":\"Convert own backup to template\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":54,\"identifier\":\"backups.convert.own\"}},{\"permission\":{\"label\":\"See all data_stores\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":56,\"identifier\":\"data_stores.read\"}},{\"permission\":{\"label\":\"See all nameservers\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":76,\"identifier\":\"nameservers.read\"}},{\"permission\":{\"label\":\"Any power action on own virtual machines\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":81,\"identifier\":\"virtual_machines.power.own\"}},{\"permission\":{\"label\":\"See all Roles\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":92,\"identifier\":\"roles.read\"}},{\"permission\":{\"label\":\"See all groups\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":97,\"identifier\":\"groups.read\"}},{\"permission\":{\"label\":\"See all payments\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":102,\"identifier\":\"payments.read\"}},{\"permission\":{\"label\":\"See own payments\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":106,\"identifier\":\"payments.read.own\"}},{\"permission\":{\"label\":\"See own resource limits\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":114,\"identifier\":\"resource_limits.read.own\"}},{\"permission\":{\"label\":\"See Own Statistics\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":118,\"identifier\":\"vm_stats.read.own\"}},{\"permission\":{\"label\":\"Delete own transactions from logs\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":135,\"identifier\":\"transactions.delete.own\"}},{\"permission\":{\"label\":\"Migrate own virtual machine\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":143,\"identifier\":\"virtual_machines.migrate.own\"}},{\"permission\":{\"label\":\"Reset root password to own virtual machine\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":153,\"identifier\":\"virtual_machines.reset_root_password.own\"}},{\"permission\":{\"label\":\"See details of own log item\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":157,\"identifier\":\"log_items.read.own\"}},{\"permission\":{\"label\":\"See list of own log items\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":159,\"identifier\":\"log_items.list.own\"}},{\"permission\":{\"label\":\"Delete own log item\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":161,\"identifier\":\"log_items.delete.own\"}},{\"permission\":{\"label\":\"Autobackup for own disk\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":163,\"identifier\":\"disks.autobackup.own\"}},{\"permission\":{\"label\":\"Unlock any disk\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":154,\"identifier\":\"disks.unlock\"}},{\"permission\":{\"label\":\"Unlock any virtual machine\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":90,\"identifier\":\"virtual_machines.unlock\"}},{\"permission\":{\"label\":\"Add IP address to own virtual machine\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":147,\"identifier\":\"ip_address_joins.create.own\"}},{\"permission\":{\"label\":\"Remove IP address from own virtual machine\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":151,\"identifier\":\"ip_address_joins.delete.own\"}},{\"permission\":{\"label\":\"See IP addresses assigned to any virtual machines\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":148,\"identifier\":\"ip_address_joins.read\"}},{\"permission\":{\"label\":\"See all ip addresses\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":71,\"identifier\":\"ip_addresses.read\"}},{\"permission\":{\"label\":\"Create and Manage ISOs\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":208,\"identifier\":\"isos.manage.own\"}},{\"permission\":{\"label\":\"See own mounted ISOs\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":219,\"identifier\":\"iso_joins.read.own\"}},{\"permission\":{\"label\":\"Mount own ISO\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":221,\"identifier\":\"iso_joins.create.own\"}},{\"permission\":{\"label\":\"Umount own mounted ISOs\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":223,\"identifier\":\"iso_joins.delete.own\"}},{\"permission\":{\"label\":\"See own IO Statistics\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":229,\"identifier\":\"io_stats.read.own\"}},{\"permission\":{\"label\":\"See own billing plan\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":230,\"identifier\":\"billing_plans.read.own\"}},{\"permission\":{\"label\":\"See own base resources\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":231,\"identifier\":\"base_resources.read.own\"}},{\"permission\":{\"label\":\"See User billing plan\",\"created_at\":\"2011-07-20T16:20:08Z\",\"updated_at\":\"2011-07-20T16:20:08Z\",\"id\":236,\"identifier\":\"users.read_prices.billing_plan\"}},{\"permission\":{\"label\":\"See User outstanding amount\",\"created_at\":\"2011-07-20T16:20:08Z\",\"updated_at\":\"2011-07-20T16:20:08Z\",\"id\":237,\"identifier\":\"users.read_prices.outstanding_amount\"}},{\"permission\":{\"label\":\"See User summary payments\",\"created_at\":\"2011-07-20T16:20:08Z\",\"updated_at\":\"2011-07-20T16:20:08Z\",\"id\":238,\"identifier\":\"users.read_prices.summary_payments\"}},{\"permission\":{\"label\":\"See User hourly prices\",\"created_at\":\"2011-07-20T16:20:08Z\",\"updated_at\":\"2011-07-20T16:20:08Z\",\"id\":239,\"identifier\":\"users.read_prices.hourly_price\"}},{\"permission\":{\"label\":\"See User monthly prices\",\"created_at\":\"2011-07-20T16:20:08Z\",\"updated_at\":\"2011-07-20T16:20:08Z\",\"id\":240,\"identifier\":\"users.read_prices.monthly_price\"}},{\"permission\":{\"label\":\"See User Virtual Machine prices\",\"created_at\":\"2011-07-20T16:20:08Z\",\"updated_at\":\"2011-07-20T16:20:08Z\",\"id\":241,\"identifier\":\"users.read_prices.vm_prices\"}},{\"permission\":{\"label\":\"See User Backups/Templates prices\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":242,\"identifier\":\"users.read_prices.backups_templates\"}},{\"permission\":{\"label\":\"See details of any user group\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":244,\"identifier\":\"user_groups.read\"}},{\"permission\":{\"label\":\"See list of all user groups\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":245,\"identifier\":\"user_groups.list\"}},{\"permission\":{\"label\":\"Create a new user group\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":246,\"identifier\":\"user_groups.create\"}},{\"permission\":{\"label\":\"Update any user group\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":247,\"identifier\":\"user_groups.update\"}},{\"permission\":{\"label\":\"Delete any user group\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":248,\"identifier\":\"user_groups.delete\"}},{\"permission\":{\"label\":\"See own white IPs\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":256,\"identifier\":\"user_white_lists.read.own\"}},{\"permission\":{\"label\":\"Add own white IP\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":257,\"identifier\":\"user_white_lists.create.own\"}},{\"permission\":{\"label\":\"Update own white IP\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":258,\"identifier\":\"user_white_lists.update.own\"}},{\"permission\":{\"label\":\"Destroy own white IP\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":259,\"identifier\":\"user_white_lists.delete.own\"}},{\"permission\":{\"label\":\"See own Firewall Rules\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":275,\"identifier\":\"firewall_rules.read.own\"}},{\"permission\":{\"label\":\"Add own Firewall Rules\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":276,\"identifier\":\"firewall_rules.create.own\"}},{\"permission\":{\"label\":\"Update own Firewall Rules\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":277,\"identifier\":\"firewall_rules.update.own\"}},{\"permission\":{\"label\":\"Destroy own Firewall Rules\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":278,\"identifier\":\"firewall_rules.delete.own\"}},{\"permission\":{\"label\":\"Change own password\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":292,\"identifier\":\"users.change_password.own\"}},{\"permission\":{\"label\":\"Rebuild Network to own virtual machine\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":294,\"identifier\":\"virtual_machines.rebuild_network.own\"}},{\"permission\":{\"label\":\"User can see own CDN usage statistics\",\"created_at\":\"2011-07-20T16:20:15Z\",\"updated_at\":\"2011-12-06T16:40:13Z\",\"id\":298,\"identifier\":\"cdn_usage_stats.read.own\"}},{\"permission\":{\"label\":\"Create a new relation load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":303,\"identifier\":\"load_balancing_clusters.create\"}},{\"permission\":{\"label\":\"See details of own load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":304,\"identifier\":\"load_balancing_clusters.read.own\"}},{\"permission\":{\"label\":\"Change own load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":305,\"identifier\":\"load_balancing_clusters.update.own\"}},{\"permission\":{\"label\":\"Delete own load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":306,\"identifier\":\"load_balancing_clusters.delete.own\"}},{\"permission\":{\"label\":\"See only own Mounthly Bills Statistics\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":320,\"identifier\":\"monthly_bills.read.own\"}},{\"permission\":{\"label\":\"See list of all transactions\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":120,\"identifier\":\"transactions.list\"}},{\"permission\":{\"label\":\"See list of own transactions\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":121,\"identifier\":\"transactions.list.own\"}},{\"permission\":{\"label\":\"View OnApp version\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":295,\"identifier\":\"settings.version\"}},{\"permission\":{\"label\":\"Migrate own load balancer\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":359,\"identifier\":\"load_balancers.migrate.own\"}},{\"permission\":{\"label\":\"Create a new CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":329,\"identifier\":\"cdn_resources.create\"}},{\"permission\":{\"label\":\"Destroy own CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":335,\"identifier\":\"cdn_resources.delete.own\"}},{\"permission\":{\"label\":\"See own CDN resources\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":333,\"identifier\":\"cdn_resources.read.own\"}},{\"permission\":{\"label\":\"Update own CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":334,\"identifier\":\"cdn_resources.update.own\"}},{\"permission\":{\"label\":\"Generate Own API key\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":284,\"identifier\":\"users.update_api_key.own\"}},{\"permission\":{\"label\":\"Show Hypervisors on VirtualMachine creation.\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":226,\"identifier\":\"hypervisors.read_vm_creation\"}}],\"identifier\":\"user\"}}],\"aflexi_username\":null,\"email\":\"tyuytufsdgdshdfh@rtt.jj\",\"first_name\":\"cvhgfh\"}}]"
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>@<URL>:80/users/1/monthly_bills.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic <REDACTED>
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
+ - "\"5f2bfb4046f10a62efd327e7b82ee112\""
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.257998"
27
+ server:
28
+ - Apache/2.2.3 (CentOS)
29
+ date:
30
+ - Mon, 13 Feb 2012 16:14:57 GMT
31
+ set-cookie:
32
+ - <REDACTED>
33
+ status:
34
+ - "200"
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ transfer-encoding:
38
+ - chunked
39
+ body: "[{\"cost\":3.49000004833101e+26,\"month\":1},{\"cost\":2.34000003240532e+26,\"month\":2}]"
40
+ http_version: "1.1"
@@ -0,0 +1,79 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://<USER>:<PASS>@<URL>:80/users/2532564353245/network_zones.json
6
+ body:
7
+ headers:
8
+ content-type:
9
+ - application/json
10
+ authorization:
11
+ - Basic <REDACTED>
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
+ x-powered-by:
20
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
21
+ etag:
22
+ - "\"412900ccaad65684f1c4a5201ab4a690\""
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ date:
26
+ - Fri, 10 Feb 2012 20:48:35 GMT
27
+ server:
28
+ - Apache/2.2.3 (CentOS)
29
+ x-runtime:
30
+ - "0.043664"
31
+ set-cookie:
32
+ - <REDACTED>
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ status:
36
+ - "200"
37
+ transfer-encoding:
38
+ - chunked
39
+ body: "[{\"network_group\":{\"label\":\"Default Network Zone\",\"created_at\":\"2011-07-20T15:49:07Z\",\"updated_at\":\"2011-07-20T15:49:07Z\",\"id\":2}},{\"network_group\":{\"label\":\"Private\",\"created_at\":\"2011-10-17T19:53:54Z\",\"updated_at\":\"2011-10-17T19:53:54Z\",\"id\":10}}]"
40
+ http_version: "1.1"
41
+ - !ruby/struct:VCR::HTTPInteraction
42
+ request: !ruby/struct:VCR::Request
43
+ method: :get
44
+ uri: http://<USER>:<PASS>@<URL>:80/users/1/network_zones.json
45
+ body:
46
+ headers:
47
+ content-type:
48
+ - application/json
49
+ authorization:
50
+ - Basic <REDACTED>
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
53
+ code: 200
54
+ message: OK
55
+ headers:
56
+ x-ua-compatible:
57
+ - IE=Edge,chrome=1
58
+ etag:
59
+ - "\"412900ccaad65684f1c4a5201ab4a690\""
60
+ x-powered-by:
61
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
62
+ content-type:
63
+ - application/json; charset=utf-8
64
+ x-runtime:
65
+ - "0.036230"
66
+ server:
67
+ - Apache/2.2.3 (CentOS)
68
+ date:
69
+ - Fri, 10 Feb 2012 20:48:35 GMT
70
+ set-cookie:
71
+ - <REDACTED>
72
+ status:
73
+ - "200"
74
+ cache-control:
75
+ - max-age=0, private, must-revalidate
76
+ transfer-encoding:
77
+ - chunked
78
+ body: "[{\"network_group\":{\"label\":\"Default Network Zone\",\"created_at\":\"2011-07-20T15:49:07Z\",\"updated_at\":\"2011-07-20T15:49:07Z\",\"id\":2}},{\"network_group\":{\"label\":\"Private\",\"created_at\":\"2011-10-17T19:53:54Z\",\"updated_at\":\"2011-10-17T19:53:54Z\",\"id\":10}}]"
79
+ http_version: "1.1"
@@ -2,76 +2,76 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://user:pass@www.example.com:80/users/1.json
5
+ uri: http://<USER>:<PASS>@<URL>:80/users/404.json
6
6
  body:
7
7
  headers:
8
8
  content-type:
9
9
  - application/json
10
10
  authorization:
11
- - Basic WHAT
11
+ - Basic <REDACTED>
12
12
  response: !ruby/struct:VCR::Response
13
13
  status: !ruby/struct:VCR::ResponseStatus
14
- code: 200
15
- message: OK
14
+ code: 404
15
+ message: Not Found
16
16
  headers:
17
17
  x-ua-compatible:
18
18
  - IE=Edge,chrome=1
19
- etag:
20
- - "\"e070c525dba5f3f3833a25156e988def\""
21
19
  x-powered-by:
22
20
  - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
21
  content-type:
24
22
  - application/json; charset=utf-8
25
- x-runtime:
26
- - "0.030011"
23
+ date:
24
+ - Fri, 10 Feb 2012 16:17:58 GMT
27
25
  server:
28
26
  - Apache/2.2.3 (CentOS)
29
- date:
30
- - Wed, 13 Apr 2011 15:44:38 GMT
27
+ x-runtime:
28
+ - "0.023569"
31
29
  set-cookie:
32
- - _onapp_session=WHAT; path=/; HttpOnly
33
- status:
34
- - "200"
30
+ - <REDACTED>
35
31
  cache-control:
36
- - max-age=0, private, must-revalidate
32
+ - no-cache
33
+ status:
34
+ - "404"
37
35
  transfer-encoding:
38
36
  - chunked
39
- body: "{\"user\":{\"activated_at\":\"2011-04-13T14:37:45Z\",\"created_at\":\"2011-04-13T14:37:45Z\",\"total_amount\":0.0,\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":null,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2011-04-13T15:07:38Z\",\"used_disk_size\":0,\"used_cpus\":0,\"used_cpu_shares\":0,\"activation_code\":null,\"billing_plan_id\":1,\"group_id\":null,\"id\":1,\"used_memory\":0,\"payment_amount\":\"0.0\",\"last_name\":\"Smith\",\"remember_token\":null,\"disk_space_available\":null,\"time_zone\":\"\",\"login\":\"user\",\"status\":\"active\",\"roles\":[{\"role\":{\"label\":\"Administrator\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":1,\"identifier\":\"user\"}}],\"outstanding_amount\":0.0,\"email\":\"user@example.com\",\"first_name\":\"John\"}}"
37
+ body: "{\"errors\":[\"Resource not found\"]}"
40
38
  http_version: "1.1"
41
39
  - !ruby/struct:VCR::HTTPInteraction
42
40
  request: !ruby/struct:VCR::Request
43
41
  method: :get
44
- uri: http://user:pass@www.example.com:80/users/5.json
42
+ uri: http://<USER>:<PASS>@<URL>:80/users/1.json
45
43
  body:
46
44
  headers:
47
45
  content-type:
48
46
  - application/json
49
47
  authorization:
50
- - Basic WHAT
48
+ - Basic <REDACTED>
51
49
  response: !ruby/struct:VCR::Response
52
50
  status: !ruby/struct:VCR::ResponseStatus
53
- code: 404
54
- message: Not Found
51
+ code: 200
52
+ message: OK
55
53
  headers:
56
54
  x-ua-compatible:
57
55
  - IE=Edge,chrome=1
56
+ etag:
57
+ - "\"655bdb31efe5d1939bab3606daf190dc\""
58
58
  x-powered-by:
59
59
  - Phusion Passenger (mod_rails/mod_rack) 3.0.1
60
60
  content-type:
61
61
  - application/json; charset=utf-8
62
- date:
63
- - Wed, 13 Apr 2011 15:49:35 GMT
62
+ x-runtime:
63
+ - "0.546276"
64
64
  server:
65
65
  - Apache/2.2.3 (CentOS)
66
- x-runtime:
67
- - "0.029841"
66
+ date:
67
+ - Fri, 10 Feb 2012 16:17:59 GMT
68
68
  set-cookie:
69
- - _onapp_session=WHAT; path=/; HttpOnly
70
- cache-control:
71
- - no-cache
69
+ - <REDACTED>
72
70
  status:
73
- - "404"
71
+ - "200"
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
74
  transfer-encoding:
75
75
  - chunked
76
- body: "{\"error\":\"Resource not found\"}"
77
- http_version: "1.1"
76
+ body: "{\"user\":{\"aflexi_user_id\":614389567,\"total_amount\":2.342100018167e+28,\"activated_at\":\"2010-12-28T15:17:54Z\",\"created_at\":\"2010-10-27T10:08:40Z\",\"aflexi_password\":\"0QWXUCnSgDwt\",\"cdn_account_status\":\"ACTIVE\",\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":5935,\"used_disk_size\":12,\"used_ip_addresses\":[{\"ip_address\":{\"address\":\"109.123.105.210\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":15,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"109.123.105.215\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":20,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"83.170.67.234\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.224\",\"created_at\":\"2011-01-20T11:23:31Z\",\"broadcast\":\"83.170.67.255\",\"updated_at\":\"2011-10-10T09:15:15Z\",\"network_id\":1,\"network_address\":\"83.170.67.224\",\"id\":33451,\"free\":false,\"gateway\":\"83.170.67.225\"}}],\"deleted_at\":null,\"updated_at\":\"2012-02-10T09:51:46Z\",\"used_cpu_shares\":2,\"used_cpus\":2,\"billing_plan_id\":41,\"cdn_status\":\"ACTIVE\",\"group_id\":1,\"id\":1,\"update_billing_stat\":false,\"used_memory\":384,\"aflexi_key\":null,\"user_group_id\":4,\"payment_amount\":\"1003000.0\",\"last_name\":\"Smith\",\"remember_token\":null,\"disk_space_available\":460,\"image_template_group_id\":null,\"locale\":\"en\",\"time_zone\":\"Kyiv\",\"login\":\"admin\",\"status\":\"active\",\"outstanding_amount\":2.342100018167e+28,\"roles\":[{\"role\":{\"label\":\"administrator\",\"created_at\":\"2012-02-10T09:45:16Z\",\"updated_at\":\"2012-02-10T14:35:55Z\",\"id\":405,\"permissions\":[{\"permission\":{\"label\":\"Any action on Autoscaling Configuration\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:18Z\",\"id\":307,\"identifier\":\"auto_scalings\"}},{\"permission\":{\"label\":\"Any action on autobackup templates\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":168,\"identifier\":\"autobackup_templates\"}},{\"permission\":{\"label\":\"Any action on backups\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":44,\"identifier\":\"backups\"}},{\"permission\":{\"label\":\"Any action on resources\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":191,\"identifier\":\"base_resources\"}},{\"permission\":{\"label\":\"Any action on billing plans\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":185,\"identifier\":\"billing_plans\"}},{\"permission\":{\"label\":\"Any action on CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":328,\"identifier\":\"cdn_resources\"}},{\"permission\":{\"label\":\"See details of CDN usage statistics\",\"created_at\":\"2011-07-20T16:20:15Z\",\"updated_at\":\"2011-12-06T16:40:13Z\",\"id\":296,\"identifier\":\"cdn_usage_stats\"}},{\"permission\":{\"label\":\"Any action with Currencies\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":269,\"identifier\":\"currencies\"}},{\"permission\":{\"label\":\"All actions on Dashboard\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":123,\"identifier\":\"dashboard\"}},{\"permission\":{\"label\":\"All actions on datastores on Hypervisor\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":164,\"identifier\":\"data_store_joins\"}},{\"permission\":{\"label\":\"Any action on data store zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":173,\"identifier\":\"data_store_zones\"}},{\"permission\":{\"label\":\"Any action on data_stores\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":55,\"identifier\":\"data_stores\"}},{\"permission\":{\"label\":\"Any action on disks\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":24,\"identifier\":\"disks\"}},{\"permission\":{\"label\":\"Any action on edge group\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":323,\"identifier\":\"edge_groups\"}},{\"permission\":{\"label\":\"Any action on Edge Server\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":347,\"identifier\":\"edge_servers\"}},{\"permission\":{\"label\":\"Any action with Firewall Rules \",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":274,\"identifier\":\"firewall_rules\"}},{\"permission\":{\"label\":\"Any action on groups\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":96,\"identifier\":\"groups\"}},{\"permission\":{\"label\":\"All actions on Help\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":125,\"identifier\":\"help\"}},{\"permission\":{\"label\":\"Any action on hypervisor zones\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":211,\"identifier\":\"hypervisor_zones\"}},{\"permission\":{\"label\":\"Any action on hypervisors\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":19,\"identifier\":\"hypervisors\"}},{\"permission\":{\"label\":\"Any action on template groups\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":249,\"identifier\":\"image_template_groups\"}},{\"permission\":{\"label\":\"Full access to IO Statistics\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":227,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"All actions on virtual machine's IP addresses\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":145,\"identifier\":\"ip_address_joins\"}},{\"permission\":{\"label\":\"Any action on ip addresses\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":70,\"identifier\":\"ip_addresses\"}},{\"permission\":{\"label\":\"Any action on mounting ISO\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":217,\"identifier\":\"iso_joins\"}},{\"permission\":{\"label\":\"Any action on isos\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":198,\"identifier\":\"isos\"}},{\"permission\":{\"label\":\"Any action on Load Balancer\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":362,\"identifier\":\"load_balancers\"}},{\"permission\":{\"label\":\"Any action on relation load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":299,\"identifier\":\"load_balancing_clusters\"}},{\"permission\":{\"label\":\"Any action on log items\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":155,\"identifier\":\"log_items\"}},{\"permission\":{\"label\":\"Any action on relation monitis monitors\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":316,\"identifier\":\"monitis_monitors\"}},{\"permission\":{\"label\":\"Full access to Mounthly Bills Statistics\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":318,\"identifier\":\"monthly_bills\"}},{\"permission\":{\"label\":\"Any action on nameservers\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":75,\"identifier\":\"nameservers\"}},{\"permission\":{\"label\":\"Any action on network zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":179,\"identifier\":\"network_zones\"}},{\"permission\":{\"label\":\"Any action on networks\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":65,\"identifier\":\"networks\"}},{\"permission\":{\"label\":\"Any action on payments\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":101,\"identifier\":\"payments\"}},{\"permission\":{\"label\":\"Any action on permissions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":60,\"identifier\":\"permissions\"}},{\"permission\":{\"label\":\"Any action on relation group_templates\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":264,\"identifier\":\"relation_group_templates\"}},{\"permission\":{\"label\":\"Any action on resource limit\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":85,\"identifier\":\"resource_limits\"}},{\"permission\":{\"label\":\"Any action on Roles\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":91,\"identifier\":\"roles\"}},{\"permission\":{\"label\":\"Any action on schedule logs\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":136,\"identifier\":\"schedule_logs\"}},{\"permission\":{\"label\":\"Any action on schedules\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":126,\"identifier\":\"schedules\"}},{\"permission\":{\"label\":\"Any action on Settings\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":107,\"identifier\":\"settings\"}},{\"permission\":{\"label\":\"All actions on Sysadmin Tools\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":124,\"identifier\":\"sysadmin_tools\"}},{\"permission\":{\"label\":\"Any action on template sets\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":363,\"identifier\":\"template_sets\"}},{\"permission\":{\"label\":\"Any action on templates\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":32,\"identifier\":\"templates\"}},{\"permission\":{\"label\":\"Any action on Themes\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":286,\"identifier\":\"themes\"}},{\"permission\":{\"label\":\"Any action on transactions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":82,\"identifier\":\"transactions\"}},{\"permission\":{\"label\":\"Any action on user groups\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":243,\"identifier\":\"user_groups\"}},{\"permission\":{\"label\":\"Any action with White IP list \",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":255,\"identifier\":\"user_white_lists\"}},{\"permission\":{\"label\":\"Any action on users\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":11,\"identifier\":\"users\"}},{\"permission\":{\"label\":\"Any action on virtual machines\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":1,\"identifier\":\"virtual_machines\"}},{\"permission\":{\"label\":\"Full access to Statistics\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":116,\"identifier\":\"vm_stats\"}},{\"permission\":{\"label\":\"Add ssh keys for all the virtual machines\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":360,\"identifier\":\"ssh_keys.add\"}}],\"identifier\":\"r5yzw8wkarmh93\"}}],\"aflexi_username\":\"onapp-pub-1-a3ef742fb21ca0a8900a41c71183e4a0\",\"email\":\"admin@example.com\",\"first_name\":\"John\"}}"
77
+ http_version: "1.1"
@@ -2,13 +2,13 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://user:pass@www.example.com:80/users/1/vm_stats.json
5
+ uri: http://<USER>:<PASS>@<URL>:80/users/1/vm_stats.json
6
6
  body:
7
7
  headers:
8
8
  content-type:
9
9
  - application/json
10
10
  authorization:
11
- - Basic WHAT
11
+ - Basic <REDACTED>
12
12
  response: !ruby/struct:VCR::Response
13
13
  status: !ruby/struct:VCR::ResponseStatus
14
14
  code: 200
@@ -23,18 +23,18 @@
23
23
  content-type:
24
24
  - application/json; charset=utf-8
25
25
  x-runtime:
26
- - "2.803779"
26
+ - "0.032355"
27
27
  server:
28
28
  - Apache/2.2.3 (CentOS)
29
29
  date:
30
- - Thu, 14 Apr 2011 15:18:59 GMT
30
+ - Fri, 10 Feb 2012 18:25:37 GMT
31
31
  set-cookie:
32
- - _onapp_session=WHAT; path=/; HttpOnly
32
+ - <REDACTED>
33
33
  status:
34
34
  - "200"
35
35
  cache-control:
36
36
  - max-age=0, private, must-revalidate
37
37
  transfer-encoding:
38
38
  - chunked
39
- body: "[{\"vm_stats\":{\"created_at\":\"2011-04-20T07:00:07Z\",\"cost\":0.0,\"updated_at\":\"2011-04-20T07:00:07Z\",\"stat_time\":\"2011-04-20T07:00:00Z\",\"id\":6673,\"vm_billing_stat_id\":863,\"user_id\":1,\"billing_stats\":{},\"virtual_machine_id\":55}},{\"vm_stats\":{\"created_at\":\"2011-04-20T08:00:07Z\",\"cost\":0.0,\"updated_at\":\"2011-04-20T08:00:07Z\",\"stat_time\":\"2011-04-20T08:00:00Z\",\"id\":6683,\"vm_billing_stat_id\":863,\"user_id\":1,\"billing_stats\":{},\"virtual_machine_id\":55}},{\"vm_stats\":{\"created_at\":\"2011-04-20T09:00:07Z\",\"cost\":0.0,\"updated_at\":\"2011-04-20T09:00:07Z\",\"stat_time\":\"2011-04-20T09:00:00Z\",\"id\":6693,\"vm_billing_stat_id\":863,\"user_id\":1,\"billing_stats\":{},\"virtual_machine_id\":55}},{\"vm_stats\":{\"created_at\":\"2011-04-20T10:00:07Z\",\"cost\":0.0,\"updated_at\":\"2011-04-20T10:00:07Z\",\"stat_time\":\"2011-04-20T10:00:00Z\",\"id\":6703,\"vm_billing_stat_id\":863,\"user_id\":1,\"billing_stats\":{},\"virtual_machine_id\":55}},{\"vm_stats\":{\"created_at\":\"2011-04-20T11:00:07Z\",\"cost\":0.0,\"updated_at\":\"2011-04-20T11:00:07Z\",\"stat_time\":\"2011-04-20T11:00:00Z\",\"id\":6713,\"vm_billing_stat_id\":863,\"user_id\":1,\"billing_stats\":{},\"virtual_machine_id\":55}}]"
39
+ body: "[]"
40
40
  http_version: "1.1"
@@ -2,13 +2,13 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://user:pass@www.example.com:80/users/2/suspend.json
5
+ uri: http://<USER>:<PASS>@<URL>:80/users/1/suspend.json
6
6
  body:
7
7
  headers:
8
8
  content-type:
9
9
  - application/json
10
10
  authorization:
11
- - Basic WHAT
11
+ - Basic <REDACTED>
12
12
  response: !ruby/struct:VCR::Response
13
13
  status: !ruby/struct:VCR::ResponseStatus
14
14
  code: 200
@@ -17,24 +17,24 @@
17
17
  x-ua-compatible:
18
18
  - IE=Edge,chrome=1
19
19
  etag:
20
- - "\"a5c9922db044a7fe1d7e62c494b9c223\""
20
+ - "\"0ea64ec8fa7399d101b1ac952dfdc53c\""
21
21
  x-powered-by:
22
22
  - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
23
  content-type:
24
24
  - application/json; charset=utf-8
25
25
  x-runtime:
26
- - "2.092058"
26
+ - "0.524979"
27
27
  server:
28
28
  - Apache/2.2.3 (CentOS)
29
29
  date:
30
- - Wed, 13 Apr 2011 21:00:25 GMT
30
+ - Fri, 10 Feb 2012 17:10:07 GMT
31
31
  set-cookie:
32
- - _onapp_session=WHAT; path=/; HttpOnly
32
+ - <REDACTED>
33
33
  status:
34
34
  - "200"
35
35
  cache-control:
36
36
  - max-age=0, private, must-revalidate
37
37
  transfer-encoding:
38
38
  - chunked
39
- body: "{\"user\":{\"activated_at\":\"2011-04-13T15:13:35Z\",\"created_at\":\"2011-04-13T15:13:35Z\",\"total_amount\":0.0,\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":null,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2011-04-13T21:00:26Z\",\"used_disk_size\":0,\"used_cpus\":0,\"used_cpu_shares\":0,\"activation_code\":null,\"billing_plan_id\":1,\"group_id\":null,\"id\":2,\"used_memory\":0,\"payment_amount\":\"0.0\",\"last_name\":\"last\",\"remember_token\":null,\"disk_space_available\":null,\"time_zone\":null,\"login\":\"testing\",\"status\":\"suspended\",\"roles\":[{\"role\":{\"label\":\"User\",\"created_at\":\"2011-04-13T14:37:38Z\",\"updated_at\":\"2011-04-13T14:37:38Z\",\"id\":2,\"identifier\":\"user\"}}],\"outstanding_amount\":0.0,\"email\":\"test@example.com\",\"first_name\":\"first\"}}"
39
+ body: "{\"user\":{\"aflexi_user_id\":614389567,\"total_amount\":2.342100018167e+28,\"activated_at\":\"2010-12-28T15:17:54Z\",\"created_at\":\"2010-10-27T10:08:40Z\",\"aflexi_password\":\"0QWXUCnSgDwt\",\"cdn_account_status\":\"ACTIVE\",\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":5935,\"used_disk_size\":12,\"used_ip_addresses\":[{\"ip_address\":{\"address\":\"109.123.105.210\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":15,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"109.123.105.215\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.240\",\"created_at\":\"2010-10-27T15:28:22Z\",\"broadcast\":\"109.123.105.223\",\"updated_at\":\"2011-10-10T09:03:14Z\",\"network_id\":1,\"network_address\":\"109.123.105.208\",\"id\":20,\"free\":false,\"gateway\":\"109.123.105.209\"}},{\"ip_address\":{\"address\":\"83.170.67.234\",\"disallowed_primary\":false,\"netmask\":\"255.255.255.224\",\"created_at\":\"2011-01-20T11:23:31Z\",\"broadcast\":\"83.170.67.255\",\"updated_at\":\"2011-10-10T09:15:15Z\",\"network_id\":1,\"network_address\":\"83.170.67.224\",\"id\":33451,\"free\":false,\"gateway\":\"83.170.67.225\"}}],\"deleted_at\":null,\"updated_at\":\"2012-02-10T17:05:55Z\",\"used_cpu_shares\":2,\"used_cpus\":2,\"billing_plan_id\":41,\"cdn_status\":\"ACTIVE\",\"group_id\":1,\"id\":1,\"update_billing_stat\":false,\"used_memory\":384,\"aflexi_key\":null,\"user_group_id\":4,\"payment_amount\":\"1003000.0\",\"last_name\":\"Smith\",\"remember_token\":null,\"disk_space_available\":460,\"image_template_group_id\":null,\"locale\":\"en\",\"time_zone\":\"Kyiv\",\"login\":\"admin\",\"status\":\"suspended\",\"outstanding_amount\":2.342100018167e+28,\"roles\":[{\"role\":{\"label\":\"administrator\",\"created_at\":\"2012-02-10T09:45:16Z\",\"updated_at\":\"2012-02-10T14:35:55Z\",\"id\":405,\"permissions\":[{\"permission\":{\"label\":\"Any action on Autoscaling Configuration\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:18Z\",\"id\":307,\"identifier\":\"auto_scalings\"}},{\"permission\":{\"label\":\"Any action on autobackup templates\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":168,\"identifier\":\"autobackup_templates\"}},{\"permission\":{\"label\":\"Any action on backups\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":44,\"identifier\":\"backups\"}},{\"permission\":{\"label\":\"Any action on resources\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":191,\"identifier\":\"base_resources\"}},{\"permission\":{\"label\":\"Any action on billing plans\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":185,\"identifier\":\"billing_plans\"}},{\"permission\":{\"label\":\"Any action on CDN resource\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":328,\"identifier\":\"cdn_resources\"}},{\"permission\":{\"label\":\"See details of CDN usage statistics\",\"created_at\":\"2011-07-20T16:20:15Z\",\"updated_at\":\"2011-12-06T16:40:13Z\",\"id\":296,\"identifier\":\"cdn_usage_stats\"}},{\"permission\":{\"label\":\"Any action with Currencies\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":269,\"identifier\":\"currencies\"}},{\"permission\":{\"label\":\"All actions on Dashboard\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":123,\"identifier\":\"dashboard\"}},{\"permission\":{\"label\":\"All actions on datastores on Hypervisor\",\"created_at\":\"2010-10-27T10:08:30Z\",\"updated_at\":\"2010-10-27T10:08:30Z\",\"id\":164,\"identifier\":\"data_store_joins\"}},{\"permission\":{\"label\":\"Any action on data store zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":173,\"identifier\":\"data_store_zones\"}},{\"permission\":{\"label\":\"Any action on data_stores\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":55,\"identifier\":\"data_stores\"}},{\"permission\":{\"label\":\"Any action on disks\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":24,\"identifier\":\"disks\"}},{\"permission\":{\"label\":\"Any action on edge group\",\"created_at\":\"2011-10-10T09:15:17Z\",\"updated_at\":\"2011-10-10T09:15:17Z\",\"id\":323,\"identifier\":\"edge_groups\"}},{\"permission\":{\"label\":\"Any action on Edge Server\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":347,\"identifier\":\"edge_servers\"}},{\"permission\":{\"label\":\"Any action with Firewall Rules \",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":274,\"identifier\":\"firewall_rules\"}},{\"permission\":{\"label\":\"Any action on groups\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":96,\"identifier\":\"groups\"}},{\"permission\":{\"label\":\"All actions on Help\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":125,\"identifier\":\"help\"}},{\"permission\":{\"label\":\"Any action on hypervisor zones\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":211,\"identifier\":\"hypervisor_zones\"}},{\"permission\":{\"label\":\"Any action on hypervisors\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":19,\"identifier\":\"hypervisors\"}},{\"permission\":{\"label\":\"Any action on template groups\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":249,\"identifier\":\"image_template_groups\"}},{\"permission\":{\"label\":\"Full access to IO Statistics\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":227,\"identifier\":\"io_stats\"}},{\"permission\":{\"label\":\"All actions on virtual machine's IP addresses\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":145,\"identifier\":\"ip_address_joins\"}},{\"permission\":{\"label\":\"Any action on ip addresses\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":70,\"identifier\":\"ip_addresses\"}},{\"permission\":{\"label\":\"Any action on mounting ISO\",\"created_at\":\"2011-07-20T15:49:08Z\",\"updated_at\":\"2011-07-20T15:49:08Z\",\"id\":217,\"identifier\":\"iso_joins\"}},{\"permission\":{\"label\":\"Any action on isos\",\"created_at\":\"2011-07-20T15:49:06Z\",\"updated_at\":\"2011-07-20T15:49:06Z\",\"id\":198,\"identifier\":\"isos\"}},{\"permission\":{\"label\":\"Any action on Load Balancer\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":362,\"identifier\":\"load_balancers\"}},{\"permission\":{\"label\":\"Any action on relation load_balancing\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":299,\"identifier\":\"load_balancing_clusters\"}},{\"permission\":{\"label\":\"Any action on log items\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":155,\"identifier\":\"log_items\"}},{\"permission\":{\"label\":\"Any action on relation monitis monitors\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":316,\"identifier\":\"monitis_monitors\"}},{\"permission\":{\"label\":\"Full access to Mounthly Bills Statistics\",\"created_at\":\"2011-07-20T16:31:12Z\",\"updated_at\":\"2011-07-20T16:31:12Z\",\"id\":318,\"identifier\":\"monthly_bills\"}},{\"permission\":{\"label\":\"Any action on nameservers\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":75,\"identifier\":\"nameservers\"}},{\"permission\":{\"label\":\"Any action on network zones\",\"created_at\":\"2011-07-20T15:49:03Z\",\"updated_at\":\"2011-07-20T15:49:03Z\",\"id\":179,\"identifier\":\"network_zones\"}},{\"permission\":{\"label\":\"Any action on networks\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":65,\"identifier\":\"networks\"}},{\"permission\":{\"label\":\"Any action on payments\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":101,\"identifier\":\"payments\"}},{\"permission\":{\"label\":\"Any action on permissions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":60,\"identifier\":\"permissions\"}},{\"permission\":{\"label\":\"Any action on relation group_templates\",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":264,\"identifier\":\"relation_group_templates\"}},{\"permission\":{\"label\":\"Any action on resource limit\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":85,\"identifier\":\"resource_limits\"}},{\"permission\":{\"label\":\"Any action on Roles\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":91,\"identifier\":\"roles\"}},{\"permission\":{\"label\":\"Any action on schedule logs\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":136,\"identifier\":\"schedule_logs\"}},{\"permission\":{\"label\":\"Any action on schedules\",\"created_at\":\"2010-10-27T10:08:29Z\",\"updated_at\":\"2010-10-27T10:08:29Z\",\"id\":126,\"identifier\":\"schedules\"}},{\"permission\":{\"label\":\"Any action on Settings\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":107,\"identifier\":\"settings\"}},{\"permission\":{\"label\":\"All actions on Sysadmin Tools\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":124,\"identifier\":\"sysadmin_tools\"}},{\"permission\":{\"label\":\"Any action on template sets\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":363,\"identifier\":\"template_sets\"}},{\"permission\":{\"label\":\"Any action on templates\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":32,\"identifier\":\"templates\"}},{\"permission\":{\"label\":\"Any action on Themes\",\"created_at\":\"2011-07-20T16:20:11Z\",\"updated_at\":\"2011-07-20T16:20:11Z\",\"id\":286,\"identifier\":\"themes\"}},{\"permission\":{\"label\":\"Any action on transactions\",\"created_at\":\"2010-10-27T10:08:27Z\",\"updated_at\":\"2010-10-27T10:08:27Z\",\"id\":82,\"identifier\":\"transactions\"}},{\"permission\":{\"label\":\"Any action on user groups\",\"created_at\":\"2011-07-20T16:20:09Z\",\"updated_at\":\"2011-07-20T16:20:09Z\",\"id\":243,\"identifier\":\"user_groups\"}},{\"permission\":{\"label\":\"Any action with White IP list \",\"created_at\":\"2011-07-20T16:20:10Z\",\"updated_at\":\"2011-07-20T16:20:10Z\",\"id\":255,\"identifier\":\"user_white_lists\"}},{\"permission\":{\"label\":\"Any action on users\",\"created_at\":\"2010-10-27T10:08:26Z\",\"updated_at\":\"2010-10-27T10:08:26Z\",\"id\":11,\"identifier\":\"users\"}},{\"permission\":{\"label\":\"Any action on virtual machines\",\"created_at\":\"2010-10-27T10:08:25Z\",\"updated_at\":\"2010-10-27T10:08:25Z\",\"id\":1,\"identifier\":\"virtual_machines\"}},{\"permission\":{\"label\":\"Full access to Statistics\",\"created_at\":\"2010-10-27T10:08:28Z\",\"updated_at\":\"2010-10-27T10:08:28Z\",\"id\":116,\"identifier\":\"vm_stats\"}},{\"permission\":{\"label\":\"Add ssh keys for all the virtual machines\",\"created_at\":\"2011-10-10T09:15:18Z\",\"updated_at\":\"2011-10-10T09:15:18Z\",\"id\":360,\"identifier\":\"ssh_keys.add\"}}],\"identifier\":\"r5yzw8wkarmh93\"}}],\"aflexi_username\":\"onapp-pub-1-a3ef742fb21ca0a8900a41c71183e4a0\",\"email\":\"admin@example.com\",\"first_name\":\"Test\"}}"
40
40
  http_version: "1.1"