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.
- checksums.yaml +4 -4
- data/.gitattributes +1 -0
- data/.github/workflows/ruby.yml +1 -1
- data/.gitignore +1 -1
- data/.rubocop.yml +70 -0
- data/CHANGELOG.md +52 -0
- data/Gemfile.lock +66 -39
- data/README +11 -16
- data/README.rdoc +1 -1
- data/brightbox-cli.gemspec +20 -33
- data/lib/brightbox-cli/accounts.rb +9 -11
- data/lib/brightbox-cli/api.rb +38 -36
- data/lib/brightbox-cli/cloud_ips.rb +8 -8
- data/lib/brightbox-cli/collaborating_account.rb +5 -5
- data/lib/brightbox-cli/collaboration.rb +1 -1
- data/lib/brightbox-cli/commands/accounts/{accept-invite.rb → accept_invite.rb} +2 -6
- data/lib/brightbox-cli/commands/accounts/default.rb +1 -2
- data/lib/brightbox-cli/commands/accounts/list.rb +6 -8
- data/lib/brightbox-cli/commands/accounts/remove.rb +2 -6
- data/lib/brightbox-cli/commands/accounts/{reset-ftp-password.rb → reset_ftp_password.rb} +6 -9
- data/lib/brightbox-cli/commands/accounts/show.rb +10 -13
- data/lib/brightbox-cli/commands/cloudips/create.rb +2 -5
- data/lib/brightbox-cli/commands/cloudips/destroy.rb +10 -14
- data/lib/brightbox-cli/commands/cloudips/list.rb +0 -2
- data/lib/brightbox-cli/commands/cloudips/map.rb +10 -13
- data/lib/brightbox-cli/commands/cloudips/show.rb +11 -14
- data/lib/brightbox-cli/commands/cloudips/unmap.rb +2 -4
- data/lib/brightbox-cli/commands/cloudips/update.rb +2 -4
- data/lib/brightbox-cli/commands/collaborations.rb +2 -3
- data/lib/brightbox-cli/commands/config/{client-add.rb → client_add.rb} +0 -3
- data/lib/brightbox-cli/commands/config/client_default.rb +18 -0
- data/lib/brightbox-cli/commands/config/{client-list.rb → client_list.rb} +1 -4
- data/lib/brightbox-cli/commands/config/{client-remove.rb → client_remove.rb} +0 -3
- data/lib/brightbox-cli/commands/config/{user-add.rb → user_add.rb} +1 -4
- data/lib/brightbox-cli/commands/firewall/{policies-apply.rb → policies_apply.rb} +2 -2
- data/lib/brightbox-cli/commands/firewall/{policies-create.rb → policies_create.rb} +2 -4
- data/lib/brightbox-cli/commands/firewall/{policies-destroy.rb → policies_destroy.rb} +0 -3
- data/lib/brightbox-cli/commands/firewall/{policies-list.rb → policies_list.rb} +0 -2
- data/lib/brightbox-cli/commands/firewall/{policies-remove.rb → policies_remove.rb} +2 -2
- data/lib/brightbox-cli/commands/firewall/{policies-show.rb → policies_show.rb} +6 -8
- data/lib/brightbox-cli/commands/firewall/{policies-update.rb → policies_update.rb} +2 -4
- data/lib/brightbox-cli/commands/firewall/{rules-create.rb → rules_create.rb} +6 -8
- data/lib/brightbox-cli/commands/firewall/{rules-destroy.rb → rules_destroy.rb} +0 -2
- data/lib/brightbox-cli/commands/firewall/{rules-list.rb → rules_list.rb} +0 -2
- data/lib/brightbox-cli/commands/firewall/{rules-show.rb → rules_show.rb} +7 -9
- data/lib/brightbox-cli/commands/firewall/{rules-update.rb → rules_update.rb} +7 -8
- data/lib/brightbox-cli/commands/groups/{add-server.rb → add_server.rb} +0 -2
- data/lib/brightbox-cli/commands/groups/create.rb +2 -3
- data/lib/brightbox-cli/commands/groups/destroy.rb +0 -2
- data/lib/brightbox-cli/commands/groups/list.rb +0 -1
- data/lib/brightbox-cli/commands/groups/move_servers.rb +2 -3
- data/lib/brightbox-cli/commands/groups/{remove-servers.rb → remove_servers.rb} +2 -4
- data/lib/brightbox-cli/commands/groups/show.rb +0 -2
- data/lib/brightbox-cli/commands/groups/update.rb +2 -3
- data/lib/brightbox-cli/commands/images/destroy.rb +0 -4
- data/lib/brightbox-cli/commands/images/list.rb +3 -5
- data/lib/brightbox-cli/commands/images/register.rb +9 -17
- data/lib/brightbox-cli/commands/images/show.rb +19 -20
- data/lib/brightbox-cli/commands/images/update.rb +12 -8
- data/lib/brightbox-cli/commands/lbs/{add-nodes.rb → add_nodes.rb} +0 -3
- data/lib/brightbox-cli/commands/lbs/create.rb +5 -7
- data/lib/brightbox-cli/commands/lbs/destroy.rb +0 -3
- data/lib/brightbox-cli/commands/lbs/list.rb +0 -1
- data/lib/brightbox-cli/commands/lbs/{remove-nodes.rb → remove_nodes.rb} +0 -3
- data/lib/brightbox-cli/commands/lbs/show.rb +20 -22
- data/lib/brightbox-cli/commands/lbs/update.rb +6 -9
- data/lib/brightbox-cli/commands/login.rb +13 -12
- data/lib/brightbox-cli/commands/servers/{activate-console.rb → activate_console.rb} +2 -5
- data/lib/brightbox-cli/commands/servers/create.rb +24 -25
- data/lib/brightbox-cli/commands/servers/destroy.rb +0 -3
- data/lib/brightbox-cli/commands/servers/list.rb +4 -5
- data/lib/brightbox-cli/commands/servers/show.rb +0 -2
- data/lib/brightbox-cli/commands/servers/shutdown.rb +0 -3
- data/lib/brightbox-cli/commands/servers/snapshot.rb +0 -4
- data/lib/brightbox-cli/commands/servers/start.rb +0 -4
- data/lib/brightbox-cli/commands/servers/stop.rb +0 -3
- data/lib/brightbox-cli/commands/servers/update.rb +5 -5
- data/lib/brightbox-cli/commands/sql/instances_create.rb +3 -6
- data/lib/brightbox-cli/commands/sql/instances_destroy.rb +0 -2
- data/lib/brightbox-cli/commands/sql/instances_list.rb +7 -9
- data/lib/brightbox-cli/commands/sql/instances_reset_password.rb +0 -1
- data/lib/brightbox-cli/commands/sql/instances_show.rb +0 -3
- data/lib/brightbox-cli/commands/sql/instances_snapshot.rb +0 -3
- data/lib/brightbox-cli/commands/sql/instances_update.rb +1 -3
- data/lib/brightbox-cli/commands/sql/snapshots_destroy.rb +0 -3
- data/lib/brightbox-cli/commands/sql/snapshots_list.rb +7 -9
- data/lib/brightbox-cli/commands/sql/snapshots_show.rb +12 -15
- data/lib/brightbox-cli/commands/sql/snapshots_update.rb +1 -3
- data/lib/brightbox-cli/commands/sql/types.rb +8 -15
- data/lib/brightbox-cli/commands/token.rb +0 -1
- data/lib/brightbox-cli/commands/types.rb +8 -14
- data/lib/brightbox-cli/commands/{user-collaborations.rb → user_collaborations.rb} +7 -8
- data/lib/brightbox-cli/commands/users/list.rb +0 -2
- data/lib/brightbox-cli/commands/users/show.rb +1 -3
- data/lib/brightbox-cli/commands/users/update.rb +3 -6
- data/lib/brightbox-cli/commands/zones.rb +7 -10
- data/lib/brightbox-cli/config/accounts.rb +18 -26
- data/lib/brightbox-cli/config/api_client.rb +12 -16
- data/lib/brightbox-cli/config/authentication_tokens.rb +39 -42
- data/lib/brightbox-cli/config/cache.rb +1 -0
- data/lib/brightbox-cli/config/clients.rb +8 -8
- data/lib/brightbox-cli/config/gpg_encrypted_passwords.rb +6 -8
- data/lib/brightbox-cli/config/password_helper.rb +33 -8
- data/lib/brightbox-cli/config/sections.rb +45 -29
- data/lib/brightbox-cli/config/two_factor_auth.rb +12 -14
- data/lib/brightbox-cli/config/two_factor_helper.rb +5 -7
- data/lib/brightbox-cli/config/user_application.rb +18 -18
- data/lib/brightbox-cli/config.rb +26 -23
- data/lib/brightbox-cli/connection_manager.rb +4 -2
- data/lib/brightbox-cli/database_server.rb +28 -29
- data/lib/brightbox-cli/database_snapshot.rb +1 -1
- data/lib/brightbox-cli/database_type.rb +6 -6
- data/lib/brightbox-cli/detailed_server.rb +43 -43
- data/lib/brightbox-cli/detailed_server_group.rb +1 -1
- data/lib/brightbox-cli/error_parser.rb +9 -9
- data/lib/brightbox-cli/firewall_policy.rb +2 -1
- data/lib/brightbox-cli/firewall_rule.rb +3 -3
- data/lib/brightbox-cli/firewall_rules.rb +3 -3
- data/lib/brightbox-cli/gli_global_hooks.rb +25 -27
- data/lib/brightbox-cli/images.rb +14 -12
- data/lib/brightbox-cli/load_balancers.rb +3 -6
- data/lib/brightbox-cli/logging.rb +14 -14
- data/lib/brightbox-cli/nilable_hash.rb +1 -1
- data/lib/brightbox-cli/ruby_core_ext.rb +3 -3
- data/lib/brightbox-cli/server_groups.rb +2 -2
- data/lib/brightbox-cli/servers.rb +6 -6
- data/lib/brightbox-cli/tables.rb +13 -15
- data/lib/brightbox-cli/types.rb +6 -6
- data/lib/brightbox-cli/user_collaboration.rb +5 -7
- data/lib/brightbox-cli/users.rb +1 -1
- data/lib/brightbox-cli/version.rb +1 -1
- data/lib/brightbox-cli/zones.rb +1 -1
- data/lib/brightbox_cli.rb +33 -33
- data/spec/brightbox_spec.rb +0 -1
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml +5 -5
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml +2 -2
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_a_collection_of_Accounts.yml +4 -4
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_resources_on_the_same_connection.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_config_exists_and_overwrite_duplicates_is_false/does_not_update_the_config_file.yml +12 -12
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_config_exists_and_overwrite_duplicates_is_true/does_not_update_the_config_file.yml +12 -12
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_changes_to_the_config_file.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_default_account.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_new_client_as_the_default.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +8 -8
- data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +8 -8
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_config_in_use_is_not_the_default/uses_correct_credentials.yml +1 -1
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_a_cached_refresh_token/caches_the_new_tokens.yml +1 -1
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_an_expired_refresh_token/caches_the_new_tokens.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/caches_the_new_tokens.yml +1 -1
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/prompts_user_to_retry_command.yml +1 -1
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_an_API_client_with_no_tokens/caches_a_new_access_token.yml +1 -1
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/does_not_alter_the_configuration.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/updates_access_token.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_altering_a_custom_option/updates_refresh_token.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/does_not_alter_the_configuration.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/updates_access_token.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_configured_with_custom_options/updates_refresh_token.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/does_not_alter_the_configuration.yml +9 -9
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/updates_access_token.yml +9 -9
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_logged_in_previously/updates_refresh_token.yml +9 -9
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_no_config_exists/creates_the_configuration.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_no_config_exists/refreshed_tokens.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_using_an_email_and_suffix/creates_the_configuration.yml +6 -6
- data/spec/cassettes/Brightbox_BBConfig_add_login/when_using_an_email_and_suffix/refreshed_tokens.yml +6 -6
- data/spec/cassettes/Brightbox_CloudIP/_find_all_/when_a_Cloud_IP_exists/returns_a_suitable.yml +15 -15
- data/spec/cassettes/Brightbox_FirewallPolicy/_apply_to/should_apply_firewall_policy.yml +14 -14
- data/spec/cassettes/Brightbox_FirewallPolicy/_create/should_create_firewall_policy.yml +14 -14
- data/spec/cassettes/Brightbox_FirewallPolicy/_destroy/should_destroy_firewall_policy.yml +16 -16
- data/spec/cassettes/Brightbox_FirewallPolicy/_find_all_/when_a_policy_exists/should_list_firewall_policy.yml +13 -13
- data/spec/cassettes/Brightbox_FirewallPolicy/_find_or_call/when_a_policy_exists/should_show_firewall_policy.yml +11 -11
- data/spec/cassettes/Brightbox_FirewallRule/_create/when_policy_exists/creates_the_rule_successfully.yml +14 -14
- data/spec/cassettes/Brightbox_FirewallRule/_destroy/when_rule_exists/destroys_a_rule.yml +12 -12
- data/spec/cassettes/Brightbox_FirewallRule/_find/when_rule_exists/can_display_the_result.yml +14 -14
- data/spec/cassettes/Brightbox_FirewallRule/_from_policy/when_policy_exists_with_a_rule/lists_all_rules.yml +19 -19
- data/spec/cassettes/Brightbox_Server/_destroy/when_server_exists/should_work.yml +12 -12
- data/spec/cassettes/Brightbox_Server/_find_all_/when_a_server_exists/should_print_server_list.yml +15 -15
- data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +18 -18
- data/spec/cassettes/Brightbox_Server/_shutdown/should_work.yml +18 -18
- data/spec/cassettes/Brightbox_Server/_start/should_work.yml +24 -24
- data/spec/cassettes/Brightbox_Server/_stop/should_work.yml +18 -18
- data/spec/cassettes/Brightbox_Server/_update/when_passing_new_group_membership/should_update_with_group.yml +22 -22
- data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml +13 -13
- data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +3 -3
- data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +30 -30
- data/spec/cassettes/brightbox_accounts/list/_when_both_tokens_expired_/does_not_report_invalid_token_errors.yml +9 -9
- data/spec/cassettes/brightbox_accounts/list/_when_invalid_tokens_/does_not_report_invalid_token_errors.yml +9 -9
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +27 -27
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/reports_they_were_updated.yml +7 -7
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml +7 -7
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml +6 -6
- data/spec/cassettes/brightbox_accounts/list/does_not_error.yml +3 -3
- data/spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml +12 -12
- data/spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml +7 -7
- data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +7 -7
- data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +7 -7
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +7 -7
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +7 -7
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +7 -7
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +7 -7
- data/spec/cassettes/brightbox_config/user_add/when_NO_config_file_on_disk/sets_up_the_config.yml +5 -5
- data/spec/cassettes/brightbox_config/user_add/when_a_default_client_is_already_set/does_not_change_the_default_client.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/does_not_error.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/sets_up_the_config.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/display_an_warning_about_preselected_default.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/does_not_error.yml +2 -2
- 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
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/sets_up_the_config.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/display_an_warning_about_preselected_default.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/does_not_error.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/sets_up_the_config.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_error.yml +2 -2
- 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
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/requests_access_tokens.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +5 -5
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_error.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_prompt_to_rerun_the_command.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/requests_access_tokens.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/sets_up_the_config.yml +3 -3
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml +2 -2
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml +2 -2
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/does_not_error.yml +6 -6
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/does_not_prompt_to_rerun_the_command.yml +6 -6
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/prompts_for_the_password.yml +6 -6
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/requests_access_tokens.yml +6 -6
- data/spec/cassettes/brightbox_login/when_alternative_client_credentials_are_given/sets_up_the_config.yml +6 -6
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/does_not_error.yml +6 -6
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/does_not_prompt_to_rerun_the_command.yml +6 -6
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/prompts_for_the_password.yml +6 -6
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/requests_access_tokens.yml +6 -6
- data/spec/cassettes/brightbox_login/when_custom_api/auth_URLs_are_given/sets_up_the_config.yml +6 -6
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/does_not_error.yml +3 -3
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/does_not_prompt_to_rerun_the_command.yml +3 -3
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/prompts_for_the_password.yml +3 -3
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/requests_access_tokens.yml +3 -3
- data/spec/cassettes/brightbox_login/when_default_account_is_passed/sets_up_the_config.yml +3 -3
- data/spec/cassettes/brightbox_login/when_no_config_is_present/does_not_error.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_config_is_present/does_not_prompt_to_rerun_the_command.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_config_is_present/requests_access_tokens.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_config_is_present/sets_up_the_config.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_password_is_given/does_not_error.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_password_is_given/does_not_prompt_to_rerun_the_command.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_password_is_given/prompts_for_the_password.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_password_is_given/requests_access_tokens.yml +6 -6
- data/spec/cassettes/brightbox_login/when_no_password_is_given/sets_up_the_config.yml +6 -6
- data/spec/cassettes/brightbox_sql_instances/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml +313 -26
- data/spec/cassettes/brightbox_sql_instances/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml +1204 -38
- data/spec/cassettes/brightbox_sql_instances/create/--engine_mysql/correctly_sends_API_parameters.yml +596 -26
- data/spec/cassettes/brightbox_sql_instances/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml +63 -9
- data/spec/cassettes/brightbox_sql_instances/create/--engine_mysql_--engine-version_8_0/correctly_sends_API_parameters.yml +393 -0
- data/spec/cassettes/brightbox_sql_instances/create/--maintenance-weekday_5_--maintenance_hour_11/correctly_sends_API_parameters.yml +393 -0
- data/spec/cassettes/brightbox_sql_instances/create/--maintenance-weekday_thursday/correctly_sends_API_parameters.yml +393 -0
- data/spec/cassettes/brightbox_sql_instances/create/--snapshot_dbi-12345/includes_schedule_fields_in_response.yml +1466 -0
- data/spec/cassettes/brightbox_sql_instances/create/--snapshots-schedule_0_12_4_/includes_schedule_fields_in_response.yml +342 -0
- data/spec/cassettes/brightbox_sql_instances/create/without_arguments/reports_the_new_admin_password.yml +541 -26
- data/spec/cassettes/brightbox_sql_instances/create/without_arguments/reports_the_new_admin_username.yml +484 -26
- data/spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_active/correctly_sends_API_parameters.yml +4 -4
- data/spec/cassettes/brightbox_sql_instances/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml +2 -2
- data/spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml +2 -2
- data/spec/cassettes/brightbox_sql_snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml +2 -2
- data/spec/cassettes/brightbox_sql_snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +2 -2
- data/spec/commands/accounts/default_spec.rb +1 -2
- data/spec/commands/accounts/list_spec.rb +7 -8
- data/spec/commands/accounts/reset_ftp_password_spec.rb +1 -2
- data/spec/commands/accounts/show_spec.rb +1 -2
- data/spec/commands/cloudips/create_spec.rb +1 -2
- data/spec/commands/cloudips/destroy_spec.rb +1 -2
- data/spec/commands/cloudips/list_spec.rb +1 -2
- data/spec/commands/cloudips/map_spec.rb +2 -3
- data/spec/commands/cloudips/show_spec.rb +1 -2
- data/spec/commands/cloudips/unmap_spec.rb +1 -2
- data/spec/commands/cloudips/update_spec.rb +7 -8
- data/spec/commands/config/client_add_spec.rb +2 -3
- data/spec/commands/config/client_default_spec.rb +1 -2
- data/spec/commands/config/client_list_spec.rb +1 -2
- data/spec/commands/config/client_remove_spec.rb +1 -2
- data/spec/commands/config/user_add_spec.rb +3 -4
- data/spec/commands/firewall_policies/update_spec.rb +3 -3
- data/spec/commands/groups/add_server_spec.rb +1 -2
- data/spec/commands/groups/create_spec.rb +1 -2
- data/spec/commands/groups/destroy_spec.rb +1 -2
- data/spec/commands/groups/list_spec.rb +1 -2
- data/spec/commands/groups/move_servers_spec.rb +1 -2
- data/spec/commands/groups/remove_servers_spec.rb +1 -2
- data/spec/commands/groups/show_spec.rb +1 -2
- data/spec/commands/groups/update_spec.rb +1 -2
- data/spec/commands/images/destroy_spec.rb +1 -2
- data/spec/commands/images/list_spec.rb +62 -63
- data/spec/commands/images/locking_spec.rb +4 -4
- data/spec/commands/images/register_spec.rb +89 -3
- data/spec/commands/images/show_spec.rb +56 -4
- data/spec/commands/images/update_spec.rb +53 -3
- data/spec/commands/lbs/add_nodes_spec.rb +1 -2
- data/spec/commands/lbs/create_spec.rb +2 -3
- data/spec/commands/lbs/destroy_spec.rb +1 -2
- data/spec/commands/lbs/list_spec.rb +1 -2
- data/spec/commands/lbs/locking_spec.rb +4 -4
- data/spec/commands/lbs/remove_nodes_spec.rb +1 -2
- data/spec/commands/lbs/show_spec.rb +1 -2
- data/spec/commands/lbs/update_spec.rb +3 -4
- data/spec/commands/login_spec.rb +134 -30
- data/spec/commands/policies/apply_spec.rb +1 -2
- data/spec/commands/policies/create_spec.rb +1 -2
- data/spec/commands/policies/destroy_spec.rb +1 -2
- data/spec/commands/policies/list_spec.rb +1 -2
- data/spec/commands/policies/remove_spec.rb +1 -2
- data/spec/commands/policies/show_spec.rb +1 -2
- data/spec/commands/policies/update_spec.rb +1 -2
- data/spec/commands/rules/create_spec.rb +1 -2
- data/spec/commands/rules/destroy_spec.rb +1 -2
- data/spec/commands/rules/list_spec.rb +1 -2
- data/spec/commands/rules/show_spec.rb +1 -2
- data/spec/commands/rules/update_spec.rb +1 -2
- data/spec/commands/servers/activate_console_spec.rb +1 -2
- data/spec/commands/servers/create_spec.rb +10 -10
- data/spec/commands/servers/destroy_spec.rb +1 -2
- data/spec/commands/servers/list_spec.rb +1 -2
- data/spec/commands/servers/locking_spec.rb +4 -4
- data/spec/commands/servers/reboot_spec.rb +3 -4
- data/spec/commands/servers/reset_spec.rb +3 -4
- data/spec/commands/servers/show_spec.rb +1 -2
- data/spec/commands/servers/shutdown_spec.rb +1 -2
- data/spec/commands/servers/snapshot_spec.rb +1 -2
- data/spec/commands/servers/start_spec.rb +1 -2
- data/spec/commands/servers/stop_spec.rb +1 -2
- data/spec/commands/servers/update_spec.rb +1 -2
- data/spec/commands/sql/instances/create_spec.rb +58 -75
- data/spec/commands/sql/instances/locking_spec.rb +4 -4
- data/spec/commands/sql/instances/show_spec.rb +7 -7
- data/spec/commands/sql/instances/snapshot_spec.rb +2 -2
- data/spec/commands/sql/instances/update_spec.rb +8 -8
- data/spec/commands/sql/snapshots/list_spec.rb +1 -1
- data/spec/commands/sql/snapshots/locking_spec.rb +4 -4
- data/spec/commands/sql/snapshots/show_spec.rb +1 -1
- data/spec/commands/sql/types/list_spec.rb +1 -2
- data/spec/commands/types/list_spec.rb +1 -2
- data/spec/commands/users/list_spec.rb +1 -2
- data/spec/commands/users/show_spec.rb +1 -2
- data/spec/commands/users/update_spec.rb +1 -2
- data/spec/commands/zones/list_spec.rb +1 -2
- data/spec/configs/api_client.ini +1 -1
- data/spec/configs/user_app.ini +2 -2
- data/spec/spec_helper.rb +16 -3
- data/spec/support/authentication_helpers.rb +98 -0
- data/spec/support/config_helpers.rb +2 -4
- data/spec/support/password_prompt_helpers.rb +22 -1
- data/spec/support/server_helper.rb +5 -5
- data/spec/support/tmp_config.rb +1 -1
- data/spec/support/token_helpers.rb +2 -2
- data/spec/support/vcr.rb +3 -22
- data/spec/unit/brightbox/api/created_on_spec.rb +2 -2
- data/spec/unit/brightbox/api/fog_model_spec.rb +13 -13
- data/spec/unit/brightbox/api/klass_name_spec.rb +0 -1
- data/spec/unit/brightbox/api/method_missing_spec.rb +64 -0
- data/spec/unit/brightbox/api/require_account_spec.rb +0 -1
- data/spec/unit/brightbox/api/respond_to_spec.rb +71 -0
- data/spec/unit/brightbox/bb_config/access_token_filename_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/account_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/add_login_spec.rb +27 -28
- data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -2
- data/spec/unit/brightbox/bb_config/clear_default_client_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/client_id_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/client_name_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/config_directory_exists_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/config_directory_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/config_spec.rb +2 -3
- data/spec/unit/brightbox/bb_config/default_account_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/default_client_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/delete_section_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/find_or_set_default_account_spec.rb +4 -4
- data/spec/unit/brightbox/bb_config/refresh_token_filename_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +3 -4
- data/spec/unit/brightbox/bb_config/save_default_account_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/save_spec.rb +0 -1
- data/spec/unit/brightbox/bb_config/section_names_spec.rb +1 -1
- data/spec/unit/brightbox/bb_config/to_fog_spec.rb +2 -2
- data/spec/unit/brightbox/collaborating_account/to_row_spec.rb +3 -3
- data/spec/unit/brightbox/config/api_client/to_fog_spec.rb +8 -8
- data/spec/unit/brightbox/config/api_client/valid_spec.rb +4 -4
- data/spec/unit/brightbox/config/discover_two_factor_pin_spec.rb +87 -0
- data/spec/unit/brightbox/config/section_name_deduplicator_spec.rb +1 -1
- data/spec/unit/brightbox/config/user_application/to_fog_spec.rb +10 -10
- data/spec/unit/brightbox/config/user_application/valid_spec.rb +3 -3
- data/spec/unit/brightbox/connection_manager/fetch_connection_spec.rb +1 -1
- data/spec/unit/brightbox/database_server/clean_arguments_spec.rb +1 -2
- data/spec/unit/brightbox/database_server/maintenance_window_spec.rb +0 -1
- data/spec/unit/brightbox/error_parser/pretty_print_spec.rb +0 -1
- data/spec/unit/brightbox/firewall_policy/apply_to_spec.rb +0 -1
- data/spec/unit/brightbox/firewall_policy/create_spec.rb +0 -1
- data/spec/unit/brightbox/firewall_policy/find_or_call_spec.rb +0 -1
- data/spec/unit/brightbox/firewall_policy/find_spec.rb +0 -1
- data/spec/unit/brightbox/firewall_rule/find_spec.rb +9 -9
- data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +4 -4
- data/spec/unit/brightbox/legacy/args_adjuster_spec.rb +20 -21
- data/spec/unit/brightbox/server/create_spec.rb +1 -2
- data/spec/unit/brightbox/server/start_spec.rb +2 -2
- data/spec/unit/brightbox/server/update_spec.rb +0 -1
- data/spec/unit/brightbox/user_collaboration/remove_spec.rb +0 -1
- data/spec/unit/nilable_hash_spec.rb +5 -5
- data/spec/unit/ruby_core_ext_spec.rb +3 -4
- data/spec/unit/temporary_home_spec.rb +1 -1
- data/spec/unit/tmp_config_spec.rb +0 -1
- metadata +133 -101
- data/bin/brightbox-accounts +0 -13
- data/bin/brightbox-cloudips +0 -13
- data/bin/brightbox-config +0 -13
- data/bin/brightbox-firewall-policies +0 -13
- data/bin/brightbox-firewall-rules +0 -13
- data/bin/brightbox-groups +0 -13
- data/bin/brightbox-images +0 -13
- data/bin/brightbox-lbs +0 -13
- data/bin/brightbox-servers +0 -13
- data/bin/brightbox-types +0 -13
- data/bin/brightbox-users +0 -13
- data/bin/brightbox-zones +0 -13
- data/lib/brightbox-cli/commands/config/client-default.rb +0 -26
@@ -2,92 +2,1258 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://api.brightbox.
|
5
|
+
uri: http://api.brightbox.localhost/1.0/servers?account_id=acc-12345
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"server_type":"2gb.nbs","image":"img-12345"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- fog/1.
|
11
|
+
- fog-core/1.45.0
|
12
|
+
Proxy-Connection:
|
13
|
+
- Keep-Alive
|
12
14
|
Authorization:
|
13
|
-
-
|
15
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
14
16
|
Content-Type:
|
15
17
|
- application/json
|
16
18
|
response:
|
17
19
|
status:
|
18
20
|
code: 202
|
19
|
-
message:
|
21
|
+
message: Accepted
|
20
22
|
headers:
|
21
|
-
|
22
|
-
-
|
23
|
+
Server:
|
24
|
+
- nginx/1.18.0
|
25
|
+
Date:
|
26
|
+
- Fri, 17 Jun 2022 14:01:28 GMT
|
23
27
|
Content-Type:
|
24
28
|
- application/json; charset=utf-8
|
25
|
-
|
26
|
-
-
|
29
|
+
Content-Length:
|
30
|
+
- '2532'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 202 Accepted
|
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
|
+
Location:
|
44
|
+
- http://api.brightbox.localhost/1.0/servers/srv-ant0d
|
27
45
|
Cache-Control:
|
28
46
|
- no-cache
|
29
47
|
X-Request-Id:
|
30
|
-
-
|
48
|
+
- 10979ab6-1dfe-4875-a18f-8382c80d9cf2
|
31
49
|
X-Runtime:
|
32
|
-
- '0.
|
50
|
+
- '0.266268'
|
51
|
+
Vary:
|
52
|
+
- Origin
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"id":"srv-12345","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-12345","name":"","status":"creating","locked":false,"hostname":"srv-12345","created_at":"2022-06-17T14:01:28.670Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":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"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-12345","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-12345","name":"2GB
|
57
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-llq4t","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-llq4t","mac_address":"02:24:19:10:20:1a","ipv4_address":"10.16.32.26","ipv6_address":"2a02:1348:1dd:806:24:19ff:fe10:201a"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-12345","name":"default","description":"All
|
58
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-12345.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-feoyj","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-feoyj","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-feoyj","size":40960,"source":"img-12345","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:01:28Z","updated_at":"2022-06-17T14:01:28Z","deleted_at":null}]}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Fri, 17 Jun 2022 14:01:28 GMT
|
61
|
+
- request:
|
62
|
+
method: get
|
63
|
+
uri: http://api.brightbox.localhost/1.0/servers/srv-12345?account_id=acc-12345
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: ''
|
67
|
+
headers:
|
68
|
+
User-Agent:
|
69
|
+
- fog-core/1.45.0
|
70
|
+
Proxy-Connection:
|
71
|
+
- Keep-Alive
|
72
|
+
Authorization:
|
73
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
33
81
|
Server:
|
34
|
-
-
|
82
|
+
- nginx/1.18.0
|
35
83
|
Date:
|
36
|
-
-
|
84
|
+
- Fri, 17 Jun 2022 14:01:28 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json; charset=utf-8
|
37
87
|
Content-Length:
|
38
|
-
- '
|
88
|
+
- '2532'
|
39
89
|
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Status:
|
92
|
+
- 200 OK
|
93
|
+
X-Frame-Options:
|
94
|
+
- SAMEORIGIN
|
95
|
+
X-Xss-Protection:
|
96
|
+
- 1; mode=block
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
X-Oauth-Scopes:
|
100
|
+
- infrastructure, orbit
|
101
|
+
Etag:
|
102
|
+
- W/"8f4fbd7851b742afadd56e60d94e6d79"
|
103
|
+
Cache-Control:
|
104
|
+
- max-age=0, private, must-revalidate
|
105
|
+
X-Request-Id:
|
106
|
+
- dcdba4ef-0354-4cf3-b01a-9d401ee40fd5
|
107
|
+
X-Runtime:
|
108
|
+
- '0.054658'
|
109
|
+
Vary:
|
110
|
+
- Origin
|
111
|
+
body:
|
112
|
+
encoding: ASCII-8BIT
|
113
|
+
string: '{"id":"srv-12345","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-12345","name":"","status":"creating","locked":false,"hostname":"srv-12345","created_at":"2022-06-17T14:01:28.000Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
114
|
+
test account","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-12345","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-12345","name":"2GB
|
115
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-llq4t","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-llq4t","mac_address":"02:24:19:10:20:1a","ipv4_address":"10.16.32.26","ipv6_address":"2a02:1348:1dd:806:24:19ff:fe10:201a"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-12345","name":"default","description":"All
|
116
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-12345.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-feoyj","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-feoyj","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-feoyj","size":40960,"source":"img-12345","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:01:28Z","updated_at":"2022-06-17T14:01:28Z","deleted_at":null}]}'
|
117
|
+
http_version:
|
118
|
+
recorded_at: Fri, 17 Jun 2022 14:01:28 GMT
|
119
|
+
- request:
|
120
|
+
method: get
|
121
|
+
uri: http://api.brightbox.localhost/1.0/servers/srv-12345?account_id=acc-12345
|
122
|
+
body:
|
123
|
+
encoding: US-ASCII
|
124
|
+
string: ''
|
125
|
+
headers:
|
126
|
+
User-Agent:
|
127
|
+
- fog-core/1.45.0
|
128
|
+
Proxy-Connection:
|
40
129
|
- Keep-Alive
|
130
|
+
Authorization:
|
131
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
132
|
+
Content-Type:
|
133
|
+
- application/json
|
134
|
+
response:
|
135
|
+
status:
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
Server:
|
140
|
+
- nginx/1.18.0
|
141
|
+
Date:
|
142
|
+
- Fri, 17 Jun 2022 14:01:29 GMT
|
143
|
+
Content-Type:
|
144
|
+
- application/json; charset=utf-8
|
145
|
+
Content-Length:
|
146
|
+
- '2552'
|
147
|
+
Connection:
|
148
|
+
- keep-alive
|
149
|
+
Status:
|
150
|
+
- 200 OK
|
151
|
+
X-Frame-Options:
|
152
|
+
- SAMEORIGIN
|
153
|
+
X-Xss-Protection:
|
154
|
+
- 1; mode=block
|
155
|
+
X-Content-Type-Options:
|
156
|
+
- nosniff
|
157
|
+
X-Oauth-Scopes:
|
158
|
+
- infrastructure, orbit
|
159
|
+
Etag:
|
160
|
+
- W/"a13c8a860adc6899ff8c5dc6e4706f1b"
|
161
|
+
Cache-Control:
|
162
|
+
- max-age=0, private, must-revalidate
|
163
|
+
X-Request-Id:
|
164
|
+
- ae98c078-eda0-4b25-9fcc-eb827856cb36
|
165
|
+
X-Runtime:
|
166
|
+
- '0.055312'
|
167
|
+
Vary:
|
168
|
+
- Origin
|
41
169
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
44
|
-
account
|
170
|
+
encoding: ASCII-8BIT
|
171
|
+
string: '{"id":"srv-12345","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-12345","name":"","status":"active","locked":false,"hostname":"srv-12345","created_at":"2022-06-17T14:01:28.000Z","started_at":"2022-06-17T14:01:29.000Z","deleted_at":null,"user_data":null,"fqdn":"srv-12345.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
172
|
+
test account","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-12345","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-12345","name":"2GB
|
173
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-llq4t","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-llq4t","mac_address":"02:24:19:10:20:1a","ipv4_address":"10.16.32.26","ipv6_address":"2a02:1348:1dd:806:24:19ff:fe10:201a"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-12345","name":"default","description":"All
|
174
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-12345.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-feoyj","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-feoyj","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-feoyj","size":40960,"source":"img-12345","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:01:28Z","updated_at":"2022-06-17T14:01:28Z","deleted_at":null}]}'
|
45
175
|
http_version:
|
46
|
-
recorded_at:
|
176
|
+
recorded_at: Fri, 17 Jun 2022 14:01:29 GMT
|
47
177
|
- request:
|
48
178
|
method: post
|
49
|
-
uri: http://api.brightbox.
|
179
|
+
uri: http://api.brightbox.localhost/1.0/database_servers?account_id=acc-12345
|
50
180
|
body:
|
51
181
|
encoding: UTF-8
|
52
|
-
string:
|
182
|
+
string: '{"name":null,"description":null,"allow_access":["srv-12345","grp-12345"],"maintenance_weekday":null,"maintenance_hour":null,"snapshots_schedule":null}'
|
183
|
+
headers:
|
184
|
+
User-Agent:
|
185
|
+
- fog-core/1.45.0
|
186
|
+
Proxy-Connection:
|
187
|
+
- Keep-Alive
|
188
|
+
Authorization:
|
189
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
190
|
+
Content-Type:
|
191
|
+
- application/json
|
192
|
+
response:
|
193
|
+
status:
|
194
|
+
code: 202
|
195
|
+
message: Accepted
|
196
|
+
headers:
|
197
|
+
Server:
|
198
|
+
- nginx/1.18.0
|
199
|
+
Date:
|
200
|
+
- Fri, 17 Jun 2022 14:01:30 GMT
|
201
|
+
Content-Type:
|
202
|
+
- application/json; charset=utf-8
|
203
|
+
Content-Length:
|
204
|
+
- '1093'
|
205
|
+
Connection:
|
206
|
+
- keep-alive
|
207
|
+
Status:
|
208
|
+
- 202 Accepted
|
209
|
+
X-Frame-Options:
|
210
|
+
- SAMEORIGIN
|
211
|
+
X-Xss-Protection:
|
212
|
+
- 1; mode=block
|
213
|
+
X-Content-Type-Options:
|
214
|
+
- nosniff
|
215
|
+
X-Oauth-Scopes:
|
216
|
+
- infrastructure, orbit
|
217
|
+
Location:
|
218
|
+
- http://api.brightbox.localhost/1.0/database_servers/dbs-au9p6
|
219
|
+
Cache-Control:
|
220
|
+
- no-cache
|
221
|
+
X-Request-Id:
|
222
|
+
- 837ee620-9452-4cec-bef5-fdd0f19dcfcd
|
223
|
+
X-Runtime:
|
224
|
+
- '0.603211'
|
225
|
+
Vary:
|
226
|
+
- Origin
|
227
|
+
body:
|
228
|
+
encoding: ASCII-8BIT
|
229
|
+
string: '{"id":"dbs-au9p6","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-au9p6","name":"","description":"","admin_username":"admin","admin_password":"gag6itqwqdr1ef5o","allow_access":["srv-12345","grp-12345"],"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-17T14:01:30Z","updated_at":"2022-06-17T14:01:30Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
230
|
+
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
|
231
|
+
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"}}'
|
232
|
+
http_version:
|
233
|
+
recorded_at: Fri, 17 Jun 2022 14:01:30 GMT
|
234
|
+
- request:
|
235
|
+
method: delete
|
236
|
+
uri: http://api.brightbox.localhost/1.0/servers/srv-12345?account_id=acc-12345
|
237
|
+
body:
|
238
|
+
encoding: US-ASCII
|
239
|
+
string: ''
|
53
240
|
headers:
|
54
241
|
User-Agent:
|
55
|
-
- fog/1.
|
242
|
+
- fog-core/1.45.0
|
243
|
+
Proxy-Connection:
|
244
|
+
- Keep-Alive
|
56
245
|
Authorization:
|
57
|
-
-
|
246
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
58
247
|
Content-Type:
|
59
248
|
- application/json
|
60
249
|
response:
|
61
250
|
status:
|
62
|
-
code:
|
63
|
-
message:
|
251
|
+
code: 202
|
252
|
+
message: Accepted
|
64
253
|
headers:
|
254
|
+
Server:
|
255
|
+
- nginx/1.18.0
|
256
|
+
Date:
|
257
|
+
- Fri, 17 Jun 2022 14:01:30 GMT
|
258
|
+
Content-Type:
|
259
|
+
- application/json; charset=utf-8
|
260
|
+
Content-Length:
|
261
|
+
- '2554'
|
262
|
+
Connection:
|
263
|
+
- keep-alive
|
264
|
+
Status:
|
265
|
+
- 202 Accepted
|
65
266
|
X-Frame-Options:
|
66
|
-
-
|
267
|
+
- SAMEORIGIN
|
67
268
|
X-Xss-Protection:
|
68
269
|
- 1; mode=block
|
270
|
+
X-Content-Type-Options:
|
271
|
+
- nosniff
|
272
|
+
X-Oauth-Scopes:
|
273
|
+
- infrastructure, orbit
|
274
|
+
Cache-Control:
|
275
|
+
- no-cache
|
276
|
+
X-Request-Id:
|
277
|
+
- dcf8a8ca-b043-4647-bbd4-fb5decc7a410
|
278
|
+
X-Runtime:
|
279
|
+
- '0.127301'
|
280
|
+
Vary:
|
281
|
+
- Origin
|
282
|
+
body:
|
283
|
+
encoding: ASCII-8BIT
|
284
|
+
string: '{"id":"srv-12345","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-12345","name":"","status":"deleting","locked":false,"hostname":"srv-12345","created_at":"2022-06-17T14:01:28.000Z","started_at":"2022-06-17T14:01:29.000Z","deleted_at":null,"user_data":null,"fqdn":"srv-12345.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
285
|
+
test account","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-12345","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-12345","name":"2GB
|
286
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-12345","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-llq4t","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-llq4t","mac_address":"02:24:19:10:20:1a","ipv4_address":"10.16.32.26","ipv6_address":"2a02:1348:1dd:806:24:19ff:fe10:201a"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-12345","name":"default","description":"All
|
287
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-12345.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-feoyj","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-feoyj","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-feoyj","size":40960,"source":"img-12345","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:01:28Z","updated_at":"2022-06-17T14:01:28Z","deleted_at":null}]}'
|
288
|
+
http_version:
|
289
|
+
recorded_at: Fri, 17 Jun 2022 14:01:30 GMT
|
290
|
+
- request:
|
291
|
+
method: get
|
292
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-au9p6?account_id=acc-12345
|
293
|
+
body:
|
294
|
+
encoding: US-ASCII
|
295
|
+
string: ''
|
296
|
+
headers:
|
297
|
+
User-Agent:
|
298
|
+
- fog-core/1.45.0
|
299
|
+
Proxy-Connection:
|
300
|
+
- Keep-Alive
|
301
|
+
Authorization:
|
302
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
69
303
|
Content-Type:
|
70
|
-
- application/json
|
304
|
+
- application/json
|
305
|
+
response:
|
306
|
+
status:
|
307
|
+
code: 200
|
308
|
+
message: OK
|
309
|
+
headers:
|
310
|
+
Server:
|
311
|
+
- nginx/1.18.0
|
312
|
+
Date:
|
313
|
+
- Fri, 17 Jun 2022 14:01:30 GMT
|
314
|
+
Content-Type:
|
315
|
+
- application/json; charset=utf-8
|
316
|
+
Content-Length:
|
317
|
+
- '1079'
|
318
|
+
Connection:
|
319
|
+
- keep-alive
|
320
|
+
Status:
|
321
|
+
- 200 OK
|
322
|
+
X-Frame-Options:
|
323
|
+
- SAMEORIGIN
|
324
|
+
X-Xss-Protection:
|
325
|
+
- 1; mode=block
|
326
|
+
X-Content-Type-Options:
|
327
|
+
- nosniff
|
328
|
+
X-Oauth-Scopes:
|
329
|
+
- infrastructure, orbit
|
330
|
+
Etag:
|
331
|
+
- W/"ca241bc39587768a898b933647cdfd23"
|
71
332
|
Cache-Control:
|
72
|
-
-
|
333
|
+
- max-age=0, private, must-revalidate
|
334
|
+
X-Request-Id:
|
335
|
+
- 6d01321b-17fd-4853-a13a-76792476da59
|
336
|
+
X-Runtime:
|
337
|
+
- '0.055292'
|
338
|
+
Vary:
|
339
|
+
- Origin
|
340
|
+
body:
|
341
|
+
encoding: ASCII-8BIT
|
342
|
+
string: '{"id":"dbs-au9p6","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-au9p6","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["srv-12345","grp-12345"],"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-17T14:01:30Z","updated_at":"2022-06-17T14:01:30Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
343
|
+
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
|
344
|
+
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"}}'
|
345
|
+
http_version:
|
346
|
+
recorded_at: Fri, 17 Jun 2022 14:01:30 GMT
|
347
|
+
- request:
|
348
|
+
method: get
|
349
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-au9p6?account_id=acc-12345
|
350
|
+
body:
|
351
|
+
encoding: US-ASCII
|
352
|
+
string: ''
|
353
|
+
headers:
|
354
|
+
User-Agent:
|
355
|
+
- fog-core/1.45.0
|
356
|
+
Proxy-Connection:
|
357
|
+
- Keep-Alive
|
358
|
+
Authorization:
|
359
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
360
|
+
Content-Type:
|
361
|
+
- application/json
|
362
|
+
response:
|
363
|
+
status:
|
364
|
+
code: 200
|
365
|
+
message: OK
|
366
|
+
headers:
|
367
|
+
Server:
|
368
|
+
- nginx/1.18.0
|
369
|
+
Date:
|
370
|
+
- Fri, 17 Jun 2022 14:01:30 GMT
|
371
|
+
Content-Type:
|
372
|
+
- application/json; charset=utf-8
|
373
|
+
Content-Length:
|
374
|
+
- '1079'
|
375
|
+
Connection:
|
376
|
+
- keep-alive
|
377
|
+
Status:
|
378
|
+
- 200 OK
|
379
|
+
X-Frame-Options:
|
380
|
+
- SAMEORIGIN
|
381
|
+
X-Xss-Protection:
|
382
|
+
- 1; mode=block
|
383
|
+
X-Content-Type-Options:
|
384
|
+
- nosniff
|
385
|
+
X-Oauth-Scopes:
|
386
|
+
- infrastructure, orbit
|
387
|
+
Etag:
|
388
|
+
- W/"ca241bc39587768a898b933647cdfd23"
|
389
|
+
Cache-Control:
|
390
|
+
- max-age=0, private, must-revalidate
|
391
|
+
X-Request-Id:
|
392
|
+
- 07b476a9-75fb-4c72-b3c5-0a992c03a491
|
393
|
+
X-Runtime:
|
394
|
+
- '0.046696'
|
395
|
+
Vary:
|
396
|
+
- Origin
|
397
|
+
body:
|
398
|
+
encoding: ASCII-8BIT
|
399
|
+
string: '{"id":"dbs-au9p6","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-au9p6","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["srv-12345","grp-12345"],"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-17T14:01:30Z","updated_at":"2022-06-17T14:01:30Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
400
|
+
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
|
401
|
+
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"}}'
|
402
|
+
http_version:
|
403
|
+
recorded_at: Fri, 17 Jun 2022 14:01:30 GMT
|
404
|
+
- request:
|
405
|
+
method: get
|
406
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-au9p6?account_id=acc-12345
|
407
|
+
body:
|
408
|
+
encoding: US-ASCII
|
409
|
+
string: ''
|
410
|
+
headers:
|
411
|
+
User-Agent:
|
412
|
+
- fog-core/1.45.0
|
413
|
+
Proxy-Connection:
|
414
|
+
- Keep-Alive
|
415
|
+
Authorization:
|
416
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
417
|
+
Content-Type:
|
418
|
+
- application/json
|
419
|
+
response:
|
420
|
+
status:
|
421
|
+
code: 200
|
422
|
+
message: OK
|
423
|
+
headers:
|
424
|
+
Server:
|
425
|
+
- nginx/1.18.0
|
426
|
+
Date:
|
427
|
+
- Fri, 17 Jun 2022 14:01:31 GMT
|
428
|
+
Content-Type:
|
429
|
+
- application/json; charset=utf-8
|
430
|
+
Content-Length:
|
431
|
+
- '1079'
|
432
|
+
Connection:
|
433
|
+
- keep-alive
|
434
|
+
Status:
|
435
|
+
- 200 OK
|
436
|
+
X-Frame-Options:
|
437
|
+
- SAMEORIGIN
|
438
|
+
X-Xss-Protection:
|
439
|
+
- 1; mode=block
|
440
|
+
X-Content-Type-Options:
|
441
|
+
- nosniff
|
442
|
+
X-Oauth-Scopes:
|
443
|
+
- infrastructure, orbit
|
444
|
+
Etag:
|
445
|
+
- W/"ca241bc39587768a898b933647cdfd23"
|
446
|
+
Cache-Control:
|
447
|
+
- max-age=0, private, must-revalidate
|
448
|
+
X-Request-Id:
|
449
|
+
- 8e9f75fe-e07d-40c8-8713-7988ee8bc7be
|
450
|
+
X-Runtime:
|
451
|
+
- '0.062839'
|
452
|
+
Vary:
|
453
|
+
- Origin
|
454
|
+
body:
|
455
|
+
encoding: ASCII-8BIT
|
456
|
+
string: '{"id":"dbs-au9p6","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-au9p6","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["srv-12345","grp-12345"],"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-17T14:01:30Z","updated_at":"2022-06-17T14:01:30Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
457
|
+
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
|
458
|
+
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"}}'
|
459
|
+
http_version:
|
460
|
+
recorded_at: Fri, 17 Jun 2022 14:01:31 GMT
|
461
|
+
- request:
|
462
|
+
method: get
|
463
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-au9p6?account_id=acc-12345
|
464
|
+
body:
|
465
|
+
encoding: US-ASCII
|
466
|
+
string: ''
|
467
|
+
headers:
|
468
|
+
User-Agent:
|
469
|
+
- fog-core/1.45.0
|
470
|
+
Proxy-Connection:
|
471
|
+
- Keep-Alive
|
472
|
+
Authorization:
|
473
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
474
|
+
Content-Type:
|
475
|
+
- application/json
|
476
|
+
response:
|
477
|
+
status:
|
478
|
+
code: 200
|
479
|
+
message: OK
|
480
|
+
headers:
|
481
|
+
Server:
|
482
|
+
- nginx/1.18.0
|
483
|
+
Date:
|
484
|
+
- Fri, 17 Jun 2022 14:01:34 GMT
|
485
|
+
Content-Type:
|
486
|
+
- application/json; charset=utf-8
|
487
|
+
Content-Length:
|
488
|
+
- '1065'
|
489
|
+
Connection:
|
490
|
+
- keep-alive
|
491
|
+
Status:
|
492
|
+
- 200 OK
|
493
|
+
X-Frame-Options:
|
494
|
+
- SAMEORIGIN
|
495
|
+
X-Xss-Protection:
|
496
|
+
- 1; mode=block
|
497
|
+
X-Content-Type-Options:
|
498
|
+
- nosniff
|
499
|
+
X-Oauth-Scopes:
|
500
|
+
- infrastructure, orbit
|
501
|
+
Etag:
|
502
|
+
- W/"a11c208ddbeb713fe7b97d6626dd3edc"
|
503
|
+
Cache-Control:
|
504
|
+
- max-age=0, private, must-revalidate
|
505
|
+
X-Request-Id:
|
506
|
+
- f5c5cc76-63ff-4667-808f-aacc506befc7
|
507
|
+
X-Runtime:
|
508
|
+
- '0.046715'
|
509
|
+
Vary:
|
510
|
+
- Origin
|
511
|
+
body:
|
512
|
+
encoding: ASCII-8BIT
|
513
|
+
string: '{"id":"dbs-au9p6","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-au9p6","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["grp-12345"],"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-17T14:01:30Z","updated_at":"2022-06-17T14:01:32Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
514
|
+
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
|
515
|
+
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"}}'
|
516
|
+
http_version:
|
517
|
+
recorded_at: Fri, 17 Jun 2022 14:01:34 GMT
|
518
|
+
- request:
|
519
|
+
method: delete
|
520
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-au9p6?account_id=acc-12345
|
521
|
+
body:
|
522
|
+
encoding: US-ASCII
|
523
|
+
string: ''
|
524
|
+
headers:
|
525
|
+
User-Agent:
|
526
|
+
- fog-core/1.45.0
|
527
|
+
Proxy-Connection:
|
528
|
+
- Keep-Alive
|
529
|
+
Authorization:
|
530
|
+
- Bearer a0d19b44a714561825e03cb0337c56f7cd2a6149
|
531
|
+
Content-Type:
|
532
|
+
- application/json
|
533
|
+
response:
|
534
|
+
status:
|
535
|
+
code: 202
|
536
|
+
message: Accepted
|
537
|
+
headers:
|
538
|
+
Server:
|
539
|
+
- nginx/1.18.0
|
540
|
+
Date:
|
541
|
+
- Fri, 17 Jun 2022 14:01:34 GMT
|
542
|
+
Content-Type:
|
543
|
+
- application/json; charset=utf-8
|
73
544
|
Content-Length:
|
74
|
-
- '
|
75
|
-
|
76
|
-
-
|
545
|
+
- '1067'
|
546
|
+
Connection:
|
547
|
+
- keep-alive
|
548
|
+
Status:
|
549
|
+
- 202 Accepted
|
550
|
+
X-Frame-Options:
|
551
|
+
- SAMEORIGIN
|
552
|
+
X-Xss-Protection:
|
553
|
+
- 1; mode=block
|
554
|
+
X-Content-Type-Options:
|
555
|
+
- nosniff
|
556
|
+
X-Oauth-Scopes:
|
557
|
+
- infrastructure, orbit
|
558
|
+
Cache-Control:
|
559
|
+
- no-cache
|
77
560
|
X-Request-Id:
|
78
|
-
-
|
561
|
+
- e20bbb9e-64cf-486d-8633-cf10b8d593a3
|
79
562
|
X-Runtime:
|
80
|
-
- '0.
|
563
|
+
- '0.140721'
|
564
|
+
Vary:
|
565
|
+
- Origin
|
566
|
+
body:
|
567
|
+
encoding: ASCII-8BIT
|
568
|
+
string: '{"id":"dbs-au9p6","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-au9p6","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["grp-12345"],"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-17T14:01:30Z","updated_at":"2022-06-17T14:01:34Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
569
|
+
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
|
570
|
+
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"}}'
|
571
|
+
http_version:
|
572
|
+
recorded_at: Fri, 17 Jun 2022 14:01:34 GMT
|
573
|
+
- request:
|
574
|
+
method: post
|
575
|
+
uri: http://api.brightbox.localhost/token
|
576
|
+
body:
|
577
|
+
encoding: UTF-8
|
578
|
+
string: '{"grant_type":"client_credentials"}'
|
579
|
+
headers:
|
580
|
+
User-Agent:
|
581
|
+
- fog-core/1.45.0
|
582
|
+
Proxy-Connection:
|
583
|
+
- Keep-Alive
|
584
|
+
Authorization:
|
585
|
+
- Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ==
|
586
|
+
Content-Type:
|
587
|
+
- application/json
|
588
|
+
response:
|
589
|
+
status:
|
590
|
+
code: 200
|
591
|
+
message: OK
|
592
|
+
headers:
|
81
593
|
Server:
|
82
|
-
-
|
594
|
+
- nginx/1.18.0
|
83
595
|
Date:
|
84
|
-
-
|
596
|
+
- Fri, 17 Jun 2022 14:03:13 GMT
|
597
|
+
Content-Type:
|
598
|
+
- application/json
|
599
|
+
Content-Length:
|
600
|
+
- '131'
|
85
601
|
Connection:
|
86
|
-
-
|
602
|
+
- keep-alive
|
603
|
+
Status:
|
604
|
+
- 200 OK
|
605
|
+
Cache-Control:
|
606
|
+
- no-store
|
607
|
+
X-Oauth-Scopes:
|
608
|
+
- infrastructure, orbit
|
609
|
+
X-Content-Type-Options:
|
610
|
+
- nosniff
|
611
|
+
Etag:
|
612
|
+
- W/"0ece98b4de1cdaacc30f35e7015ee206"
|
613
|
+
X-Request-Id:
|
614
|
+
- da171e4d-2f98-4f66-981f-fc7ed1150938
|
615
|
+
X-Runtime:
|
616
|
+
- '0.090067'
|
617
|
+
body:
|
618
|
+
encoding: ASCII-8BIT
|
619
|
+
string: '{"access_token":"f71229779b71874a8b9823707413a806de616ee2","token_type":"Bearer","scope":"infrastructure,
|
620
|
+
orbit","expires_in":7199}'
|
621
|
+
http_version:
|
622
|
+
recorded_at: Fri, 17 Jun 2022 14:03:13 GMT
|
623
|
+
- request:
|
624
|
+
method: post
|
625
|
+
uri: http://api.brightbox.localhost/1.0/servers?account_id=acc-12345
|
87
626
|
body:
|
88
627
|
encoding: UTF-8
|
89
|
-
string:
|
90
|
-
|
628
|
+
string: '{"server_type":"2gb.nbs","image":"img-linux"}'
|
629
|
+
headers:
|
630
|
+
User-Agent:
|
631
|
+
- fog-core/1.45.0
|
632
|
+
Proxy-Connection:
|
633
|
+
- Keep-Alive
|
634
|
+
Authorization:
|
635
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
636
|
+
Content-Type:
|
637
|
+
- application/json
|
638
|
+
response:
|
639
|
+
status:
|
640
|
+
code: 202
|
641
|
+
message: Accepted
|
642
|
+
headers:
|
643
|
+
Server:
|
644
|
+
- nginx/1.18.0
|
645
|
+
Date:
|
646
|
+
- Fri, 17 Jun 2022 14:03:13 GMT
|
647
|
+
Content-Type:
|
648
|
+
- application/json; charset=utf-8
|
649
|
+
Content-Length:
|
650
|
+
- '2533'
|
651
|
+
Connection:
|
652
|
+
- keep-alive
|
653
|
+
Status:
|
654
|
+
- 202 Accepted
|
655
|
+
X-Frame-Options:
|
656
|
+
- SAMEORIGIN
|
657
|
+
X-Xss-Protection:
|
658
|
+
- 1; mode=block
|
659
|
+
X-Content-Type-Options:
|
660
|
+
- nosniff
|
661
|
+
X-Oauth-Scopes:
|
662
|
+
- infrastructure, orbit
|
663
|
+
Location:
|
664
|
+
- http://api.brightbox.localhost/1.0/servers/srv-hktd0
|
665
|
+
Cache-Control:
|
666
|
+
- no-cache
|
667
|
+
X-Request-Id:
|
668
|
+
- f78ed0af-8ded-4e14-a0b3-ca05426db05a
|
669
|
+
X-Runtime:
|
670
|
+
- '0.283298'
|
671
|
+
Vary:
|
672
|
+
- Origin
|
673
|
+
body:
|
674
|
+
encoding: ASCII-8BIT
|
675
|
+
string: '{"id":"srv-hktd0","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-hktd0","name":"","status":"creating","locked":false,"hostname":"srv-hktd0","created_at":"2022-06-17T14:03:13.811Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-hktd0.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
676
|
+
test account","status":"active"},"image":{"id":"img-linux","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-linux","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-systm"},"server_type":{"id":"typ-mq9s8","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-mq9s8","name":"2GB
|
677
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-i1yjt","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-i1yjt","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-fdkzj","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-fdkzj","mac_address":"02:24:19:11:18:16","ipv4_address":"10.17.24.22","ipv6_address":"2a02:1348:1dd:4605:24:19ff:fe11:1816"}],"snapshots":[],"server_groups":[{"id":"grp-wla7a","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-wla7a","name":"default","description":"All
|
678
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-wla7a.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-ll1s3","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-ll1s3","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-ll1s3","size":40960,"source":"img-linux","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:03:13Z","updated_at":"2022-06-17T14:03:13Z","deleted_at":null}]}'
|
679
|
+
http_version:
|
680
|
+
recorded_at: Fri, 17 Jun 2022 14:03:13 GMT
|
681
|
+
- request:
|
682
|
+
method: get
|
683
|
+
uri: http://api.brightbox.localhost/1.0/servers/srv-hktd0?account_id=acc-12345
|
684
|
+
body:
|
685
|
+
encoding: US-ASCII
|
686
|
+
string: ''
|
687
|
+
headers:
|
688
|
+
User-Agent:
|
689
|
+
- fog-core/1.45.0
|
690
|
+
Proxy-Connection:
|
691
|
+
- Keep-Alive
|
692
|
+
Authorization:
|
693
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
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 14:03:14 GMT
|
705
|
+
Content-Type:
|
706
|
+
- application/json; charset=utf-8
|
707
|
+
Content-Length:
|
708
|
+
- '2533'
|
709
|
+
Connection:
|
710
|
+
- keep-alive
|
711
|
+
Status:
|
712
|
+
- 200 OK
|
713
|
+
X-Frame-Options:
|
714
|
+
- SAMEORIGIN
|
715
|
+
X-Xss-Protection:
|
716
|
+
- 1; mode=block
|
717
|
+
X-Content-Type-Options:
|
718
|
+
- nosniff
|
719
|
+
X-Oauth-Scopes:
|
720
|
+
- infrastructure, orbit
|
721
|
+
Etag:
|
722
|
+
- W/"cd6920e924442c000342e39bcf39ee34"
|
723
|
+
Cache-Control:
|
724
|
+
- max-age=0, private, must-revalidate
|
725
|
+
X-Request-Id:
|
726
|
+
- 1b240b7c-4c0e-4abb-93ad-137865481c9a
|
727
|
+
X-Runtime:
|
728
|
+
- '0.055919'
|
729
|
+
Vary:
|
730
|
+
- Origin
|
731
|
+
body:
|
732
|
+
encoding: ASCII-8BIT
|
733
|
+
string: '{"id":"srv-hktd0","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-hktd0","name":"","status":"creating","locked":false,"hostname":"srv-hktd0","created_at":"2022-06-17T14:03:13.000Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-hktd0.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
734
|
+
test account","status":"active"},"image":{"id":"img-linux","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-linux","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-systm"},"server_type":{"id":"typ-mq9s8","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-mq9s8","name":"2GB
|
735
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-i1yjt","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-i1yjt","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-fdkzj","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-fdkzj","mac_address":"02:24:19:11:18:16","ipv4_address":"10.17.24.22","ipv6_address":"2a02:1348:1dd:4605:24:19ff:fe11:1816"}],"snapshots":[],"server_groups":[{"id":"grp-wla7a","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-wla7a","name":"default","description":"All
|
736
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-wla7a.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-ll1s3","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-ll1s3","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-ll1s3","size":40960,"source":"img-linux","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:03:13Z","updated_at":"2022-06-17T14:03:13Z","deleted_at":null}]}'
|
737
|
+
http_version:
|
738
|
+
recorded_at: Fri, 17 Jun 2022 14:03:14 GMT
|
739
|
+
- request:
|
740
|
+
method: get
|
741
|
+
uri: http://api.brightbox.localhost/1.0/servers/srv-hktd0?account_id=acc-12345
|
742
|
+
body:
|
743
|
+
encoding: US-ASCII
|
744
|
+
string: ''
|
745
|
+
headers:
|
746
|
+
User-Agent:
|
747
|
+
- fog-core/1.45.0
|
748
|
+
Proxy-Connection:
|
749
|
+
- Keep-Alive
|
750
|
+
Authorization:
|
751
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
752
|
+
Content-Type:
|
753
|
+
- application/json
|
754
|
+
response:
|
755
|
+
status:
|
756
|
+
code: 200
|
757
|
+
message: OK
|
758
|
+
headers:
|
759
|
+
Server:
|
760
|
+
- nginx/1.18.0
|
761
|
+
Date:
|
762
|
+
- Fri, 17 Jun 2022 14:03:15 GMT
|
763
|
+
Content-Type:
|
764
|
+
- application/json; charset=utf-8
|
765
|
+
Content-Length:
|
766
|
+
- '2553'
|
767
|
+
Connection:
|
768
|
+
- keep-alive
|
769
|
+
Status:
|
770
|
+
- 200 OK
|
771
|
+
X-Frame-Options:
|
772
|
+
- SAMEORIGIN
|
773
|
+
X-Xss-Protection:
|
774
|
+
- 1; mode=block
|
775
|
+
X-Content-Type-Options:
|
776
|
+
- nosniff
|
777
|
+
X-Oauth-Scopes:
|
778
|
+
- infrastructure, orbit
|
779
|
+
Etag:
|
780
|
+
- W/"b7d92b75d3297995558aba735407e781"
|
781
|
+
Cache-Control:
|
782
|
+
- max-age=0, private, must-revalidate
|
783
|
+
X-Request-Id:
|
784
|
+
- ba1057ec-4b36-4015-b648-dd2c71f4d73b
|
785
|
+
X-Runtime:
|
786
|
+
- '0.055384'
|
787
|
+
Vary:
|
788
|
+
- Origin
|
789
|
+
body:
|
790
|
+
encoding: ASCII-8BIT
|
791
|
+
string: '{"id":"srv-hktd0","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-hktd0","name":"","status":"active","locked":false,"hostname":"srv-hktd0","created_at":"2022-06-17T14:03:13.000Z","started_at":"2022-06-17T14:03:14.000Z","deleted_at":null,"user_data":null,"fqdn":"srv-hktd0.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
792
|
+
test account","status":"active"},"image":{"id":"img-linux","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-linux","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-systm"},"server_type":{"id":"typ-mq9s8","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-mq9s8","name":"2GB
|
793
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-i1yjt","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-i1yjt","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-fdkzj","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-fdkzj","mac_address":"02:24:19:11:18:16","ipv4_address":"10.17.24.22","ipv6_address":"2a02:1348:1dd:4605:24:19ff:fe11:1816"}],"snapshots":[],"server_groups":[{"id":"grp-wla7a","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-wla7a","name":"default","description":"All
|
794
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-wla7a.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-ll1s3","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-ll1s3","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-ll1s3","size":40960,"source":"img-linux","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:03:13Z","updated_at":"2022-06-17T14:03:13Z","deleted_at":null}]}'
|
795
|
+
http_version:
|
796
|
+
recorded_at: Fri, 17 Jun 2022 14:03:15 GMT
|
797
|
+
- request:
|
798
|
+
method: get
|
799
|
+
uri: http://api.brightbox.localhost/1.0/server_groups?account_id=acc-12345
|
800
|
+
body:
|
801
|
+
encoding: US-ASCII
|
802
|
+
string: ''
|
803
|
+
headers:
|
804
|
+
User-Agent:
|
805
|
+
- fog-core/1.45.0
|
806
|
+
Proxy-Connection:
|
807
|
+
- Keep-Alive
|
808
|
+
Authorization:
|
809
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
810
|
+
Content-Type:
|
811
|
+
- application/json
|
812
|
+
response:
|
813
|
+
status:
|
814
|
+
code: 200
|
815
|
+
message: OK
|
816
|
+
headers:
|
817
|
+
Server:
|
818
|
+
- nginx/1.18.0
|
819
|
+
Date:
|
820
|
+
- Fri, 17 Jun 2022 14:03:15 GMT
|
821
|
+
Content-Type:
|
822
|
+
- application/json; charset=utf-8
|
823
|
+
Content-Length:
|
824
|
+
- '4351'
|
825
|
+
Connection:
|
826
|
+
- keep-alive
|
827
|
+
Status:
|
828
|
+
- 200 OK
|
829
|
+
X-Frame-Options:
|
830
|
+
- SAMEORIGIN
|
831
|
+
X-Xss-Protection:
|
832
|
+
- 1; mode=block
|
833
|
+
X-Content-Type-Options:
|
834
|
+
- nosniff
|
835
|
+
X-Oauth-Scopes:
|
836
|
+
- infrastructure, orbit
|
837
|
+
Etag:
|
838
|
+
- W/"3633f0056afb7611ae934287e92722b5"
|
839
|
+
Cache-Control:
|
840
|
+
- max-age=0, private, must-revalidate
|
841
|
+
X-Request-Id:
|
842
|
+
- 3d634b04-43d9-4c02-ad97-85b3aa9e00e9
|
843
|
+
X-Runtime:
|
844
|
+
- '0.035070'
|
845
|
+
Vary:
|
846
|
+
- Origin
|
847
|
+
body:
|
848
|
+
encoding: ASCII-8BIT
|
849
|
+
string: '[{"id":"grp-wla7a","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-wla7a","name":"default","description":"All
|
850
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-wla7a.honcho.brightbox.localhost","account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
851
|
+
test account","status":"active"},"firewall_policy":{"id":"fwp-cqggo","resource_type":"firewall_policy","url":"https://api.brightbox.localhost/1.0/firewall_policies/fwp-cqggo","default":true,"name":"default","created_at":"2022-06-17T12:00:23.000Z","description":"Applied
|
852
|
+
to the default server group."},"servers":[{"id":"srv-nyta5","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-nyta5","name":"medium
|
853
|
+
servers","status":"active","locked":false,"hostname":"srv-nyta5","fqdn":"srv-nyta5.honcho.brightbox.localhost","created_at":"2022-06-17T13:38:15.000Z","started_at":"2022-06-17T13:38:16.000Z","deleted_at":null},{"id":"srv-9dur3","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-9dur3","name":"medium
|
854
|
+
servers","status":"active","locked":false,"hostname":"srv-9dur3","fqdn":"srv-9dur3.honcho.brightbox.localhost","created_at":"2022-06-17T13:39:03.000Z","started_at":"2022-06-17T13:39:04.000Z","deleted_at":null},{"id":"srv-1vyrl","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-1vyrl","name":"medium
|
855
|
+
servers","status":"active","locked":false,"hostname":"srv-1vyrl","fqdn":"srv-1vyrl.honcho.brightbox.localhost","created_at":"2022-06-17T13:39:24.000Z","started_at":"2022-06-17T13:39:25.000Z","deleted_at":null},{"id":"srv-oukzl","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-oukzl","name":"medium
|
856
|
+
servers","status":"active","locked":false,"hostname":"srv-oukzl","fqdn":"srv-oukzl.honcho.brightbox.localhost","created_at":"2022-06-17T13:40:45.000Z","started_at":"2022-06-17T13:40:46.000Z","deleted_at":null},{"id":"srv-hzpin","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-hzpin","name":"medium
|
857
|
+
servers","status":"active","locked":false,"hostname":"srv-hzpin","fqdn":"srv-hzpin.honcho.brightbox.localhost","created_at":"2022-06-17T13:40:47.000Z","started_at":"2022-06-17T13:40:48.000Z","deleted_at":null},{"id":"srv-v4a6h","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-v4a6h","name":"medium
|
858
|
+
servers","status":"active","locked":false,"hostname":"srv-v4a6h","fqdn":"srv-v4a6h.honcho.brightbox.localhost","created_at":"2022-06-17T13:41:46.000Z","started_at":"2022-06-17T13:41:47.000Z","deleted_at":null},{"id":"srv-vkb53","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-vkb53","name":"medium
|
859
|
+
servers","status":"active","locked":false,"hostname":"srv-vkb53","fqdn":"srv-vkb53.honcho.brightbox.localhost","created_at":"2022-06-17T13:41:53.000Z","started_at":"2022-06-17T13:41:54.000Z","deleted_at":null},{"id":"srv-qpgjr","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-qpgjr","name":"medium
|
860
|
+
servers","status":"active","locked":false,"hostname":"srv-qpgjr","fqdn":"srv-qpgjr.honcho.brightbox.localhost","created_at":"2022-06-17T13:42:10.000Z","started_at":"2022-06-17T13:42:11.000Z","deleted_at":null},{"id":"srv-vnti5","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-vnti5","name":"","status":"active","locked":false,"hostname":"srv-vnti5","fqdn":"srv-vnti5.honcho.brightbox.localhost","created_at":"2022-06-17T13:47:03.000Z","started_at":"2022-06-17T13:47:04.000Z","deleted_at":null},{"id":"srv-pnv1x","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-pnv1x","name":"","status":"active","locked":false,"hostname":"srv-pnv1x","fqdn":"srv-pnv1x.honcho.brightbox.localhost","created_at":"2022-06-17T13:55:46.000Z","started_at":"2022-06-17T13:55:47.000Z","deleted_at":null},{"id":"srv-hktd0","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-hktd0","name":"","status":"active","locked":false,"hostname":"srv-hktd0","fqdn":"srv-hktd0.honcho.brightbox.localhost","created_at":"2022-06-17T14:03:13.000Z","started_at":"2022-06-17T14:03:14.000Z","deleted_at":null}]}]'
|
861
|
+
http_version:
|
862
|
+
recorded_at: Fri, 17 Jun 2022 14:03:15 GMT
|
863
|
+
- request:
|
864
|
+
method: post
|
865
|
+
uri: http://api.brightbox.localhost/1.0/database_servers?account_id=acc-12345
|
866
|
+
body:
|
867
|
+
encoding: UTF-8
|
868
|
+
string: '{"name":null,"description":null,"allow_access":["srv-hktd0","grp-wla7a"],"maintenance_weekday":null,"maintenance_hour":null,"snapshots_schedule":null}'
|
869
|
+
headers:
|
870
|
+
User-Agent:
|
871
|
+
- fog-core/1.45.0
|
872
|
+
Proxy-Connection:
|
873
|
+
- Keep-Alive
|
874
|
+
Authorization:
|
875
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
876
|
+
Content-Type:
|
877
|
+
- application/json
|
878
|
+
response:
|
879
|
+
status:
|
880
|
+
code: 202
|
881
|
+
message: Accepted
|
882
|
+
headers:
|
883
|
+
Server:
|
884
|
+
- nginx/1.18.0
|
885
|
+
Date:
|
886
|
+
- Fri, 17 Jun 2022 14:03:15 GMT
|
887
|
+
Content-Type:
|
888
|
+
- application/json; charset=utf-8
|
889
|
+
Content-Length:
|
890
|
+
- '1093'
|
891
|
+
Connection:
|
892
|
+
- keep-alive
|
893
|
+
Status:
|
894
|
+
- 202 Accepted
|
895
|
+
X-Frame-Options:
|
896
|
+
- SAMEORIGIN
|
897
|
+
X-Xss-Protection:
|
898
|
+
- 1; mode=block
|
899
|
+
X-Content-Type-Options:
|
900
|
+
- nosniff
|
901
|
+
X-Oauth-Scopes:
|
902
|
+
- infrastructure, orbit
|
903
|
+
Location:
|
904
|
+
- http://api.brightbox.localhost/1.0/database_servers/dbs-jvdga
|
905
|
+
Cache-Control:
|
906
|
+
- no-cache
|
907
|
+
X-Request-Id:
|
908
|
+
- 81f99eb0-e1ec-4c6f-bf99-cde2e23a3d35
|
909
|
+
X-Runtime:
|
910
|
+
- '0.632855'
|
911
|
+
Vary:
|
912
|
+
- Origin
|
913
|
+
body:
|
914
|
+
encoding: ASCII-8BIT
|
915
|
+
string: '{"id":"dbs-jvdga","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-jvdga","name":"","description":"","admin_username":"admin","admin_password":"5k1bso4axg3z3w64","allow_access":["srv-hktd0","grp-wla7a"],"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-17T14:03:15Z","updated_at":"2022-06-17T14:03:15Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
916
|
+
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
|
917
|
+
DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-fiwa8","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-fiwa8","handle":"honcho-a"}}'
|
918
|
+
http_version:
|
919
|
+
recorded_at: Fri, 17 Jun 2022 14:03:15 GMT
|
920
|
+
- request:
|
921
|
+
method: delete
|
922
|
+
uri: http://api.brightbox.localhost/1.0/servers/srv-hktd0?account_id=acc-12345
|
923
|
+
body:
|
924
|
+
encoding: US-ASCII
|
925
|
+
string: ''
|
926
|
+
headers:
|
927
|
+
User-Agent:
|
928
|
+
- fog-core/1.45.0
|
929
|
+
Proxy-Connection:
|
930
|
+
- Keep-Alive
|
931
|
+
Authorization:
|
932
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
933
|
+
Content-Type:
|
934
|
+
- application/json
|
935
|
+
response:
|
936
|
+
status:
|
937
|
+
code: 202
|
938
|
+
message: Accepted
|
939
|
+
headers:
|
940
|
+
Server:
|
941
|
+
- nginx/1.18.0
|
942
|
+
Date:
|
943
|
+
- Fri, 17 Jun 2022 14:03:15 GMT
|
944
|
+
Content-Type:
|
945
|
+
- application/json; charset=utf-8
|
946
|
+
Content-Length:
|
947
|
+
- '2555'
|
948
|
+
Connection:
|
949
|
+
- keep-alive
|
950
|
+
Status:
|
951
|
+
- 202 Accepted
|
952
|
+
X-Frame-Options:
|
953
|
+
- SAMEORIGIN
|
954
|
+
X-Xss-Protection:
|
955
|
+
- 1; mode=block
|
956
|
+
X-Content-Type-Options:
|
957
|
+
- nosniff
|
958
|
+
X-Oauth-Scopes:
|
959
|
+
- infrastructure, orbit
|
960
|
+
Cache-Control:
|
961
|
+
- no-cache
|
962
|
+
X-Request-Id:
|
963
|
+
- e24b2c62-4748-4eed-87c9-92897fd6d5b5
|
964
|
+
X-Runtime:
|
965
|
+
- '0.147327'
|
966
|
+
Vary:
|
967
|
+
- Origin
|
968
|
+
body:
|
969
|
+
encoding: ASCII-8BIT
|
970
|
+
string: '{"id":"srv-hktd0","resource_type":"server","url":"https://api.brightbox.localhost/1.0/servers/srv-hktd0","name":"","status":"deleting","locked":false,"hostname":"srv-hktd0","created_at":"2022-06-17T14:03:13.000Z","started_at":"2022-06-17T14:03:14.000Z","deleted_at":null,"user_data":null,"fqdn":"srv-hktd0.honcho.brightbox.localhost","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"disk_encrypted":false,"snapshots_schedule":null,"snapshots_schedule_next_at":null,"snapshots_retention":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
971
|
+
test account","status":"active"},"image":{"id":"img-linux","resource_type":"image","url":"https://api.brightbox.localhost/1.0/images/img-linux","name":"ubuntu-xenial-16.04-amd64-server","username":null,"status":"available","locked":false,"description":"","source":"linux.img","source_trigger":"manual","arch":"x86_64","created_at":"2022-06-17T12:00:22.000Z","official":true,"public":true,"owner":"acc-systm"},"server_type":{"id":"typ-mq9s8","resource_type":"server_type","url":"https://api.brightbox.localhost/1.0/server_types/typ-mq9s8","name":"2GB
|
972
|
+
Block Storage","status":"available","cores":2,"ram":2048,"disk_size":0,"handle":"2gb.nbs","storage_type":"network"},"zone":{"id":"zon-i1yjt","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-i1yjt","handle":"honcho-b"},"cloud_ips":[],"interfaces":[{"id":"int-fdkzj","resource_type":"interface","url":"https://api.brightbox.localhost/1.0/interfaces/int-fdkzj","mac_address":"02:24:19:11:18:16","ipv4_address":"10.17.24.22","ipv6_address":"2a02:1348:1dd:4605:24:19ff:fe11:1816"}],"snapshots":[],"server_groups":[{"id":"grp-wla7a","resource_type":"server_group","url":"https://api.brightbox.localhost/1.0/server_groups/grp-wla7a","name":"default","description":"All
|
973
|
+
new servers are added to this group unless specified otherwise.","created_at":"2022-06-17T12:00:23.000Z","default":true,"fqdn":"grp-wla7a.honcho.brightbox.localhost"}],"volumes":[{"id":"vol-ll1s3","resource_type":"volume","url":"https://api.brightbox.localhost/1.0/volumes/vol-ll1s3","name":null,"description":null,"boot":true,"delete_with_server":true,"encrypted":false,"filesystem_label":null,"filesystem_type":null,"locked":false,"serial":"vol-ll1s3","size":40960,"source":"img-linux","source_type":"image","status":"attached","storage_type":"network","created_at":"2022-06-17T14:03:13Z","updated_at":"2022-06-17T14:03:13Z","deleted_at":null}]}'
|
974
|
+
http_version:
|
975
|
+
recorded_at: Fri, 17 Jun 2022 14:03:15 GMT
|
976
|
+
- request:
|
977
|
+
method: get
|
978
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-jvdga?account_id=acc-12345
|
979
|
+
body:
|
980
|
+
encoding: US-ASCII
|
981
|
+
string: ''
|
982
|
+
headers:
|
983
|
+
User-Agent:
|
984
|
+
- fog-core/1.45.0
|
985
|
+
Proxy-Connection:
|
986
|
+
- Keep-Alive
|
987
|
+
Authorization:
|
988
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
989
|
+
Content-Type:
|
990
|
+
- application/json
|
991
|
+
response:
|
992
|
+
status:
|
993
|
+
code: 200
|
994
|
+
message: OK
|
995
|
+
headers:
|
996
|
+
Server:
|
997
|
+
- nginx/1.18.0
|
998
|
+
Date:
|
999
|
+
- Fri, 17 Jun 2022 14:03:16 GMT
|
1000
|
+
Content-Type:
|
1001
|
+
- application/json; charset=utf-8
|
1002
|
+
Content-Length:
|
1003
|
+
- '1079'
|
1004
|
+
Connection:
|
1005
|
+
- keep-alive
|
1006
|
+
Status:
|
1007
|
+
- 200 OK
|
1008
|
+
X-Frame-Options:
|
1009
|
+
- SAMEORIGIN
|
1010
|
+
X-Xss-Protection:
|
1011
|
+
- 1; mode=block
|
1012
|
+
X-Content-Type-Options:
|
1013
|
+
- nosniff
|
1014
|
+
X-Oauth-Scopes:
|
1015
|
+
- infrastructure, orbit
|
1016
|
+
Etag:
|
1017
|
+
- W/"de19271cf6b51be2fa651b867fb2851a"
|
1018
|
+
Cache-Control:
|
1019
|
+
- max-age=0, private, must-revalidate
|
1020
|
+
X-Request-Id:
|
1021
|
+
- 36de02fc-825e-49e9-8838-e1418aa3a0a7
|
1022
|
+
X-Runtime:
|
1023
|
+
- '0.047551'
|
1024
|
+
Vary:
|
1025
|
+
- Origin
|
1026
|
+
body:
|
1027
|
+
encoding: ASCII-8BIT
|
1028
|
+
string: '{"id":"dbs-jvdga","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-jvdga","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["srv-hktd0","grp-wla7a"],"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-17T14:03:15Z","updated_at":"2022-06-17T14:03:15Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
1029
|
+
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
|
1030
|
+
DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-fiwa8","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-fiwa8","handle":"honcho-a"}}'
|
1031
|
+
http_version:
|
1032
|
+
recorded_at: Fri, 17 Jun 2022 14:03:16 GMT
|
1033
|
+
- request:
|
1034
|
+
method: get
|
1035
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-jvdga?account_id=acc-12345
|
1036
|
+
body:
|
1037
|
+
encoding: US-ASCII
|
1038
|
+
string: ''
|
1039
|
+
headers:
|
1040
|
+
User-Agent:
|
1041
|
+
- fog-core/1.45.0
|
1042
|
+
Proxy-Connection:
|
1043
|
+
- Keep-Alive
|
1044
|
+
Authorization:
|
1045
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
1046
|
+
Content-Type:
|
1047
|
+
- application/json
|
1048
|
+
response:
|
1049
|
+
status:
|
1050
|
+
code: 200
|
1051
|
+
message: OK
|
1052
|
+
headers:
|
1053
|
+
Server:
|
1054
|
+
- nginx/1.18.0
|
1055
|
+
Date:
|
1056
|
+
- Fri, 17 Jun 2022 14:03:16 GMT
|
1057
|
+
Content-Type:
|
1058
|
+
- application/json; charset=utf-8
|
1059
|
+
Content-Length:
|
1060
|
+
- '1079'
|
1061
|
+
Connection:
|
1062
|
+
- keep-alive
|
1063
|
+
Status:
|
1064
|
+
- 200 OK
|
1065
|
+
X-Frame-Options:
|
1066
|
+
- SAMEORIGIN
|
1067
|
+
X-Xss-Protection:
|
1068
|
+
- 1; mode=block
|
1069
|
+
X-Content-Type-Options:
|
1070
|
+
- nosniff
|
1071
|
+
X-Oauth-Scopes:
|
1072
|
+
- infrastructure, orbit
|
1073
|
+
Etag:
|
1074
|
+
- W/"de19271cf6b51be2fa651b867fb2851a"
|
1075
|
+
Cache-Control:
|
1076
|
+
- max-age=0, private, must-revalidate
|
1077
|
+
X-Request-Id:
|
1078
|
+
- fc8df828-e8e0-4998-9cfd-a4edb735c105
|
1079
|
+
X-Runtime:
|
1080
|
+
- '0.045839'
|
1081
|
+
Vary:
|
1082
|
+
- Origin
|
1083
|
+
body:
|
1084
|
+
encoding: ASCII-8BIT
|
1085
|
+
string: '{"id":"dbs-jvdga","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-jvdga","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["srv-hktd0","grp-wla7a"],"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-17T14:03:15Z","updated_at":"2022-06-17T14:03:15Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
1086
|
+
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
|
1087
|
+
DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-fiwa8","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-fiwa8","handle":"honcho-a"}}'
|
1088
|
+
http_version:
|
1089
|
+
recorded_at: Fri, 17 Jun 2022 14:03:16 GMT
|
1090
|
+
- request:
|
1091
|
+
method: get
|
1092
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-jvdga?account_id=acc-12345
|
1093
|
+
body:
|
1094
|
+
encoding: US-ASCII
|
1095
|
+
string: ''
|
1096
|
+
headers:
|
1097
|
+
User-Agent:
|
1098
|
+
- fog-core/1.45.0
|
1099
|
+
Proxy-Connection:
|
1100
|
+
- Keep-Alive
|
1101
|
+
Authorization:
|
1102
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
1103
|
+
Content-Type:
|
1104
|
+
- application/json
|
1105
|
+
response:
|
1106
|
+
status:
|
1107
|
+
code: 200
|
1108
|
+
message: OK
|
1109
|
+
headers:
|
1110
|
+
Server:
|
1111
|
+
- nginx/1.18.0
|
1112
|
+
Date:
|
1113
|
+
- Fri, 17 Jun 2022 14:03:17 GMT
|
1114
|
+
Content-Type:
|
1115
|
+
- application/json; charset=utf-8
|
1116
|
+
Content-Length:
|
1117
|
+
- '1079'
|
1118
|
+
Connection:
|
1119
|
+
- keep-alive
|
1120
|
+
Status:
|
1121
|
+
- 200 OK
|
1122
|
+
X-Frame-Options:
|
1123
|
+
- SAMEORIGIN
|
1124
|
+
X-Xss-Protection:
|
1125
|
+
- 1; mode=block
|
1126
|
+
X-Content-Type-Options:
|
1127
|
+
- nosniff
|
1128
|
+
X-Oauth-Scopes:
|
1129
|
+
- infrastructure, orbit
|
1130
|
+
Etag:
|
1131
|
+
- W/"de19271cf6b51be2fa651b867fb2851a"
|
1132
|
+
Cache-Control:
|
1133
|
+
- max-age=0, private, must-revalidate
|
1134
|
+
X-Request-Id:
|
1135
|
+
- 2efec224-75ac-4656-8fa5-07db3e7520db
|
1136
|
+
X-Runtime:
|
1137
|
+
- '0.045494'
|
1138
|
+
Vary:
|
1139
|
+
- Origin
|
1140
|
+
body:
|
1141
|
+
encoding: ASCII-8BIT
|
1142
|
+
string: '{"id":"dbs-jvdga","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-jvdga","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["srv-hktd0","grp-wla7a"],"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-17T14:03:15Z","updated_at":"2022-06-17T14:03:15Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
1143
|
+
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
|
1144
|
+
DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-fiwa8","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-fiwa8","handle":"honcho-a"}}'
|
1145
|
+
http_version:
|
1146
|
+
recorded_at: Fri, 17 Jun 2022 14:03:17 GMT
|
1147
|
+
- request:
|
1148
|
+
method: get
|
1149
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-jvdga?account_id=acc-12345
|
1150
|
+
body:
|
1151
|
+
encoding: US-ASCII
|
1152
|
+
string: ''
|
1153
|
+
headers:
|
1154
|
+
User-Agent:
|
1155
|
+
- fog-core/1.45.0
|
1156
|
+
Proxy-Connection:
|
1157
|
+
- Keep-Alive
|
1158
|
+
Authorization:
|
1159
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
1160
|
+
Content-Type:
|
1161
|
+
- application/json
|
1162
|
+
response:
|
1163
|
+
status:
|
1164
|
+
code: 200
|
1165
|
+
message: OK
|
1166
|
+
headers:
|
1167
|
+
Server:
|
1168
|
+
- nginx/1.18.0
|
1169
|
+
Date:
|
1170
|
+
- Fri, 17 Jun 2022 14:03:19 GMT
|
1171
|
+
Content-Type:
|
1172
|
+
- application/json; charset=utf-8
|
1173
|
+
Content-Length:
|
1174
|
+
- '1065'
|
1175
|
+
Connection:
|
1176
|
+
- keep-alive
|
1177
|
+
Status:
|
1178
|
+
- 200 OK
|
1179
|
+
X-Frame-Options:
|
1180
|
+
- SAMEORIGIN
|
1181
|
+
X-Xss-Protection:
|
1182
|
+
- 1; mode=block
|
1183
|
+
X-Content-Type-Options:
|
1184
|
+
- nosniff
|
1185
|
+
X-Oauth-Scopes:
|
1186
|
+
- infrastructure, orbit
|
1187
|
+
Etag:
|
1188
|
+
- W/"ab4782415cfecc0d3a925496946a5811"
|
1189
|
+
Cache-Control:
|
1190
|
+
- max-age=0, private, must-revalidate
|
1191
|
+
X-Request-Id:
|
1192
|
+
- f1679ea7-159c-425f-ad13-fe1cb15fd343
|
1193
|
+
X-Runtime:
|
1194
|
+
- '0.053736'
|
1195
|
+
Vary:
|
1196
|
+
- Origin
|
1197
|
+
body:
|
1198
|
+
encoding: ASCII-8BIT
|
1199
|
+
string: '{"id":"dbs-jvdga","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-jvdga","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["grp-wla7a"],"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-17T14:03:15Z","updated_at":"2022-06-17T14:03:17Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
1200
|
+
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
|
1201
|
+
DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-fiwa8","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-fiwa8","handle":"honcho-a"}}'
|
1202
|
+
http_version:
|
1203
|
+
recorded_at: Fri, 17 Jun 2022 14:03:19 GMT
|
1204
|
+
- request:
|
1205
|
+
method: delete
|
1206
|
+
uri: http://api.brightbox.localhost/1.0/database_servers/dbs-jvdga?account_id=acc-12345
|
1207
|
+
body:
|
1208
|
+
encoding: US-ASCII
|
1209
|
+
string: ''
|
1210
|
+
headers:
|
1211
|
+
User-Agent:
|
1212
|
+
- fog-core/1.45.0
|
1213
|
+
Proxy-Connection:
|
1214
|
+
- Keep-Alive
|
1215
|
+
Authorization:
|
1216
|
+
- Bearer f71229779b71874a8b9823707413a806de616ee2
|
1217
|
+
Content-Type:
|
1218
|
+
- application/json
|
1219
|
+
response:
|
1220
|
+
status:
|
1221
|
+
code: 202
|
1222
|
+
message: Accepted
|
1223
|
+
headers:
|
1224
|
+
Server:
|
1225
|
+
- nginx/1.18.0
|
1226
|
+
Date:
|
1227
|
+
- Fri, 17 Jun 2022 14:03:19 GMT
|
1228
|
+
Content-Type:
|
1229
|
+
- application/json; charset=utf-8
|
1230
|
+
Content-Length:
|
1231
|
+
- '1067'
|
1232
|
+
Connection:
|
1233
|
+
- keep-alive
|
1234
|
+
Status:
|
1235
|
+
- 202 Accepted
|
1236
|
+
X-Frame-Options:
|
1237
|
+
- SAMEORIGIN
|
1238
|
+
X-Xss-Protection:
|
1239
|
+
- 1; mode=block
|
1240
|
+
X-Content-Type-Options:
|
1241
|
+
- nosniff
|
1242
|
+
X-Oauth-Scopes:
|
1243
|
+
- infrastructure, orbit
|
1244
|
+
Cache-Control:
|
1245
|
+
- no-cache
|
1246
|
+
X-Request-Id:
|
1247
|
+
- e86bcfdc-e2a8-439e-b1ec-66f40753d1bc
|
1248
|
+
X-Runtime:
|
1249
|
+
- '0.143770'
|
1250
|
+
Vary:
|
1251
|
+
- Origin
|
1252
|
+
body:
|
1253
|
+
encoding: ASCII-8BIT
|
1254
|
+
string: '{"id":"dbs-jvdga","resource_type":"database_server","url":"https://api.brightbox.localhost/1.0/database_servers/dbs-jvdga","name":"","description":"","admin_username":"admin","admin_password":null,"allow_access":["grp-wla7a"],"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-17T14:03:15Z","updated_at":"2022-06-17T14:03:19Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.brightbox.localhost/1.0/accounts/acc-12345","name":"CLI
|
1255
|
+
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
|
1256
|
+
DBaaS","description":"","disk_size":20480,"ram":2048,"default":true},"cloud_ips":[],"zone":{"id":"zon-fiwa8","resource_type":"zone","url":"https://api.brightbox.localhost/1.0/zones/zon-fiwa8","handle":"honcho-a"}}'
|
91
1257
|
http_version:
|
92
|
-
recorded_at:
|
1258
|
+
recorded_at: Fri, 17 Jun 2022 14:03:19 GMT
|
93
1259
|
recorded_with: VCR 2.5.0
|