brightbox-cli 3.3.0 → 4.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +1 -0
  3. data/.github/workflows/ruby.yml +1 -1
  4. data/.gitignore +1 -1
  5. data/.rubocop.yml +70 -0
  6. data/CHANGELOG.md +52 -0
  7. data/Gemfile.lock +66 -39
  8. data/README +11 -16
  9. data/README.rdoc +1 -1
  10. data/brightbox-cli.gemspec +20 -33
  11. data/lib/brightbox-cli/accounts.rb +9 -11
  12. data/lib/brightbox-cli/api.rb +38 -36
  13. data/lib/brightbox-cli/cloud_ips.rb +8 -8
  14. data/lib/brightbox-cli/collaborating_account.rb +5 -5
  15. data/lib/brightbox-cli/collaboration.rb +1 -1
  16. data/lib/brightbox-cli/commands/accounts/{accept-invite.rb → accept_invite.rb} +2 -6
  17. data/lib/brightbox-cli/commands/accounts/default.rb +1 -2
  18. data/lib/brightbox-cli/commands/accounts/list.rb +6 -8
  19. data/lib/brightbox-cli/commands/accounts/remove.rb +2 -6
  20. data/lib/brightbox-cli/commands/accounts/{reset-ftp-password.rb → reset_ftp_password.rb} +6 -9
  21. data/lib/brightbox-cli/commands/accounts/show.rb +10 -13
  22. data/lib/brightbox-cli/commands/cloudips/create.rb +2 -5
  23. data/lib/brightbox-cli/commands/cloudips/destroy.rb +10 -14
  24. data/lib/brightbox-cli/commands/cloudips/list.rb +0 -2
  25. data/lib/brightbox-cli/commands/cloudips/map.rb +10 -13
  26. data/lib/brightbox-cli/commands/cloudips/show.rb +11 -14
  27. data/lib/brightbox-cli/commands/cloudips/unmap.rb +2 -4
  28. data/lib/brightbox-cli/commands/cloudips/update.rb +2 -4
  29. data/lib/brightbox-cli/commands/collaborations.rb +2 -3
  30. data/lib/brightbox-cli/commands/config/{client-add.rb → client_add.rb} +0 -3
  31. data/lib/brightbox-cli/commands/config/client_default.rb +18 -0
  32. data/lib/brightbox-cli/commands/config/{client-list.rb → client_list.rb} +1 -4
  33. data/lib/brightbox-cli/commands/config/{client-remove.rb → client_remove.rb} +0 -3
  34. data/lib/brightbox-cli/commands/config/{user-add.rb → user_add.rb} +1 -4
  35. data/lib/brightbox-cli/commands/firewall/{policies-apply.rb → policies_apply.rb} +2 -2
  36. data/lib/brightbox-cli/commands/firewall/{policies-create.rb → policies_create.rb} +2 -4
  37. data/lib/brightbox-cli/commands/firewall/{policies-destroy.rb → policies_destroy.rb} +0 -3
  38. data/lib/brightbox-cli/commands/firewall/{policies-list.rb → policies_list.rb} +0 -2
  39. data/lib/brightbox-cli/commands/firewall/{policies-remove.rb → policies_remove.rb} +2 -2
  40. data/lib/brightbox-cli/commands/firewall/{policies-show.rb → policies_show.rb} +6 -8
  41. data/lib/brightbox-cli/commands/firewall/{policies-update.rb → policies_update.rb} +2 -4
  42. data/lib/brightbox-cli/commands/firewall/{rules-create.rb → rules_create.rb} +6 -8
  43. data/lib/brightbox-cli/commands/firewall/{rules-destroy.rb → rules_destroy.rb} +0 -2
  44. data/lib/brightbox-cli/commands/firewall/{rules-list.rb → rules_list.rb} +0 -2
  45. data/lib/brightbox-cli/commands/firewall/{rules-show.rb → rules_show.rb} +7 -9
  46. data/lib/brightbox-cli/commands/firewall/{rules-update.rb → rules_update.rb} +7 -8
  47. data/lib/brightbox-cli/commands/groups/{add-server.rb → add_server.rb} +0 -2
  48. data/lib/brightbox-cli/commands/groups/create.rb +2 -3
  49. data/lib/brightbox-cli/commands/groups/destroy.rb +0 -2
  50. data/lib/brightbox-cli/commands/groups/list.rb +0 -1
  51. data/lib/brightbox-cli/commands/groups/move_servers.rb +2 -3
  52. data/lib/brightbox-cli/commands/groups/{remove-servers.rb → remove_servers.rb} +2 -4
  53. data/lib/brightbox-cli/commands/groups/show.rb +0 -2
  54. data/lib/brightbox-cli/commands/groups/update.rb +2 -3
  55. data/lib/brightbox-cli/commands/images/destroy.rb +0 -4
  56. data/lib/brightbox-cli/commands/images/list.rb +3 -5
  57. data/lib/brightbox-cli/commands/images/register.rb +9 -17
  58. data/lib/brightbox-cli/commands/images/show.rb +19 -20
  59. data/lib/brightbox-cli/commands/images/update.rb +12 -8
  60. data/lib/brightbox-cli/commands/lbs/{add-nodes.rb → add_nodes.rb} +0 -3
  61. data/lib/brightbox-cli/commands/lbs/create.rb +5 -7
  62. data/lib/brightbox-cli/commands/lbs/destroy.rb +0 -3
  63. data/lib/brightbox-cli/commands/lbs/list.rb +0 -1
  64. data/lib/brightbox-cli/commands/lbs/{remove-nodes.rb → remove_nodes.rb} +0 -3
  65. data/lib/brightbox-cli/commands/lbs/show.rb +20 -22
  66. data/lib/brightbox-cli/commands/lbs/update.rb +6 -9
  67. data/lib/brightbox-cli/commands/login.rb +13 -12
  68. data/lib/brightbox-cli/commands/servers/{activate-console.rb → activate_console.rb} +2 -5
  69. data/lib/brightbox-cli/commands/servers/create.rb +24 -25
  70. data/lib/brightbox-cli/commands/servers/destroy.rb +0 -3
  71. data/lib/brightbox-cli/commands/servers/list.rb +4 -5
  72. data/lib/brightbox-cli/commands/servers/show.rb +0 -2
  73. data/lib/brightbox-cli/commands/servers/shutdown.rb +0 -3
  74. data/lib/brightbox-cli/commands/servers/snapshot.rb +0 -4
  75. data/lib/brightbox-cli/commands/servers/start.rb +0 -4
  76. data/lib/brightbox-cli/commands/servers/stop.rb +0 -3
  77. data/lib/brightbox-cli/commands/servers/update.rb +5 -5
  78. data/lib/brightbox-cli/commands/sql/instances_create.rb +3 -6
  79. data/lib/brightbox-cli/commands/sql/instances_destroy.rb +0 -2
  80. data/lib/brightbox-cli/commands/sql/instances_list.rb +7 -9
  81. data/lib/brightbox-cli/commands/sql/instances_reset_password.rb +0 -1
  82. data/lib/brightbox-cli/commands/sql/instances_show.rb +0 -3
  83. data/lib/brightbox-cli/commands/sql/instances_snapshot.rb +0 -3
  84. data/lib/brightbox-cli/commands/sql/instances_update.rb +1 -3
  85. data/lib/brightbox-cli/commands/sql/snapshots_destroy.rb +0 -3
  86. data/lib/brightbox-cli/commands/sql/snapshots_list.rb +7 -9
  87. data/lib/brightbox-cli/commands/sql/snapshots_show.rb +12 -15
  88. data/lib/brightbox-cli/commands/sql/snapshots_update.rb +1 -3
  89. data/lib/brightbox-cli/commands/sql/types.rb +8 -15
  90. data/lib/brightbox-cli/commands/token.rb +0 -1
  91. data/lib/brightbox-cli/commands/types.rb +8 -14
  92. data/lib/brightbox-cli/commands/{user-collaborations.rb → user_collaborations.rb} +7 -8
  93. data/lib/brightbox-cli/commands/users/list.rb +0 -2
  94. data/lib/brightbox-cli/commands/users/show.rb +1 -3
  95. data/lib/brightbox-cli/commands/users/update.rb +3 -6
  96. data/lib/brightbox-cli/commands/zones.rb +7 -10
  97. data/lib/brightbox-cli/config/accounts.rb +18 -26
  98. data/lib/brightbox-cli/config/api_client.rb +12 -16
  99. data/lib/brightbox-cli/config/authentication_tokens.rb +39 -42
  100. data/lib/brightbox-cli/config/cache.rb +1 -0
  101. data/lib/brightbox-cli/config/clients.rb +8 -8
  102. data/lib/brightbox-cli/config/gpg_encrypted_passwords.rb +6 -8
  103. data/lib/brightbox-cli/config/password_helper.rb +33 -8
  104. data/lib/brightbox-cli/config/sections.rb +45 -29
  105. data/lib/brightbox-cli/config/two_factor_auth.rb +12 -14
  106. data/lib/brightbox-cli/config/two_factor_helper.rb +5 -7
  107. data/lib/brightbox-cli/config/user_application.rb +18 -18
  108. data/lib/brightbox-cli/config.rb +26 -23
  109. data/lib/brightbox-cli/connection_manager.rb +4 -2
  110. data/lib/brightbox-cli/database_server.rb +28 -29
  111. data/lib/brightbox-cli/database_snapshot.rb +1 -1
  112. data/lib/brightbox-cli/database_type.rb +6 -6
  113. data/lib/brightbox-cli/detailed_server.rb +43 -43
  114. data/lib/brightbox-cli/detailed_server_group.rb +1 -1
  115. data/lib/brightbox-cli/error_parser.rb +9 -9
  116. data/lib/brightbox-cli/firewall_policy.rb +2 -1
  117. data/lib/brightbox-cli/firewall_rule.rb +3 -3
  118. data/lib/brightbox-cli/firewall_rules.rb +3 -3
  119. data/lib/brightbox-cli/gli_global_hooks.rb +25 -27
  120. data/lib/brightbox-cli/images.rb +14 -12
  121. data/lib/brightbox-cli/load_balancers.rb +3 -6
  122. data/lib/brightbox-cli/logging.rb +14 -14
  123. data/lib/brightbox-cli/nilable_hash.rb +1 -1
  124. data/lib/brightbox-cli/ruby_core_ext.rb +3 -3
  125. data/lib/brightbox-cli/server_groups.rb +2 -2
  126. data/lib/brightbox-cli/servers.rb +6 -6
  127. data/lib/brightbox-cli/tables.rb +13 -15
  128. data/lib/brightbox-cli/types.rb +6 -6
  129. data/lib/brightbox-cli/user_collaboration.rb +5 -7
  130. data/lib/brightbox-cli/users.rb +1 -1
  131. data/lib/brightbox-cli/version.rb +1 -1
  132. data/lib/brightbox-cli/zones.rb +1 -1
  133. data/lib/brightbox_cli.rb +33 -33
  134. data/spec/brightbox_spec.rb +0 -1
  135. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml +5 -5
  136. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml +2 -2
  137. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_a_collection_of_Accounts.yml +4 -4
  138. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_resources_on_the_same_connection.yml +2 -2
  139. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_config_exists_and_overwrite_duplicates_is_false/does_not_update_the_config_file.yml +12 -12
  140. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_config_exists_and_overwrite_duplicates_is_true/does_not_update_the_config_file.yml +12 -12
  141. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_changes_to_the_config_file.yml +2 -2
  142. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_default_account.yml +2 -2
  143. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_new_client_as_the_default.yml +2 -2
  144. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +8 -8
  145. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +8 -8
  146. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_config_in_use_is_not_the_default/uses_correct_credentials.yml +1 -1
  147. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_a_cached_refresh_token/caches_the_new_tokens.yml +1 -1
  148. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_an_expired_refresh_token/caches_the_new_tokens.yml +2 -2
  149. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/caches_the_new_tokens.yml +1 -1
  150. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/prompts_user_to_retry_command.yml +1 -1
  151. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_an_API_client_with_no_tokens/caches_a_new_access_token.yml +1 -1
  152. data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/does_not_alter_the_configuration.yml +6 -6
  153. data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/updates_access_token.yml +6 -6
  154. data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/updates_refresh_token.yml +6 -6
  155. data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/does_not_alter_the_configuration.yml +6 -6
  156. data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/updates_access_token.yml +6 -6
  157. data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/updates_refresh_token.yml +6 -6
  158. data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/does_not_alter_the_configuration.yml +9 -9
  159. data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/updates_access_token.yml +9 -9
  160. data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/updates_refresh_token.yml +9 -9
  161. data/spec/cassettes/Brightbox_BBConfig_add_login/when_no_config_exists/creates_the_configuration.yml +6 -6
  162. data/spec/cassettes/Brightbox_BBConfig_add_login/when_no_config_exists/refreshed_tokens.yml +6 -6
  163. data/spec/cassettes/Brightbox_BBConfig_add_login/when_using_an_email_and_suffix/creates_the_configuration.yml +6 -6
  164. data/spec/cassettes/Brightbox_BBConfig_add_login/when_using_an_email_and_suffix/refreshed_tokens.yml +6 -6
  165. data/spec/cassettes/Brightbox_CloudIP/_find_all_/when_a_Cloud_IP_exists/returns_a_suitable.yml +15 -15
  166. data/spec/cassettes/Brightbox_FirewallPolicy/_apply_to/should_apply_firewall_policy.yml +14 -14
  167. data/spec/cassettes/Brightbox_FirewallPolicy/_create/should_create_firewall_policy.yml +14 -14
  168. data/spec/cassettes/Brightbox_FirewallPolicy/_destroy/should_destroy_firewall_policy.yml +16 -16
  169. data/spec/cassettes/Brightbox_FirewallPolicy/_find_all_/when_a_policy_exists/should_list_firewall_policy.yml +13 -13
  170. data/spec/cassettes/Brightbox_FirewallPolicy/_find_or_call/when_a_policy_exists/should_show_firewall_policy.yml +11 -11
  171. data/spec/cassettes/Brightbox_FirewallRule/_create/when_policy_exists/creates_the_rule_successfully.yml +14 -14
  172. data/spec/cassettes/Brightbox_FirewallRule/_destroy/when_rule_exists/destroys_a_rule.yml +12 -12
  173. data/spec/cassettes/Brightbox_FirewallRule/_find/when_rule_exists/can_display_the_result.yml +14 -14
  174. data/spec/cassettes/Brightbox_FirewallRule/_from_policy/when_policy_exists_with_a_rule/lists_all_rules.yml +19 -19
  175. data/spec/cassettes/Brightbox_Server/_destroy/when_server_exists/should_work.yml +12 -12
  176. data/spec/cassettes/Brightbox_Server/_find_all_/when_a_server_exists/should_print_server_list.yml +15 -15
  177. data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +18 -18
  178. data/spec/cassettes/Brightbox_Server/_shutdown/should_work.yml +18 -18
  179. data/spec/cassettes/Brightbox_Server/_start/should_work.yml +24 -24
  180. data/spec/cassettes/Brightbox_Server/_stop/should_work.yml +18 -18
  181. data/spec/cassettes/Brightbox_Server/_update/when_passing_new_group_membership/should_update_with_group.yml +22 -22
  182. data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml +13 -13
  183. data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +3 -3
  184. data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +30 -30
  185. data/spec/cassettes/brightbox_accounts/list/_when_both_tokens_expired_/does_not_report_invalid_token_errors.yml +9 -9
  186. data/spec/cassettes/brightbox_accounts/list/_when_invalid_tokens_/does_not_report_invalid_token_errors.yml +9 -9
  187. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +27 -27
  188. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/reports_they_were_updated.yml +7 -7
  189. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml +7 -7
  190. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml +6 -6
  191. data/spec/cassettes/brightbox_accounts/list/does_not_error.yml +3 -3
  192. data/spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml +12 -12
  193. data/spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml +7 -7
  194. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +7 -7
  195. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +7 -7
  196. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +7 -7
  197. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +7 -7
  198. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +7 -7
  199. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +7 -7
  200. data/spec/cassettes/brightbox_config/user_add/when_NO_config_file_on_disk/sets_up_the_config.yml +5 -5
  201. data/spec/cassettes/brightbox_config/user_add/when_a_default_client_is_already_set/does_not_change_the_default_client.yml +2 -2
  202. data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/does_not_error.yml +2 -2
  203. data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/sets_up_the_config.yml +2 -2
  204. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/display_an_warning_about_preselected_default.yml +2 -2
  205. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/does_not_error.yml +2 -2
  206. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/selects_the_active_account_for_the_default.yml +2 -2
  207. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/sets_up_the_config.yml +2 -2
  208. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/display_an_warning_about_preselected_default.yml +2 -2
  209. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/does_not_error.yml +2 -2
  210. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/sets_up_the_config.yml +2 -2
  211. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_error.yml +2 -2
  212. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_prompt_to_rerun_the_command.yml +2 -2
  213. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/requests_access_tokens.yml +2 -2
  214. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +2 -2
  215. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +5 -5
  216. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_error.yml +2 -2
  217. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_prompt_to_rerun_the_command.yml +2 -2
  218. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/requests_access_tokens.yml +2 -2
  219. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/sets_up_the_config.yml +3 -3
  220. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml +2 -2
  221. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml +2 -2
  222. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml +2 -2
  223. data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/does_not_error.yml +6 -6
  224. data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/does_not_prompt_to_rerun_the_command.yml +6 -6
  225. data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/prompts_for_the_password.yml +6 -6
  226. data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/requests_access_tokens.yml +6 -6
  227. data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/sets_up_the_config.yml +6 -6
  228. data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/does_not_error.yml +6 -6
  229. data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/does_not_prompt_to_rerun_the_command.yml +6 -6
  230. data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/prompts_for_the_password.yml +6 -6
  231. data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/requests_access_tokens.yml +6 -6
  232. data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/sets_up_the_config.yml +6 -6
  233. data/spec/cassettes/brightbox_login/when_default_account_is_passed/does_not_error.yml +3 -3
  234. data/spec/cassettes/brightbox_login/when_default_account_is_passed/does_not_prompt_to_rerun_the_command.yml +3 -3
  235. data/spec/cassettes/brightbox_login/when_default_account_is_passed/prompts_for_the_password.yml +3 -3
  236. data/spec/cassettes/brightbox_login/when_default_account_is_passed/requests_access_tokens.yml +3 -3
  237. data/spec/cassettes/brightbox_login/when_default_account_is_passed/sets_up_the_config.yml +3 -3
  238. data/spec/cassettes/brightbox_login/when_no_config_is_present/does_not_error.yml +6 -6
  239. data/spec/cassettes/brightbox_login/when_no_config_is_present/does_not_prompt_to_rerun_the_command.yml +6 -6
  240. data/spec/cassettes/brightbox_login/when_no_config_is_present/requests_access_tokens.yml +6 -6
  241. data/spec/cassettes/brightbox_login/when_no_config_is_present/sets_up_the_config.yml +6 -6
  242. data/spec/cassettes/brightbox_login/when_no_password_is_given/does_not_error.yml +6 -6
  243. data/spec/cassettes/brightbox_login/when_no_password_is_given/does_not_prompt_to_rerun_the_command.yml +6 -6
  244. data/spec/cassettes/brightbox_login/when_no_password_is_given/prompts_for_the_password.yml +6 -6
  245. data/spec/cassettes/brightbox_login/when_no_password_is_given/requests_access_tokens.yml +6 -6
  246. data/spec/cassettes/brightbox_login/when_no_password_is_given/sets_up_the_config.yml +6 -6
  247. data/spec/cassettes/brightbox_sql_instances/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml +313 -26
  248. data/spec/cassettes/brightbox_sql_instances/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml +1204 -38
  249. data/spec/cassettes/brightbox_sql_instances/create/--engine_mysql/correctly_sends_API_parameters.yml +596 -26
  250. data/spec/cassettes/brightbox_sql_instances/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml +63 -9
  251. data/spec/cassettes/brightbox_sql_instances/create/--engine_mysql_--engine-version_8_0/correctly_sends_API_parameters.yml +393 -0
  252. data/spec/cassettes/brightbox_sql_instances/create/--maintenance-weekday_5_--maintenance_hour_11/correctly_sends_API_parameters.yml +393 -0
  253. data/spec/cassettes/brightbox_sql_instances/create/--maintenance-weekday_thursday/correctly_sends_API_parameters.yml +393 -0
  254. data/spec/cassettes/brightbox_sql_instances/create/--snapshot_dbi-12345/includes_schedule_fields_in_response.yml +1466 -0
  255. data/spec/cassettes/brightbox_sql_instances/create/--snapshots-schedule_0_12_4_/includes_schedule_fields_in_response.yml +342 -0
  256. data/spec/cassettes/brightbox_sql_instances/create/without_arguments/reports_the_new_admin_password.yml +541 -26
  257. data/spec/cassettes/brightbox_sql_instances/create/without_arguments/reports_the_new_admin_username.yml +484 -26
  258. data/spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_active/correctly_sends_API_parameters.yml +4 -4
  259. data/spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml +2 -2
  260. data/spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml +2 -2
  261. data/spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml +2 -2
  262. data/spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +2 -2
  263. data/spec/commands/accounts/default_spec.rb +1 -2
  264. data/spec/commands/accounts/list_spec.rb +7 -8
  265. data/spec/commands/accounts/reset_ftp_password_spec.rb +1 -2
  266. data/spec/commands/accounts/show_spec.rb +1 -2
  267. data/spec/commands/cloudips/create_spec.rb +1 -2
  268. data/spec/commands/cloudips/destroy_spec.rb +1 -2
  269. data/spec/commands/cloudips/list_spec.rb +1 -2
  270. data/spec/commands/cloudips/map_spec.rb +2 -3
  271. data/spec/commands/cloudips/show_spec.rb +1 -2
  272. data/spec/commands/cloudips/unmap_spec.rb +1 -2
  273. data/spec/commands/cloudips/update_spec.rb +7 -8
  274. data/spec/commands/config/client_add_spec.rb +2 -3
  275. data/spec/commands/config/client_default_spec.rb +1 -2
  276. data/spec/commands/config/client_list_spec.rb +1 -2
  277. data/spec/commands/config/client_remove_spec.rb +1 -2
  278. data/spec/commands/config/user_add_spec.rb +3 -4
  279. data/spec/commands/firewall_policies/update_spec.rb +3 -3
  280. data/spec/commands/groups/add_server_spec.rb +1 -2
  281. data/spec/commands/groups/create_spec.rb +1 -2
  282. data/spec/commands/groups/destroy_spec.rb +1 -2
  283. data/spec/commands/groups/list_spec.rb +1 -2
  284. data/spec/commands/groups/move_servers_spec.rb +1 -2
  285. data/spec/commands/groups/remove_servers_spec.rb +1 -2
  286. data/spec/commands/groups/show_spec.rb +1 -2
  287. data/spec/commands/groups/update_spec.rb +1 -2
  288. data/spec/commands/images/destroy_spec.rb +1 -2
  289. data/spec/commands/images/list_spec.rb +62 -63
  290. data/spec/commands/images/locking_spec.rb +4 -4
  291. data/spec/commands/images/register_spec.rb +89 -3
  292. data/spec/commands/images/show_spec.rb +56 -4
  293. data/spec/commands/images/update_spec.rb +53 -3
  294. data/spec/commands/lbs/add_nodes_spec.rb +1 -2
  295. data/spec/commands/lbs/create_spec.rb +2 -3
  296. data/spec/commands/lbs/destroy_spec.rb +1 -2
  297. data/spec/commands/lbs/list_spec.rb +1 -2
  298. data/spec/commands/lbs/locking_spec.rb +4 -4
  299. data/spec/commands/lbs/remove_nodes_spec.rb +1 -2
  300. data/spec/commands/lbs/show_spec.rb +1 -2
  301. data/spec/commands/lbs/update_spec.rb +3 -4
  302. data/spec/commands/login_spec.rb +134 -30
  303. data/spec/commands/policies/apply_spec.rb +1 -2
  304. data/spec/commands/policies/create_spec.rb +1 -2
  305. data/spec/commands/policies/destroy_spec.rb +1 -2
  306. data/spec/commands/policies/list_spec.rb +1 -2
  307. data/spec/commands/policies/remove_spec.rb +1 -2
  308. data/spec/commands/policies/show_spec.rb +1 -2
  309. data/spec/commands/policies/update_spec.rb +1 -2
  310. data/spec/commands/rules/create_spec.rb +1 -2
  311. data/spec/commands/rules/destroy_spec.rb +1 -2
  312. data/spec/commands/rules/list_spec.rb +1 -2
  313. data/spec/commands/rules/show_spec.rb +1 -2
  314. data/spec/commands/rules/update_spec.rb +1 -2
  315. data/spec/commands/servers/activate_console_spec.rb +1 -2
  316. data/spec/commands/servers/create_spec.rb +10 -10
  317. data/spec/commands/servers/destroy_spec.rb +1 -2
  318. data/spec/commands/servers/list_spec.rb +1 -2
  319. data/spec/commands/servers/locking_spec.rb +4 -4
  320. data/spec/commands/servers/reboot_spec.rb +3 -4
  321. data/spec/commands/servers/reset_spec.rb +3 -4
  322. data/spec/commands/servers/show_spec.rb +1 -2
  323. data/spec/commands/servers/shutdown_spec.rb +1 -2
  324. data/spec/commands/servers/snapshot_spec.rb +1 -2
  325. data/spec/commands/servers/start_spec.rb +1 -2
  326. data/spec/commands/servers/stop_spec.rb +1 -2
  327. data/spec/commands/servers/update_spec.rb +1 -2
  328. data/spec/commands/sql/instances/create_spec.rb +58 -75
  329. data/spec/commands/sql/instances/locking_spec.rb +4 -4
  330. data/spec/commands/sql/instances/show_spec.rb +7 -7
  331. data/spec/commands/sql/instances/snapshot_spec.rb +2 -2
  332. data/spec/commands/sql/instances/update_spec.rb +8 -8
  333. data/spec/commands/sql/snapshots/list_spec.rb +1 -1
  334. data/spec/commands/sql/snapshots/locking_spec.rb +4 -4
  335. data/spec/commands/sql/snapshots/show_spec.rb +1 -1
  336. data/spec/commands/sql/types/list_spec.rb +1 -2
  337. data/spec/commands/types/list_spec.rb +1 -2
  338. data/spec/commands/users/list_spec.rb +1 -2
  339. data/spec/commands/users/show_spec.rb +1 -2
  340. data/spec/commands/users/update_spec.rb +1 -2
  341. data/spec/commands/zones/list_spec.rb +1 -2
  342. data/spec/configs/api_client.ini +1 -1
  343. data/spec/configs/user_app.ini +2 -2
  344. data/spec/spec_helper.rb +16 -3
  345. data/spec/support/authentication_helpers.rb +98 -0
  346. data/spec/support/config_helpers.rb +2 -4
  347. data/spec/support/password_prompt_helpers.rb +22 -1
  348. data/spec/support/server_helper.rb +5 -5
  349. data/spec/support/tmp_config.rb +1 -1
  350. data/spec/support/token_helpers.rb +2 -2
  351. data/spec/support/vcr.rb +3 -22
  352. data/spec/unit/brightbox/api/created_on_spec.rb +2 -2
  353. data/spec/unit/brightbox/api/fog_model_spec.rb +13 -13
  354. data/spec/unit/brightbox/api/klass_name_spec.rb +0 -1
  355. data/spec/unit/brightbox/api/method_missing_spec.rb +64 -0
  356. data/spec/unit/brightbox/api/require_account_spec.rb +0 -1
  357. data/spec/unit/brightbox/api/respond_to_spec.rb +71 -0
  358. data/spec/unit/brightbox/bb_config/access_token_filename_spec.rb +0 -1
  359. data/spec/unit/brightbox/bb_config/account_spec.rb +0 -1
  360. data/spec/unit/brightbox/bb_config/add_login_spec.rb +27 -28
  361. data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -2
  362. data/spec/unit/brightbox/bb_config/clear_default_client_spec.rb +0 -1
  363. data/spec/unit/brightbox/bb_config/client_id_spec.rb +0 -1
  364. data/spec/unit/brightbox/bb_config/client_name_spec.rb +0 -1
  365. data/spec/unit/brightbox/bb_config/config_directory_exists_spec.rb +0 -1
  366. data/spec/unit/brightbox/bb_config/config_directory_spec.rb +0 -1
  367. data/spec/unit/brightbox/bb_config/config_spec.rb +2 -3
  368. data/spec/unit/brightbox/bb_config/default_account_spec.rb +0 -1
  369. data/spec/unit/brightbox/bb_config/default_client_spec.rb +0 -1
  370. data/spec/unit/brightbox/bb_config/delete_section_spec.rb +0 -1
  371. data/spec/unit/brightbox/bb_config/find_or_set_default_account_spec.rb +4 -4
  372. data/spec/unit/brightbox/bb_config/refresh_token_filename_spec.rb +0 -1
  373. data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +3 -4
  374. data/spec/unit/brightbox/bb_config/save_default_account_spec.rb +0 -1
  375. data/spec/unit/brightbox/bb_config/save_spec.rb +0 -1
  376. data/spec/unit/brightbox/bb_config/section_names_spec.rb +1 -1
  377. data/spec/unit/brightbox/bb_config/to_fog_spec.rb +2 -2
  378. data/spec/unit/brightbox/collaborating_account/to_row_spec.rb +3 -3
  379. data/spec/unit/brightbox/config/api_client/to_fog_spec.rb +8 -8
  380. data/spec/unit/brightbox/config/api_client/valid_spec.rb +4 -4
  381. data/spec/unit/brightbox/config/discover_two_factor_pin_spec.rb +87 -0
  382. data/spec/unit/brightbox/config/section_name_deduplicator_spec.rb +1 -1
  383. data/spec/unit/brightbox/config/user_application/to_fog_spec.rb +10 -10
  384. data/spec/unit/brightbox/config/user_application/valid_spec.rb +3 -3
  385. data/spec/unit/brightbox/connection_manager/fetch_connection_spec.rb +1 -1
  386. data/spec/unit/brightbox/database_server/clean_arguments_spec.rb +1 -2
  387. data/spec/unit/brightbox/database_server/maintenance_window_spec.rb +0 -1
  388. data/spec/unit/brightbox/error_parser/pretty_print_spec.rb +0 -1
  389. data/spec/unit/brightbox/firewall_policy/apply_to_spec.rb +0 -1
  390. data/spec/unit/brightbox/firewall_policy/create_spec.rb +0 -1
  391. data/spec/unit/brightbox/firewall_policy/find_or_call_spec.rb +0 -1
  392. data/spec/unit/brightbox/firewall_policy/find_spec.rb +0 -1
  393. data/spec/unit/brightbox/firewall_rule/find_spec.rb +9 -9
  394. data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +4 -4
  395. data/spec/unit/brightbox/legacy/args_adjuster_spec.rb +20 -21
  396. data/spec/unit/brightbox/server/create_spec.rb +1 -2
  397. data/spec/unit/brightbox/server/start_spec.rb +2 -2
  398. data/spec/unit/brightbox/server/update_spec.rb +0 -1
  399. data/spec/unit/brightbox/user_collaboration/remove_spec.rb +0 -1
  400. data/spec/unit/nilable_hash_spec.rb +5 -5
  401. data/spec/unit/ruby_core_ext_spec.rb +3 -4
  402. data/spec/unit/temporary_home_spec.rb +1 -1
  403. data/spec/unit/tmp_config_spec.rb +0 -1
  404. metadata +133 -101
  405. data/bin/brightbox-accounts +0 -13
  406. data/bin/brightbox-cloudips +0 -13
  407. data/bin/brightbox-config +0 -13
  408. data/bin/brightbox-firewall-policies +0 -13
  409. data/bin/brightbox-firewall-rules +0 -13
  410. data/bin/brightbox-groups +0 -13
  411. data/bin/brightbox-images +0 -13
  412. data/bin/brightbox-lbs +0 -13
  413. data/bin/brightbox-servers +0 -13
  414. data/bin/brightbox-types +0 -13
  415. data/bin/brightbox-users +0 -13
  416. data/bin/brightbox-zones +0 -13
  417. data/lib/brightbox-cli/commands/config/client-default.rb +0 -26
@@ -0,0 +1,1466 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-16ru8?account_id=acc-12345
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - fog-core/1.45.0
12
+ Proxy-Connection:
13
+ - Keep-Alive
14
+ Authorization:
15
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx/1.18.0
25
+ Date:
26
+ - Fri, 17 Jun 2022 12:43:52 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '1056'
31
+ Connection:
32
+ - keep-alive
33
+ Status:
34
+ - 200 OK
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ X-Xss-Protection:
38
+ - 1; mode=block
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Oauth-Scopes:
42
+ - infrastructure, orbit
43
+ Etag:
44
+ - W/"05edfa051d00bc8549814723f615b70b"
45
+ Cache-Control:
46
+ - max-age=0, private, must-revalidate
47
+ X-Request-Id:
48
+ - aebeff81-89b9-4ac5-ae61-8cf869898f6f
49
+ X-Runtime:
50
+ - '0.051807'
51
+ Vary:
52
+ - Origin
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"id":"dbs-16ru8","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-16ru8","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:52Z","updated_at":"2022-06-17T12:43:52Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
56
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
57
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
58
+ http_version:
59
+ recorded_at: Fri, 17 Jun 2022 12:43:52 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-16ru8?account_id=acc-12345
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ User-Agent:
68
+ - fog-core/1.45.0
69
+ Proxy-Connection:
70
+ - Keep-Alive
71
+ Authorization:
72
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
73
+ Content-Type:
74
+ - application/json
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Server:
81
+ - nginx/1.18.0
82
+ Date:
83
+ - Fri, 17 Jun 2022 12:43:53 GMT
84
+ Content-Type:
85
+ - application/json; charset=utf-8
86
+ Content-Length:
87
+ - '1054'
88
+ Connection:
89
+ - keep-alive
90
+ Status:
91
+ - 200 OK
92
+ X-Frame-Options:
93
+ - SAMEORIGIN
94
+ X-Xss-Protection:
95
+ - 1; mode=block
96
+ X-Content-Type-Options:
97
+ - nosniff
98
+ X-Oauth-Scopes:
99
+ - infrastructure, orbit
100
+ Etag:
101
+ - W/"4ac3b2b38e64f4c47ff730645648b7f7"
102
+ Cache-Control:
103
+ - max-age=0, private, must-revalidate
104
+ X-Request-Id:
105
+ - 9c3515d1-10f7-46d0-8912-6697cdf73f18
106
+ X-Runtime:
107
+ - '0.053783'
108
+ Vary:
109
+ - Origin
110
+ body:
111
+ encoding: ASCII-8BIT
112
+ string: '{"id":"dbs-16ru8","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-16ru8","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"active","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:52Z","updated_at":"2022-06-17T12:43:53Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
113
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
114
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
115
+ http_version:
116
+ recorded_at: Fri, 17 Jun 2022 12:43:53 GMT
117
+ - request:
118
+ method: post
119
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-16ru8/snapshot
120
+ body:
121
+ encoding: US-ASCII
122
+ string: ''
123
+ headers:
124
+ User-Agent:
125
+ - fog-core/1.45.0
126
+ Proxy-Connection:
127
+ - Keep-Alive
128
+ Authorization:
129
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
130
+ Content-Type:
131
+ - application/json
132
+ response:
133
+ status:
134
+ code: 202
135
+ message: Accepted
136
+ headers:
137
+ Server:
138
+ - nginx/1.18.0
139
+ Date:
140
+ - Fri, 17 Jun 2022 12:43:53 GMT
141
+ Content-Type:
142
+ - application/json; charset=utf-8
143
+ Content-Length:
144
+ - '1054'
145
+ Connection:
146
+ - keep-alive
147
+ Status:
148
+ - 202 Accepted
149
+ X-Frame-Options:
150
+ - SAMEORIGIN
151
+ X-Xss-Protection:
152
+ - 1; mode=block
153
+ X-Content-Type-Options:
154
+ - nosniff
155
+ X-Oauth-Scopes:
156
+ - infrastructure, orbit
157
+ Link:
158
+ - "<https://api.brightbox.localhost/1.0/database_snapshots/dbi-fcxmv>; rel=snapshot"
159
+ Cache-Control:
160
+ - no-cache
161
+ X-Request-Id:
162
+ - 9567b192-b920-4472-9d75-dc6965848656
163
+ X-Runtime:
164
+ - '0.135074'
165
+ Vary:
166
+ - Origin
167
+ body:
168
+ encoding: ASCII-8BIT
169
+ string: '{"id":"dbs-16ru8","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-16ru8","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"active","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:52Z","updated_at":"2022-06-17T12:43:53Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
170
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
171
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
172
+ http_version:
173
+ recorded_at: Fri, 17 Jun 2022 12:43:53 GMT
174
+ - request:
175
+ method: get
176
+ uri: http://api.brightbox.localhost/1.0/database_snapshots/dbi-fcxmv?account_id=acc-12345
177
+ body:
178
+ encoding: US-ASCII
179
+ string: ''
180
+ headers:
181
+ User-Agent:
182
+ - fog-core/1.45.0
183
+ Proxy-Connection:
184
+ - Keep-Alive
185
+ Authorization:
186
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
187
+ Content-Type:
188
+ - application/json
189
+ response:
190
+ status:
191
+ code: 200
192
+ message: OK
193
+ headers:
194
+ Server:
195
+ - nginx/1.18.0
196
+ Date:
197
+ - Fri, 17 Jun 2022 12:43:53 GMT
198
+ Content-Type:
199
+ - application/json; charset=utf-8
200
+ Content-Length:
201
+ - '570'
202
+ Connection:
203
+ - keep-alive
204
+ Status:
205
+ - 200 OK
206
+ X-Frame-Options:
207
+ - SAMEORIGIN
208
+ X-Xss-Protection:
209
+ - 1; mode=block
210
+ X-Content-Type-Options:
211
+ - nosniff
212
+ X-Oauth-Scopes:
213
+ - infrastructure, orbit
214
+ Etag:
215
+ - W/"635de30f0cceb32090324f2f1ba873fc"
216
+ Cache-Control:
217
+ - max-age=0, private, must-revalidate
218
+ X-Request-Id:
219
+ - 82405128-8997-4d18-89d6-37dcf8433a79
220
+ X-Runtime:
221
+ - '0.041296'
222
+ Vary:
223
+ - Origin
224
+ body:
225
+ encoding: ASCII-8BIT
226
+ string: '{"id":"dbi-fcxmv","resource_type":"database_snapshot","url":"https://api.brightbox.localhost/1.0/database_snapshots/dbi-fcxmv","name":"Snapshot
227
+ of dbs-16ru8","description":"","status":"available","locked":false,"database_engine":"mysql","database_version":"8.0","source":"dbs-16ru8","source_trigger":"manual","size":0,"created_at":"2022-06-17T12:43:53Z","updated_at":"2022-06-17T12:43:53Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
228
+ test account","status":"active"}}'
229
+ http_version:
230
+ recorded_at: Fri, 17 Jun 2022 12:43:53 GMT
231
+ - request:
232
+ method: delete
233
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-16ru8?account_id=acc-12345
234
+ body:
235
+ encoding: US-ASCII
236
+ string: ''
237
+ headers:
238
+ User-Agent:
239
+ - fog-core/1.45.0
240
+ Proxy-Connection:
241
+ - Keep-Alive
242
+ Authorization:
243
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
244
+ Content-Type:
245
+ - application/json
246
+ response:
247
+ status:
248
+ code: 202
249
+ message: Accepted
250
+ headers:
251
+ Server:
252
+ - nginx/1.18.0
253
+ Date:
254
+ - Fri, 17 Jun 2022 12:43:53 GMT
255
+ Content-Type:
256
+ - application/json; charset=utf-8
257
+ Content-Length:
258
+ - '1056'
259
+ Connection:
260
+ - keep-alive
261
+ Status:
262
+ - 202 Accepted
263
+ X-Frame-Options:
264
+ - SAMEORIGIN
265
+ X-Xss-Protection:
266
+ - 1; mode=block
267
+ X-Content-Type-Options:
268
+ - nosniff
269
+ X-Oauth-Scopes:
270
+ - infrastructure, orbit
271
+ Cache-Control:
272
+ - no-cache
273
+ X-Request-Id:
274
+ - a01097e2-88cc-4937-af4c-2bf0fd8b9bff
275
+ X-Runtime:
276
+ - '0.150674'
277
+ Vary:
278
+ - Origin
279
+ body:
280
+ encoding: ASCII-8BIT
281
+ string: '{"id":"dbs-16ru8","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-16ru8","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"deleting","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:52Z","updated_at":"2022-06-17T12:43:53Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
282
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
283
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
284
+ http_version:
285
+ recorded_at: Fri, 17 Jun 2022 12:43:53 GMT
286
+ - request:
287
+ method: delete
288
+ uri: http://api.brightbox.localhost/1.0/database_snapshots/dbi-fcxmv?account_id=acc-12345
289
+ body:
290
+ encoding: US-ASCII
291
+ string: ''
292
+ headers:
293
+ User-Agent:
294
+ - fog-core/1.45.0
295
+ Proxy-Connection:
296
+ - Keep-Alive
297
+ Authorization:
298
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
299
+ Content-Type:
300
+ - application/json
301
+ response:
302
+ status:
303
+ code: 202
304
+ message: Accepted
305
+ headers:
306
+ Server:
307
+ - nginx/1.18.0
308
+ Date:
309
+ - Fri, 17 Jun 2022 12:43:54 GMT
310
+ Content-Type:
311
+ - application/json; charset=utf-8
312
+ Content-Length:
313
+ - '569'
314
+ Connection:
315
+ - keep-alive
316
+ Status:
317
+ - 202 Accepted
318
+ X-Frame-Options:
319
+ - SAMEORIGIN
320
+ X-Xss-Protection:
321
+ - 1; mode=block
322
+ X-Content-Type-Options:
323
+ - nosniff
324
+ X-Oauth-Scopes:
325
+ - infrastructure, orbit
326
+ Cache-Control:
327
+ - no-cache
328
+ X-Request-Id:
329
+ - ccaba4fe-73bc-4e14-a768-7acd7c5ee15d
330
+ X-Runtime:
331
+ - '0.086318'
332
+ Vary:
333
+ - Origin
334
+ body:
335
+ encoding: ASCII-8BIT
336
+ string: '{"id":"dbi-fcxmv","resource_type":"database_snapshot","url":"https://api.brightbox.localhost/1.0/database_snapshots/dbi-fcxmv","name":"Snapshot
337
+ of dbs-16ru8","description":"","status":"deleting","locked":false,"database_engine":"mysql","database_version":"8.0","source":"dbs-16ru8","source_trigger":"manual","size":0,"created_at":"2022-06-17T12:43:53Z","updated_at":"2022-06-17T12:43:53Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
338
+ test account","status":"active"}}'
339
+ http_version:
340
+ recorded_at: Fri, 17 Jun 2022 12:43:54 GMT
341
+ - request:
342
+ method: post
343
+ uri: http://api.brightbox.localhost/1.0/database_servers?account_id=acc-12345
344
+ body:
345
+ encoding: UTF-8
346
+ string: '{"name":null,"description":null,"maintenance_weekday":null,"maintenance_hour":null,"snapshots_schedule":null,"snapshot":"dbi-fcxmv"}'
347
+ headers:
348
+ User-Agent:
349
+ - fog-core/1.45.0
350
+ Proxy-Connection:
351
+ - Keep-Alive
352
+ Authorization:
353
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
354
+ Content-Type:
355
+ - application/json
356
+ response:
357
+ status:
358
+ code: 202
359
+ message: Accepted
360
+ headers:
361
+ Server:
362
+ - nginx/1.18.0
363
+ Date:
364
+ - Fri, 17 Jun 2022 12:43:54 GMT
365
+ Content-Type:
366
+ - application/json; charset=utf-8
367
+ Content-Length:
368
+ - '1056'
369
+ Connection:
370
+ - keep-alive
371
+ Status:
372
+ - 202 Accepted
373
+ X-Frame-Options:
374
+ - SAMEORIGIN
375
+ X-Xss-Protection:
376
+ - 1; mode=block
377
+ X-Content-Type-Options:
378
+ - nosniff
379
+ X-Oauth-Scopes:
380
+ - infrastructure, orbit
381
+ Location:
382
+ - http://api.brightbox.localhost/1.0/database_servers/dbs-21kls
383
+ Cache-Control:
384
+ - no-cache
385
+ X-Request-Id:
386
+ - 581e83dc-8db9-417a-8064-6c7823535d26
387
+ X-Runtime:
388
+ - '0.309248'
389
+ Vary:
390
+ - Origin
391
+ body:
392
+ encoding: ASCII-8BIT
393
+ string: '{"id":"dbs-21kls","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-21kls","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:54Z","updated_at":"2022-06-17T12:43:54Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
394
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
395
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-a"}}'
396
+ http_version:
397
+ recorded_at: Fri, 17 Jun 2022 12:43:54 GMT
398
+ - request:
399
+ method: get
400
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-21kls?account_id=acc-12345
401
+ body:
402
+ encoding: US-ASCII
403
+ string: ''
404
+ headers:
405
+ User-Agent:
406
+ - fog-core/1.45.0
407
+ Proxy-Connection:
408
+ - Keep-Alive
409
+ Authorization:
410
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
411
+ Content-Type:
412
+ - application/json
413
+ response:
414
+ status:
415
+ code: 200
416
+ message: OK
417
+ headers:
418
+ Server:
419
+ - nginx/1.18.0
420
+ Date:
421
+ - Fri, 17 Jun 2022 12:43:54 GMT
422
+ Content-Type:
423
+ - application/json; charset=utf-8
424
+ Content-Length:
425
+ - '1056'
426
+ Connection:
427
+ - keep-alive
428
+ Status:
429
+ - 200 OK
430
+ X-Frame-Options:
431
+ - SAMEORIGIN
432
+ X-Xss-Protection:
433
+ - 1; mode=block
434
+ X-Content-Type-Options:
435
+ - nosniff
436
+ X-Oauth-Scopes:
437
+ - infrastructure, orbit
438
+ Etag:
439
+ - W/"62dbb8a2c0674a903498b0963a1ef777"
440
+ Cache-Control:
441
+ - max-age=0, private, must-revalidate
442
+ X-Request-Id:
443
+ - 90b0ee9c-90f6-4b2a-b8ab-de26c9c86056
444
+ X-Runtime:
445
+ - '0.051513'
446
+ Vary:
447
+ - Origin
448
+ body:
449
+ encoding: ASCII-8BIT
450
+ string: '{"id":"dbs-21kls","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-21kls","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:54Z","updated_at":"2022-06-17T12:43:54Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
451
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
452
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-a"}}'
453
+ http_version:
454
+ recorded_at: Fri, 17 Jun 2022 12:43:54 GMT
455
+ - request:
456
+ method: get
457
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-21kls?account_id=acc-12345
458
+ body:
459
+ encoding: US-ASCII
460
+ string: ''
461
+ headers:
462
+ User-Agent:
463
+ - fog-core/1.45.0
464
+ Proxy-Connection:
465
+ - Keep-Alive
466
+ Authorization:
467
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
468
+ Content-Type:
469
+ - application/json
470
+ response:
471
+ status:
472
+ code: 200
473
+ message: OK
474
+ headers:
475
+ Server:
476
+ - nginx/1.18.0
477
+ Date:
478
+ - Fri, 17 Jun 2022 12:43:54 GMT
479
+ Content-Type:
480
+ - application/json; charset=utf-8
481
+ Content-Length:
482
+ - '1056'
483
+ Connection:
484
+ - keep-alive
485
+ Status:
486
+ - 200 OK
487
+ X-Frame-Options:
488
+ - SAMEORIGIN
489
+ X-Xss-Protection:
490
+ - 1; mode=block
491
+ X-Content-Type-Options:
492
+ - nosniff
493
+ X-Oauth-Scopes:
494
+ - infrastructure, orbit
495
+ Etag:
496
+ - W/"62dbb8a2c0674a903498b0963a1ef777"
497
+ Cache-Control:
498
+ - max-age=0, private, must-revalidate
499
+ X-Request-Id:
500
+ - 40fd9a5e-605b-4e01-b60d-50f6772722ed
501
+ X-Runtime:
502
+ - '0.051261'
503
+ Vary:
504
+ - Origin
505
+ body:
506
+ encoding: ASCII-8BIT
507
+ string: '{"id":"dbs-21kls","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-21kls","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:54Z","updated_at":"2022-06-17T12:43:54Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
508
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
509
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-a"}}'
510
+ http_version:
511
+ recorded_at: Fri, 17 Jun 2022 12:43:54 GMT
512
+ - request:
513
+ method: get
514
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-21kls?account_id=acc-12345
515
+ body:
516
+ encoding: US-ASCII
517
+ string: ''
518
+ headers:
519
+ User-Agent:
520
+ - fog-core/1.45.0
521
+ Proxy-Connection:
522
+ - Keep-Alive
523
+ Authorization:
524
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
525
+ Content-Type:
526
+ - application/json
527
+ response:
528
+ status:
529
+ code: 200
530
+ message: OK
531
+ headers:
532
+ Server:
533
+ - nginx/1.18.0
534
+ Date:
535
+ - Fri, 17 Jun 2022 12:43:55 GMT
536
+ Content-Type:
537
+ - application/json; charset=utf-8
538
+ Content-Length:
539
+ - '1056'
540
+ Connection:
541
+ - keep-alive
542
+ Status:
543
+ - 200 OK
544
+ X-Frame-Options:
545
+ - SAMEORIGIN
546
+ X-Xss-Protection:
547
+ - 1; mode=block
548
+ X-Content-Type-Options:
549
+ - nosniff
550
+ X-Oauth-Scopes:
551
+ - infrastructure, orbit
552
+ Etag:
553
+ - W/"62dbb8a2c0674a903498b0963a1ef777"
554
+ Cache-Control:
555
+ - max-age=0, private, must-revalidate
556
+ X-Request-Id:
557
+ - 10871838-d245-45f5-9e2e-14f31571fea1
558
+ X-Runtime:
559
+ - '0.051492'
560
+ Vary:
561
+ - Origin
562
+ body:
563
+ encoding: ASCII-8BIT
564
+ string: '{"id":"dbs-21kls","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-21kls","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:54Z","updated_at":"2022-06-17T12:43:54Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
565
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
566
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-a"}}'
567
+ http_version:
568
+ recorded_at: Fri, 17 Jun 2022 12:43:55 GMT
569
+ - request:
570
+ method: get
571
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-21kls?account_id=acc-12345
572
+ body:
573
+ encoding: US-ASCII
574
+ string: ''
575
+ headers:
576
+ User-Agent:
577
+ - fog-core/1.45.0
578
+ Proxy-Connection:
579
+ - Keep-Alive
580
+ Authorization:
581
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
582
+ Content-Type:
583
+ - application/json
584
+ response:
585
+ status:
586
+ code: 200
587
+ message: OK
588
+ headers:
589
+ Server:
590
+ - nginx/1.18.0
591
+ Date:
592
+ - Fri, 17 Jun 2022 12:43:57 GMT
593
+ Content-Type:
594
+ - application/json; charset=utf-8
595
+ Content-Length:
596
+ - '1054'
597
+ Connection:
598
+ - keep-alive
599
+ Status:
600
+ - 200 OK
601
+ X-Frame-Options:
602
+ - SAMEORIGIN
603
+ X-Xss-Protection:
604
+ - 1; mode=block
605
+ X-Content-Type-Options:
606
+ - nosniff
607
+ X-Oauth-Scopes:
608
+ - infrastructure, orbit
609
+ Etag:
610
+ - W/"0b475dfeb40f41c65e204f743cf78504"
611
+ Cache-Control:
612
+ - max-age=0, private, must-revalidate
613
+ X-Request-Id:
614
+ - fa7bdb8b-a61f-4503-9ee9-953d4ddca6e1
615
+ X-Runtime:
616
+ - '0.043110'
617
+ Vary:
618
+ - Origin
619
+ body:
620
+ encoding: ASCII-8BIT
621
+ string: '{"id":"dbs-21kls","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-21kls","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"active","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:54Z","updated_at":"2022-06-17T12:43:55Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
622
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
623
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-a"}}'
624
+ http_version:
625
+ recorded_at: Fri, 17 Jun 2022 12:43:57 GMT
626
+ - request:
627
+ method: delete
628
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-21kls?account_id=acc-12345
629
+ body:
630
+ encoding: US-ASCII
631
+ string: ''
632
+ headers:
633
+ User-Agent:
634
+ - fog-core/1.45.0
635
+ Proxy-Connection:
636
+ - Keep-Alive
637
+ Authorization:
638
+ - Bearer cc23ede8f3c54d340cf06772242659fa9fa1b826
639
+ Content-Type:
640
+ - application/json
641
+ response:
642
+ status:
643
+ code: 202
644
+ message: Accepted
645
+ headers:
646
+ Server:
647
+ - nginx/1.18.0
648
+ Date:
649
+ - Fri, 17 Jun 2022 12:43:57 GMT
650
+ Content-Type:
651
+ - application/json; charset=utf-8
652
+ Content-Length:
653
+ - '1056'
654
+ Connection:
655
+ - keep-alive
656
+ Status:
657
+ - 202 Accepted
658
+ X-Frame-Options:
659
+ - SAMEORIGIN
660
+ X-Xss-Protection:
661
+ - 1; mode=block
662
+ X-Content-Type-Options:
663
+ - nosniff
664
+ X-Oauth-Scopes:
665
+ - infrastructure, orbit
666
+ Cache-Control:
667
+ - no-cache
668
+ X-Request-Id:
669
+ - ea2dca19-ed62-4d15-81b2-431d22c794ef
670
+ X-Runtime:
671
+ - '0.145820'
672
+ Vary:
673
+ - Origin
674
+ body:
675
+ encoding: ASCII-8BIT
676
+ string: '{"id":"dbs-21kls","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-21kls","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"deleting","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:43:54Z","updated_at":"2022-06-17T12:43:57Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
677
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
678
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-a"}}'
679
+ http_version:
680
+ recorded_at: Fri, 17 Jun 2022 12:43:57 GMT
681
+ - request:
682
+ method: post
683
+ uri: http://api.brightbox.localhost/token
684
+ body:
685
+ encoding: UTF-8
686
+ string: '{"grant_type":"client_credentials"}'
687
+ headers:
688
+ User-Agent:
689
+ - fog-core/1.45.0
690
+ Proxy-Connection:
691
+ - Keep-Alive
692
+ Authorization:
693
+ - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
694
+ Content-Type:
695
+ - application/json
696
+ response:
697
+ status:
698
+ code: 200
699
+ message: OK
700
+ headers:
701
+ Server:
702
+ - nginx/1.18.0
703
+ Date:
704
+ - Fri, 17 Jun 2022 12:44:10 GMT
705
+ Content-Type:
706
+ - application/json
707
+ Content-Length:
708
+ - '131'
709
+ Connection:
710
+ - keep-alive
711
+ Status:
712
+ - 200 OK
713
+ Cache-Control:
714
+ - no-store
715
+ X-Oauth-Scopes:
716
+ - infrastructure, orbit
717
+ X-Content-Type-Options:
718
+ - nosniff
719
+ Etag:
720
+ - W/"a6d66dfa57a4a2e58689420a62a526c5"
721
+ X-Request-Id:
722
+ - a359320d-e56f-4e55-90da-68b3bd53c1dd
723
+ X-Runtime:
724
+ - '0.086379'
725
+ body:
726
+ encoding: ASCII-8BIT
727
+ string: '{"access_token":"133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50","token_type":"Bearer","scope":"infrastructure,
728
+ orbit","expires_in":7199}'
729
+ http_version:
730
+ recorded_at: Fri, 17 Jun 2022 12:44:10 GMT
731
+ - request:
732
+ method: post
733
+ uri: http://api.brightbox.localhost/1.0/database_servers?account_id=acc-12345
734
+ body:
735
+ encoding: UTF-8
736
+ string: '{"name":null,"description":null,"maintenance_weekday":null,"maintenance_hour":null,"snapshots_schedule":null}'
737
+ headers:
738
+ User-Agent:
739
+ - fog-core/1.45.0
740
+ Proxy-Connection:
741
+ - Keep-Alive
742
+ Authorization:
743
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
744
+ Content-Type:
745
+ - application/json
746
+ response:
747
+ status:
748
+ code: 202
749
+ message: Accepted
750
+ headers:
751
+ Server:
752
+ - nginx/1.18.0
753
+ Date:
754
+ - Fri, 17 Jun 2022 12:44:11 GMT
755
+ Content-Type:
756
+ - application/json; charset=utf-8
757
+ Content-Length:
758
+ - '1070'
759
+ Connection:
760
+ - keep-alive
761
+ Status:
762
+ - 202 Accepted
763
+ X-Frame-Options:
764
+ - SAMEORIGIN
765
+ X-Xss-Protection:
766
+ - 1; mode=block
767
+ X-Content-Type-Options:
768
+ - nosniff
769
+ X-Oauth-Scopes:
770
+ - infrastructure, orbit
771
+ Location:
772
+ - http://api.brightbox.localhost/1.0/database_servers/dbs-inim5
773
+ Cache-Control:
774
+ - no-cache
775
+ X-Request-Id:
776
+ - c09b9966-5853-41eb-ad6f-f7d6c34b283e
777
+ X-Runtime:
778
+ - '0.340933'
779
+ Vary:
780
+ - Origin
781
+ body:
782
+ encoding: ASCII-8BIT
783
+ string: '{"id":"dbs-inim5","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-inim5","name":"","description":"","admin_username":"admin","admin_password":"fb1k202pmoepvw7e","allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:10Z","updated_at":"2022-06-17T12:44:11Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
784
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
785
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
786
+ http_version:
787
+ recorded_at: Fri, 17 Jun 2022 12:44:11 GMT
788
+ - request:
789
+ method: get
790
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-inim5?account_id=acc-12345
791
+ body:
792
+ encoding: US-ASCII
793
+ string: ''
794
+ headers:
795
+ User-Agent:
796
+ - fog-core/1.45.0
797
+ Proxy-Connection:
798
+ - Keep-Alive
799
+ Authorization:
800
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
801
+ Content-Type:
802
+ - application/json
803
+ response:
804
+ status:
805
+ code: 200
806
+ message: OK
807
+ headers:
808
+ Server:
809
+ - nginx/1.18.0
810
+ Date:
811
+ - Fri, 17 Jun 2022 12:44:11 GMT
812
+ Content-Type:
813
+ - application/json; charset=utf-8
814
+ Content-Length:
815
+ - '1056'
816
+ Connection:
817
+ - keep-alive
818
+ Status:
819
+ - 200 OK
820
+ X-Frame-Options:
821
+ - SAMEORIGIN
822
+ X-Xss-Protection:
823
+ - 1; mode=block
824
+ X-Content-Type-Options:
825
+ - nosniff
826
+ X-Oauth-Scopes:
827
+ - infrastructure, orbit
828
+ Etag:
829
+ - W/"b08bd4799412feb32d7a3fbb66cb4162"
830
+ Cache-Control:
831
+ - max-age=0, private, must-revalidate
832
+ X-Request-Id:
833
+ - 8435abac-1106-4c68-a2d2-71e432d4bd4b
834
+ X-Runtime:
835
+ - '0.052057'
836
+ Vary:
837
+ - Origin
838
+ body:
839
+ encoding: ASCII-8BIT
840
+ string: '{"id":"dbs-inim5","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-inim5","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:10Z","updated_at":"2022-06-17T12:44:11Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
841
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
842
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
843
+ http_version:
844
+ recorded_at: Fri, 17 Jun 2022 12:44:11 GMT
845
+ - request:
846
+ method: get
847
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-inim5?account_id=acc-12345
848
+ body:
849
+ encoding: US-ASCII
850
+ string: ''
851
+ headers:
852
+ User-Agent:
853
+ - fog-core/1.45.0
854
+ Proxy-Connection:
855
+ - Keep-Alive
856
+ Authorization:
857
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
858
+ Content-Type:
859
+ - application/json
860
+ response:
861
+ status:
862
+ code: 200
863
+ message: OK
864
+ headers:
865
+ Server:
866
+ - nginx/1.18.0
867
+ Date:
868
+ - Fri, 17 Jun 2022 12:44:12 GMT
869
+ Content-Type:
870
+ - application/json; charset=utf-8
871
+ Content-Length:
872
+ - '1054'
873
+ Connection:
874
+ - keep-alive
875
+ Status:
876
+ - 200 OK
877
+ X-Frame-Options:
878
+ - SAMEORIGIN
879
+ X-Xss-Protection:
880
+ - 1; mode=block
881
+ X-Content-Type-Options:
882
+ - nosniff
883
+ X-Oauth-Scopes:
884
+ - infrastructure, orbit
885
+ Etag:
886
+ - W/"7e36a7aa1299725167fd44e02cb6e6ff"
887
+ Cache-Control:
888
+ - max-age=0, private, must-revalidate
889
+ X-Request-Id:
890
+ - e4981269-4e57-410f-a62b-efb83990ed12
891
+ X-Runtime:
892
+ - '0.043517'
893
+ Vary:
894
+ - Origin
895
+ body:
896
+ encoding: ASCII-8BIT
897
+ string: '{"id":"dbs-inim5","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-inim5","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"active","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:10Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
898
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
899
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
900
+ http_version:
901
+ recorded_at: Fri, 17 Jun 2022 12:44:12 GMT
902
+ - request:
903
+ method: post
904
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-inim5/snapshot
905
+ body:
906
+ encoding: US-ASCII
907
+ string: ''
908
+ headers:
909
+ User-Agent:
910
+ - fog-core/1.45.0
911
+ Proxy-Connection:
912
+ - Keep-Alive
913
+ Authorization:
914
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
915
+ Content-Type:
916
+ - application/json
917
+ response:
918
+ status:
919
+ code: 202
920
+ message: Accepted
921
+ headers:
922
+ Server:
923
+ - nginx/1.18.0
924
+ Date:
925
+ - Fri, 17 Jun 2022 12:44:12 GMT
926
+ Content-Type:
927
+ - application/json; charset=utf-8
928
+ Content-Length:
929
+ - '1054'
930
+ Connection:
931
+ - keep-alive
932
+ Status:
933
+ - 202 Accepted
934
+ X-Frame-Options:
935
+ - SAMEORIGIN
936
+ X-Xss-Protection:
937
+ - 1; mode=block
938
+ X-Content-Type-Options:
939
+ - nosniff
940
+ X-Oauth-Scopes:
941
+ - infrastructure, orbit
942
+ Link:
943
+ - "<https://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce>; rel=snapshot"
944
+ Cache-Control:
945
+ - no-cache
946
+ X-Request-Id:
947
+ - fa847eec-8bea-4daa-b0f7-9425042e6f94
948
+ X-Runtime:
949
+ - '0.125689'
950
+ Vary:
951
+ - Origin
952
+ body:
953
+ encoding: ASCII-8BIT
954
+ string: '{"id":"dbs-inim5","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-inim5","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"active","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:10Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
955
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
956
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
957
+ http_version:
958
+ recorded_at: Fri, 17 Jun 2022 12:44:12 GMT
959
+ - request:
960
+ method: get
961
+ uri: http://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce?account_id=acc-12345
962
+ body:
963
+ encoding: US-ASCII
964
+ string: ''
965
+ headers:
966
+ User-Agent:
967
+ - fog-core/1.45.0
968
+ Proxy-Connection:
969
+ - Keep-Alive
970
+ Authorization:
971
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
972
+ Content-Type:
973
+ - application/json
974
+ response:
975
+ status:
976
+ code: 200
977
+ message: OK
978
+ headers:
979
+ Server:
980
+ - nginx/1.18.0
981
+ Date:
982
+ - Fri, 17 Jun 2022 12:44:12 GMT
983
+ Content-Type:
984
+ - application/json; charset=utf-8
985
+ Content-Length:
986
+ - '570'
987
+ Connection:
988
+ - keep-alive
989
+ Status:
990
+ - 200 OK
991
+ X-Frame-Options:
992
+ - SAMEORIGIN
993
+ X-Xss-Protection:
994
+ - 1; mode=block
995
+ X-Content-Type-Options:
996
+ - nosniff
997
+ X-Oauth-Scopes:
998
+ - infrastructure, orbit
999
+ Etag:
1000
+ - W/"9530803848f13cd7039cf7ee355009c4"
1001
+ Cache-Control:
1002
+ - max-age=0, private, must-revalidate
1003
+ X-Request-Id:
1004
+ - bb9d8e50-2fcb-4009-98a0-a2bd27280d06
1005
+ X-Runtime:
1006
+ - '0.045634'
1007
+ Vary:
1008
+ - Origin
1009
+ body:
1010
+ encoding: ASCII-8BIT
1011
+ string: '{"id":"dbi-tv2ce","resource_type":"database_snapshot","url":"https://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce","name":"Snapshot
1012
+ of dbs-inim5","description":"","status":"available","locked":false,"database_engine":"mysql","database_version":"8.0","source":"dbs-inim5","source_trigger":"manual","size":0,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1013
+ test account","status":"active"}}'
1014
+ http_version:
1015
+ recorded_at: Fri, 17 Jun 2022 12:44:12 GMT
1016
+ - request:
1017
+ method: get
1018
+ uri: http://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce?account_id=acc-12345
1019
+ body:
1020
+ encoding: US-ASCII
1021
+ string: ''
1022
+ headers:
1023
+ User-Agent:
1024
+ - fog-core/1.45.0
1025
+ Proxy-Connection:
1026
+ - Keep-Alive
1027
+ Authorization:
1028
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1029
+ Content-Type:
1030
+ - application/json
1031
+ response:
1032
+ status:
1033
+ code: 200
1034
+ message: OK
1035
+ headers:
1036
+ Server:
1037
+ - nginx/1.18.0
1038
+ Date:
1039
+ - Fri, 17 Jun 2022 12:44:12 GMT
1040
+ Content-Type:
1041
+ - application/json; charset=utf-8
1042
+ Content-Length:
1043
+ - '570'
1044
+ Connection:
1045
+ - keep-alive
1046
+ Status:
1047
+ - 200 OK
1048
+ X-Frame-Options:
1049
+ - SAMEORIGIN
1050
+ X-Xss-Protection:
1051
+ - 1; mode=block
1052
+ X-Content-Type-Options:
1053
+ - nosniff
1054
+ X-Oauth-Scopes:
1055
+ - infrastructure, orbit
1056
+ Etag:
1057
+ - W/"9530803848f13cd7039cf7ee355009c4"
1058
+ Cache-Control:
1059
+ - max-age=0, private, must-revalidate
1060
+ X-Request-Id:
1061
+ - 115223f8-8dd5-4dd6-bd1b-c02d286ead45
1062
+ X-Runtime:
1063
+ - '0.048592'
1064
+ Vary:
1065
+ - Origin
1066
+ body:
1067
+ encoding: ASCII-8BIT
1068
+ string: '{"id":"dbi-tv2ce","resource_type":"database_snapshot","url":"https://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce","name":"Snapshot
1069
+ of dbs-inim5","description":"","status":"available","locked":false,"database_engine":"mysql","database_version":"8.0","source":"dbs-inim5","source_trigger":"manual","size":0,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1070
+ test account","status":"active"}}'
1071
+ http_version:
1072
+ recorded_at: Fri, 17 Jun 2022 12:44:12 GMT
1073
+ - request:
1074
+ method: post
1075
+ uri: http://api.brightbox.localhost/1.0/database_servers?account_id=acc-12345
1076
+ body:
1077
+ encoding: UTF-8
1078
+ string: '{"name":null,"description":null,"maintenance_weekday":null,"maintenance_hour":null,"snapshots_schedule":null,"snapshot":"dbi-tv2ce"}'
1079
+ headers:
1080
+ User-Agent:
1081
+ - fog-core/1.45.0
1082
+ Proxy-Connection:
1083
+ - Keep-Alive
1084
+ Authorization:
1085
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1086
+ Content-Type:
1087
+ - application/json
1088
+ response:
1089
+ status:
1090
+ code: 202
1091
+ message: Accepted
1092
+ headers:
1093
+ Server:
1094
+ - nginx/1.18.0
1095
+ Date:
1096
+ - Fri, 17 Jun 2022 12:44:12 GMT
1097
+ Content-Type:
1098
+ - application/json; charset=utf-8
1099
+ Content-Length:
1100
+ - '1056'
1101
+ Connection:
1102
+ - keep-alive
1103
+ Status:
1104
+ - 202 Accepted
1105
+ X-Frame-Options:
1106
+ - SAMEORIGIN
1107
+ X-Xss-Protection:
1108
+ - 1; mode=block
1109
+ X-Content-Type-Options:
1110
+ - nosniff
1111
+ X-Oauth-Scopes:
1112
+ - infrastructure, orbit
1113
+ Location:
1114
+ - http://api.brightbox.localhost/1.0/database_servers/dbs-95ucf
1115
+ Cache-Control:
1116
+ - no-cache
1117
+ X-Request-Id:
1118
+ - 0b27a0c1-5438-49d5-b35e-c06e63a1adf3
1119
+ X-Runtime:
1120
+ - '0.332797'
1121
+ Vary:
1122
+ - Origin
1123
+ body:
1124
+ encoding: ASCII-8BIT
1125
+ string: '{"id":"dbs-95ucf","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-95ucf","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1126
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
1127
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
1128
+ http_version:
1129
+ recorded_at: Fri, 17 Jun 2022 12:44:12 GMT
1130
+ - request:
1131
+ method: get
1132
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-95ucf?account_id=acc-12345
1133
+ body:
1134
+ encoding: US-ASCII
1135
+ string: ''
1136
+ headers:
1137
+ User-Agent:
1138
+ - fog-core/1.45.0
1139
+ Proxy-Connection:
1140
+ - Keep-Alive
1141
+ Authorization:
1142
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1143
+ Content-Type:
1144
+ - application/json
1145
+ response:
1146
+ status:
1147
+ code: 200
1148
+ message: OK
1149
+ headers:
1150
+ Server:
1151
+ - nginx/1.18.0
1152
+ Date:
1153
+ - Fri, 17 Jun 2022 12:44:13 GMT
1154
+ Content-Type:
1155
+ - application/json; charset=utf-8
1156
+ Content-Length:
1157
+ - '1056'
1158
+ Connection:
1159
+ - keep-alive
1160
+ Status:
1161
+ - 200 OK
1162
+ X-Frame-Options:
1163
+ - SAMEORIGIN
1164
+ X-Xss-Protection:
1165
+ - 1; mode=block
1166
+ X-Content-Type-Options:
1167
+ - nosniff
1168
+ X-Oauth-Scopes:
1169
+ - infrastructure, orbit
1170
+ Etag:
1171
+ - W/"d6bf3e6a63e84208a6a9d092b2e701ca"
1172
+ Cache-Control:
1173
+ - max-age=0, private, must-revalidate
1174
+ X-Request-Id:
1175
+ - f1f20edb-772f-4e65-a4c4-e87ada816c0c
1176
+ X-Runtime:
1177
+ - '0.059896'
1178
+ Vary:
1179
+ - Origin
1180
+ body:
1181
+ encoding: ASCII-8BIT
1182
+ string: '{"id":"dbs-95ucf","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-95ucf","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1183
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
1184
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
1185
+ http_version:
1186
+ recorded_at: Fri, 17 Jun 2022 12:44:13 GMT
1187
+ - request:
1188
+ method: delete
1189
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-inim5?account_id=acc-12345
1190
+ body:
1191
+ encoding: US-ASCII
1192
+ string: ''
1193
+ headers:
1194
+ User-Agent:
1195
+ - fog-core/1.45.0
1196
+ Proxy-Connection:
1197
+ - Keep-Alive
1198
+ Authorization:
1199
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1200
+ Content-Type:
1201
+ - application/json
1202
+ response:
1203
+ status:
1204
+ code: 202
1205
+ message: Accepted
1206
+ headers:
1207
+ Server:
1208
+ - nginx/1.18.0
1209
+ Date:
1210
+ - Fri, 17 Jun 2022 12:44:13 GMT
1211
+ Content-Type:
1212
+ - application/json; charset=utf-8
1213
+ Content-Length:
1214
+ - '1056'
1215
+ Connection:
1216
+ - keep-alive
1217
+ Status:
1218
+ - 202 Accepted
1219
+ X-Frame-Options:
1220
+ - SAMEORIGIN
1221
+ X-Xss-Protection:
1222
+ - 1; mode=block
1223
+ X-Content-Type-Options:
1224
+ - nosniff
1225
+ X-Oauth-Scopes:
1226
+ - infrastructure, orbit
1227
+ Cache-Control:
1228
+ - no-cache
1229
+ X-Request-Id:
1230
+ - bc97a4ba-2f0b-4aba-b47c-d2a641d84c9b
1231
+ X-Runtime:
1232
+ - '0.165156'
1233
+ Vary:
1234
+ - Origin
1235
+ body:
1236
+ encoding: ASCII-8BIT
1237
+ string: '{"id":"dbs-inim5","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-inim5","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"deleting","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:10Z","updated_at":"2022-06-17T12:44:13Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1238
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
1239
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
1240
+ http_version:
1241
+ recorded_at: Fri, 17 Jun 2022 12:44:13 GMT
1242
+ - request:
1243
+ method: delete
1244
+ uri: http://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce?account_id=acc-12345
1245
+ body:
1246
+ encoding: US-ASCII
1247
+ string: ''
1248
+ headers:
1249
+ User-Agent:
1250
+ - fog-core/1.45.0
1251
+ Proxy-Connection:
1252
+ - Keep-Alive
1253
+ Authorization:
1254
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1255
+ Content-Type:
1256
+ - application/json
1257
+ response:
1258
+ status:
1259
+ code: 202
1260
+ message: Accepted
1261
+ headers:
1262
+ Server:
1263
+ - nginx/1.18.0
1264
+ Date:
1265
+ - Fri, 17 Jun 2022 12:44:13 GMT
1266
+ Content-Type:
1267
+ - application/json; charset=utf-8
1268
+ Content-Length:
1269
+ - '569'
1270
+ Connection:
1271
+ - keep-alive
1272
+ Status:
1273
+ - 202 Accepted
1274
+ X-Frame-Options:
1275
+ - SAMEORIGIN
1276
+ X-Xss-Protection:
1277
+ - 1; mode=block
1278
+ X-Content-Type-Options:
1279
+ - nosniff
1280
+ X-Oauth-Scopes:
1281
+ - infrastructure, orbit
1282
+ Cache-Control:
1283
+ - no-cache
1284
+ X-Request-Id:
1285
+ - 9acd26b2-c0c7-4b70-82e7-fa32e900aafd
1286
+ X-Runtime:
1287
+ - '0.101209'
1288
+ Vary:
1289
+ - Origin
1290
+ body:
1291
+ encoding: ASCII-8BIT
1292
+ string: '{"id":"dbi-tv2ce","resource_type":"database_snapshot","url":"https://api.brightbox.localhost/1.0/database_snapshots/dbi-tv2ce","name":"Snapshot
1293
+ of dbs-inim5","description":"","status":"deleting","locked":false,"database_engine":"mysql","database_version":"8.0","source":"dbs-inim5","source_trigger":"manual","size":0,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:13Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1294
+ test account","status":"active"}}'
1295
+ http_version:
1296
+ recorded_at: Fri, 17 Jun 2022 12:44:13 GMT
1297
+ - request:
1298
+ method: get
1299
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-95ucf?account_id=acc-12345
1300
+ body:
1301
+ encoding: US-ASCII
1302
+ string: ''
1303
+ headers:
1304
+ User-Agent:
1305
+ - fog-core/1.45.0
1306
+ Proxy-Connection:
1307
+ - Keep-Alive
1308
+ Authorization:
1309
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1310
+ Content-Type:
1311
+ - application/json
1312
+ response:
1313
+ status:
1314
+ code: 200
1315
+ message: OK
1316
+ headers:
1317
+ Server:
1318
+ - nginx/1.18.0
1319
+ Date:
1320
+ - Fri, 17 Jun 2022 12:44:13 GMT
1321
+ Content-Type:
1322
+ - application/json; charset=utf-8
1323
+ Content-Length:
1324
+ - '1056'
1325
+ Connection:
1326
+ - keep-alive
1327
+ Status:
1328
+ - 200 OK
1329
+ X-Frame-Options:
1330
+ - SAMEORIGIN
1331
+ X-Xss-Protection:
1332
+ - 1; mode=block
1333
+ X-Content-Type-Options:
1334
+ - nosniff
1335
+ X-Oauth-Scopes:
1336
+ - infrastructure, orbit
1337
+ Etag:
1338
+ - W/"d6bf3e6a63e84208a6a9d092b2e701ca"
1339
+ Cache-Control:
1340
+ - max-age=0, private, must-revalidate
1341
+ X-Request-Id:
1342
+ - bcde7274-c179-4433-9e38-2246b35988ea
1343
+ X-Runtime:
1344
+ - '0.053161'
1345
+ Vary:
1346
+ - Origin
1347
+ body:
1348
+ encoding: ASCII-8BIT
1349
+ string: '{"id":"dbs-95ucf","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-95ucf","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"creating","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:12Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1350
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
1351
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
1352
+ http_version:
1353
+ recorded_at: Fri, 17 Jun 2022 12:44:13 GMT
1354
+ - request:
1355
+ method: get
1356
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-95ucf?account_id=acc-12345
1357
+ body:
1358
+ encoding: US-ASCII
1359
+ string: ''
1360
+ headers:
1361
+ User-Agent:
1362
+ - fog-core/1.45.0
1363
+ Proxy-Connection:
1364
+ - Keep-Alive
1365
+ Authorization:
1366
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1367
+ Content-Type:
1368
+ - application/json
1369
+ response:
1370
+ status:
1371
+ code: 200
1372
+ message: OK
1373
+ headers:
1374
+ Server:
1375
+ - nginx/1.18.0
1376
+ Date:
1377
+ - Fri, 17 Jun 2022 12:44:14 GMT
1378
+ Content-Type:
1379
+ - application/json; charset=utf-8
1380
+ Content-Length:
1381
+ - '1054'
1382
+ Connection:
1383
+ - keep-alive
1384
+ Status:
1385
+ - 200 OK
1386
+ X-Frame-Options:
1387
+ - SAMEORIGIN
1388
+ X-Xss-Protection:
1389
+ - 1; mode=block
1390
+ X-Content-Type-Options:
1391
+ - nosniff
1392
+ X-Oauth-Scopes:
1393
+ - infrastructure, orbit
1394
+ Etag:
1395
+ - W/"78c04facdeed0b701f3f2c7cee5272b4"
1396
+ Cache-Control:
1397
+ - max-age=0, private, must-revalidate
1398
+ X-Request-Id:
1399
+ - ec98ede9-76a8-44fa-b512-a30b93d7e11e
1400
+ X-Runtime:
1401
+ - '0.050812'
1402
+ Vary:
1403
+ - Origin
1404
+ body:
1405
+ encoding: ASCII-8BIT
1406
+ string: '{"id":"dbs-95ucf","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-95ucf","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"active","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:14Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1407
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
1408
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
1409
+ http_version:
1410
+ recorded_at: Fri, 17 Jun 2022 12:44:14 GMT
1411
+ - request:
1412
+ method: delete
1413
+ uri: http://api.brightbox.localhost/1.0/database_servers/dbs-95ucf?account_id=acc-12345
1414
+ body:
1415
+ encoding: US-ASCII
1416
+ string: ''
1417
+ headers:
1418
+ User-Agent:
1419
+ - fog-core/1.45.0
1420
+ Proxy-Connection:
1421
+ - Keep-Alive
1422
+ Authorization:
1423
+ - Bearer 133fc1759354ee7b058a2ddbd7dc7fa3d7d49a50
1424
+ Content-Type:
1425
+ - application/json
1426
+ response:
1427
+ status:
1428
+ code: 202
1429
+ message: Accepted
1430
+ headers:
1431
+ Server:
1432
+ - nginx/1.18.0
1433
+ Date:
1434
+ - Fri, 17 Jun 2022 12:44:14 GMT
1435
+ Content-Type:
1436
+ - application/json; charset=utf-8
1437
+ Content-Length:
1438
+ - '1056'
1439
+ Connection:
1440
+ - keep-alive
1441
+ Status:
1442
+ - 202 Accepted
1443
+ X-Frame-Options:
1444
+ - SAMEORIGIN
1445
+ X-Xss-Protection:
1446
+ - 1; mode=block
1447
+ X-Content-Type-Options:
1448
+ - nosniff
1449
+ X-Oauth-Scopes:
1450
+ - infrastructure, orbit
1451
+ Cache-Control:
1452
+ - no-cache
1453
+ X-Request-Id:
1454
+ - fa464089-5e76-494e-97f3-51145e7d80ba
1455
+ X-Runtime:
1456
+ - '0.177695'
1457
+ Vary:
1458
+ - Origin
1459
+ body:
1460
+ encoding: ASCII-8BIT
1461
+ string: '{"id":"dbs-95ucf","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-95ucf","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":[],"database_engine":"mysql","database_version":"8.0","status":"deleting","locked":false,"maintenance_weekday":0,"maintenance_hour":6,"snapshots_retention":null,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"created_at":"2022-06-17T12:44:12Z","updated_at":"2022-06-17T12:44:14Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
1462
+ test account","status":"active"},"database_server_type":{"id":"dbt-za5cu","resource_type":"database_type","url":"https://api.brightbox.localhost/1.0/database_types/dbt-za5cu","name":"Default
1463
+ DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"}}'
1464
+ http_version:
1465
+ recorded_at: Fri, 17 Jun 2022 12:44:14 GMT
1466
+ recorded_with: VCR 2.5.0