brightbox-cli 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +18 -19
- data/bin/_brightbox-bash-completer +42 -0
- data/brightbox-cli.gemspec +5 -5
- data/lib/brightbox-cli/accounts.rb +1 -3
- data/lib/brightbox-cli/api.rb +27 -8
- data/lib/brightbox-cli/cloud_ips.rb +11 -15
- data/lib/brightbox-cli/collaborating_account.rb +23 -26
- data/lib/brightbox-cli/collaboration.rb +1 -1
- data/lib/brightbox-cli/commands/{accounts-accept-invite.rb → accounts/accept-invite.rb} +2 -3
- data/lib/brightbox-cli/commands/{accounts-default.rb → accounts/default.rb} +1 -3
- data/lib/brightbox-cli/commands/{accounts-list.rb → accounts/list.rb} +1 -1
- data/lib/brightbox-cli/commands/{accounts-remove.rb → accounts/remove.rb} +1 -2
- data/lib/brightbox-cli/commands/{accounts-reset-ftp-password.rb → accounts/reset-ftp-password.rb} +10 -5
- data/lib/brightbox-cli/commands/{accounts-show.rb → accounts/show.rb} +14 -6
- data/lib/brightbox-cli/commands/{cloudips-create.rb → cloudips/create.rb} +4 -4
- data/lib/brightbox-cli/commands/{cloudips-destroy.rb → cloudips/destroy.rb} +1 -1
- data/lib/brightbox-cli/commands/{cloudips-list.rb → cloudips/list.rb} +2 -10
- data/lib/brightbox-cli/commands/{cloudips-map.rb → cloudips/map.rb} +2 -8
- data/lib/brightbox-cli/commands/{cloudips-show.rb → cloudips/show.rb} +13 -3
- data/lib/brightbox-cli/commands/{cloudips-unmap.rb → cloudips/unmap.rb} +1 -1
- data/lib/brightbox-cli/commands/{cloudips-update.rb → cloudips/update.rb} +5 -6
- data/lib/brightbox-cli/commands/collaborations.rb +3 -9
- data/lib/brightbox-cli/commands/{config-client-add.rb → config/client-add.rb} +2 -2
- data/lib/brightbox-cli/commands/{config-client-default.rb → config/client-default.rb} +1 -1
- data/lib/brightbox-cli/commands/{config-client-list.rb → config/client-list.rb} +3 -3
- data/lib/brightbox-cli/commands/{config-client-remove.rb → config/client-remove.rb} +4 -1
- data/lib/brightbox-cli/commands/{config-user-add.rb → config/user-add.rb} +1 -1
- data/lib/brightbox-cli/commands/{firewall-policies-apply.rb → firewall/policies-apply.rb} +3 -4
- data/lib/brightbox-cli/commands/{firewall-policies-create.rb → firewall/policies-create.rb} +3 -4
- data/lib/brightbox-cli/commands/{firewall-policies-destroy.rb → firewall/policies-destroy.rb} +2 -3
- data/lib/brightbox-cli/commands/{firewall-policies-list.rb → firewall/policies-list.rb} +2 -9
- data/lib/brightbox-cli/commands/{firewall-policies-remove.rb → firewall/policies-remove.rb} +2 -3
- data/lib/brightbox-cli/commands/{firewall-policies-show.rb → firewall/policies-show.rb} +11 -3
- data/lib/brightbox-cli/commands/{firewall-policies-update.rb → firewall/policies-update.rb} +3 -3
- data/lib/brightbox-cli/commands/{firewall-rules-create.rb → firewall/rules-create.rb} +4 -4
- data/lib/brightbox-cli/commands/{firewall-rules-destroy.rb → firewall/rules-destroy.rb} +2 -4
- data/lib/brightbox-cli/commands/{firewall-rules-list.rb → firewall/rules-list.rb} +2 -2
- data/lib/brightbox-cli/commands/{firewall-rules-show.rb → firewall/rules-show.rb} +10 -4
- data/lib/brightbox-cli/commands/{firewall-rules-update.rb → firewall/rules-update.rb} +3 -3
- data/lib/brightbox-cli/commands/{groups-add-server.rb → groups/add-server.rb} +2 -2
- data/lib/brightbox-cli/commands/{groups-create.rb → groups/create.rb} +3 -3
- data/lib/brightbox-cli/commands/{groups-destroy.rb → groups/destroy.rb} +2 -2
- data/lib/brightbox-cli/commands/groups/list.rb +14 -0
- data/lib/brightbox-cli/commands/{groups-move_servers.rb → groups/move_servers.rb} +1 -2
- data/lib/brightbox-cli/commands/{groups-remove-servers.rb → groups/remove-servers.rb} +1 -1
- data/lib/brightbox-cli/commands/{groups-show.rb → groups/show.rb} +1 -1
- data/lib/brightbox-cli/commands/{groups-update.rb → groups/update.rb} +5 -10
- data/lib/brightbox-cli/commands/{images-destroy.rb → images/destroy.rb} +2 -2
- data/lib/brightbox-cli/commands/{images-list.rb → images/list.rb} +2 -10
- data/lib/brightbox-cli/commands/{images-register.rb → images/register.rb} +6 -6
- data/lib/brightbox-cli/commands/{images-show.rb → images/show.rb} +2 -11
- data/lib/brightbox-cli/commands/{images-update.rb → images/update.rb} +8 -8
- data/lib/brightbox-cli/commands/{lbs-add-nodes.rb → lbs/add-nodes.rb} +2 -2
- data/lib/brightbox-cli/commands/{lbs-create.rb → lbs/create.rb} +16 -10
- data/lib/brightbox-cli/commands/{lbs-destroy.rb → lbs/destroy.rb} +1 -1
- data/lib/brightbox-cli/commands/{lbs-list.rb → lbs/list.rb} +2 -10
- data/lib/brightbox-cli/commands/{lbs-remove-nodes.rb → lbs/remove-nodes.rb} +2 -2
- data/lib/brightbox-cli/commands/{lbs-show.rb → lbs/show.rb} +4 -7
- data/lib/brightbox-cli/commands/{lbs-update.rb → lbs/update.rb} +16 -10
- data/lib/brightbox-cli/commands/{servers-activate-console.rb → servers/activate-console.rb} +3 -3
- data/lib/brightbox-cli/commands/{servers-create.rb → servers/create.rb} +4 -4
- data/lib/brightbox-cli/commands/{servers-destroy.rb → servers/destroy.rb} +2 -2
- data/lib/brightbox-cli/commands/{servers-list.rb → servers/list.rb} +7 -8
- data/lib/brightbox-cli/commands/{servers-show.rb → servers/show.rb} +1 -6
- data/lib/brightbox-cli/commands/{servers-shutdown.rb → servers/shutdown.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-snapshot.rb → servers/snapshot.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-start.rb → servers/start.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-stop.rb → servers/stop.rb} +1 -1
- data/lib/brightbox-cli/commands/{servers-update.rb → servers/update.rb} +2 -2
- data/lib/brightbox-cli/commands/sql/instances_create.rb +66 -0
- data/lib/brightbox-cli/commands/sql/instances_destroy.rb +28 -0
- data/lib/brightbox-cli/commands/sql/instances_list.rb +27 -0
- data/lib/brightbox-cli/commands/sql/instances_reset_password.rb +33 -0
- data/lib/brightbox-cli/commands/sql/instances_show.rb +26 -0
- data/lib/brightbox-cli/commands/sql/instances_snapshot.rb +25 -0
- data/lib/brightbox-cli/commands/sql/instances_update.rb +45 -0
- data/lib/brightbox-cli/commands/sql/snapshots_destroy.rb +31 -0
- data/lib/brightbox-cli/commands/sql/snapshots_list.rb +25 -0
- data/lib/brightbox-cli/commands/sql/snapshots_show.rb +26 -0
- data/lib/brightbox-cli/commands/sql/snapshots_update.rb +37 -0
- data/lib/brightbox-cli/commands/sql/types.rb +53 -0
- data/lib/brightbox-cli/commands/types.rb +1 -1
- data/lib/brightbox-cli/commands/users/list.rb +17 -0
- data/lib/brightbox-cli/commands/{users-show.rb → users/show.rb} +5 -13
- data/lib/brightbox-cli/commands/{users-update.rb → users/update.rb} +3 -3
- data/lib/brightbox-cli/config.rb +4 -7
- data/lib/brightbox-cli/config/accounts.rb +3 -6
- data/lib/brightbox-cli/config/api_client.rb +12 -4
- data/lib/brightbox-cli/config/authentication_tokens.rb +8 -14
- data/lib/brightbox-cli/config/clients.rb +6 -7
- data/lib/brightbox-cli/config/section_name_deduplicator.rb +4 -5
- data/lib/brightbox-cli/config/sections.rb +7 -10
- data/lib/brightbox-cli/config/user_application.rb +15 -7
- data/lib/brightbox-cli/connection_manager.rb +1 -2
- data/lib/brightbox-cli/database_server.rb +100 -0
- data/lib/brightbox-cli/database_snapshot.rb +36 -0
- data/lib/brightbox-cli/database_type.rb +44 -0
- data/lib/brightbox-cli/detailed_server.rb +8 -7
- data/lib/brightbox-cli/error_parser.rb +8 -4
- data/lib/brightbox-cli/firewall_rule.rb +5 -5
- data/lib/brightbox-cli/firewall_rules.rb +2 -3
- data/lib/brightbox-cli/gli_global_hooks.rb +7 -7
- data/lib/brightbox-cli/images.rb +13 -14
- data/lib/brightbox-cli/legacy/args_adjuster.rb +5 -6
- data/lib/brightbox-cli/load_balancers.rb +10 -13
- data/lib/brightbox-cli/logging.rb +3 -3
- data/lib/brightbox-cli/nilable_hash.rb +1 -1
- data/lib/brightbox-cli/ruby_core_ext.rb +1 -2
- data/lib/brightbox-cli/server_groups.rb +5 -5
- data/lib/brightbox-cli/servers.rb +9 -9
- data/lib/brightbox-cli/tables.rb +24 -25
- data/lib/brightbox-cli/types.rb +6 -5
- data/lib/brightbox-cli/user_collaboration.rb +2 -3
- data/lib/brightbox-cli/users.rb +3 -3
- data/lib/brightbox-cli/version.rb +1 -1
- data/lib/brightbox_cli.rb +10 -2
- data/locales/en.yml +205 -0
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml +10 -10
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml +4 -4
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_a_collection_of_Accounts.yml +8 -8
- data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_resources_on_the_same_connection.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_changes_to_the_config_file.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_default_account.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_new_client_as_the_default.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +176 -176
- data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +176 -176
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_config_in_use_is_not_the_default/uses_correct_credentials.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_a_cached_refresh_token/caches_the_new_tokens.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_an_expired_refresh_token/caches_the_new_tokens.yml +4 -4
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/caches_the_new_tokens.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/prompts_user_to_retry_command.yml +2 -2
- data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_an_API_client_with_no_tokens/caches_a_new_access_token.yml +2 -2
- data/spec/cassettes/Brightbox_CloudIP/_find_all_/when_a_Cloud_IP_exists/returns_a_suitable.yml +28 -28
- data/spec/cassettes/Brightbox_FirewallPolicy/_apply_to/should_apply_firewall_policy.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallPolicy/_create/should_create_firewall_policy.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallPolicy/_destroy/should_destroy_firewall_policy.yml +28 -28
- data/spec/cassettes/Brightbox_FirewallPolicy/_find_all_/when_a_policy_exists/should_list_firewall_policy.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallPolicy/_find_or_call/when_a_policy_exists/should_show_firewall_policy.yml +20 -20
- data/spec/cassettes/Brightbox_FirewallRule/_create/when_policy_exists/creates_the_rule_successfully.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallRule/_destroy/when_rule_exists/destroys_a_rule.yml +20 -20
- data/spec/cassettes/Brightbox_FirewallRule/_find/when_rule_exists/can_display_the_result.yml +24 -24
- data/spec/cassettes/Brightbox_FirewallRule/_from_policy/when_policy_exists_with_a_rule/lists_all_rules.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_destroy/when_server_exists/should_work.yml +20 -20
- data/spec/cassettes/Brightbox_Server/_find_all_/when_a_server_exists/should_print_server_list.yml +28 -28
- data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_shutdown/should_work.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_start/should_work.yml +44 -44
- data/spec/cassettes/Brightbox_Server/_stop/should_work.yml +32 -32
- data/spec/cassettes/Brightbox_Server/_update/when_passing_new_group_membership/should_update_with_group.yml +40 -40
- data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml +24 -24
- data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +6 -6
- data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +18 -18
- data/spec/cassettes/brightbox_accounts/list/_when_both_tokens_expired_/does_not_report_invalid_token_errors.yml +18 -18
- data/spec/cassettes/brightbox_accounts/list/_when_invalid_tokens_/does_not_report_invalid_token_errors.yml +18 -18
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +16 -16
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/reports_they_were_updated.yml +14 -14
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml +14 -14
- data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml +12 -12
- data/spec/cassettes/brightbox_accounts/list/does_not_error.yml +6 -6
- data/spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml +542 -0
- data/spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml +317 -0
- data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +154 -154
- data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +154 -154
- data/spec/cassettes/brightbox_config/user_add/when_NO_config_file_on_disk/sets_up_the_config.yml +10 -10
- data/spec/cassettes/brightbox_config/user_add/when_a_default_client_is_already_set/does_not_change_the_default_client.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/display_an_warning_about_preselected_default.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/selects_the_active_account_for_the_default.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/display_an_warning_about_preselected_default.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_prompt_to_rerun_the_command.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/requests_access_tokens.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +10 -10
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_prompt_to_rerun_the_command.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/requests_access_tokens.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/sets_up_the_config.yml +6 -6
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml +4 -4
- data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml +4 -4
- data/spec/cassettes/brightbox_database-servers/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/--engine_mysql/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_password.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_username.yml +93 -0
- data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_active/correctly_sends_API_parameters.yml +181 -0
- data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml +91 -0
- data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml +93 -0
- data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml +93 -0
- data/spec/cassettes/brightbox_database-snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +93 -0
- data/spec/commands/accounts/list_spec.rb +1 -1
- data/spec/commands/cloudips/map_spec.rb +23 -4
- data/spec/commands/config/user_add_spec.rb +1 -1
- data/spec/commands/sql/instances/create_spec.rb +69 -0
- data/spec/commands/sql/instances/snapshot_spec.rb +36 -0
- data/spec/commands/sql/snapshots/list_spec.rb +29 -0
- data/spec/commands/sql/snapshots/show_spec.rb +29 -0
- data/spec/commands/sql/types/list_spec.rb +18 -0
- data/spec/spec_helper.rb +1 -3
- data/spec/support/vcr.rb +1 -1
- data/spec/unit/brightbox/api/conn_spec.rb +1 -1
- data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -1
- data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +1 -1
- data/spec/unit/brightbox/database_server_spec.rb +9 -0
- data/spec/unit/brightbox/database_snapshot_spec.rb +9 -0
- data/spec/unit/brightbox/database_type_spec.rb +9 -0
- data/spec/unit/brightbox/firewall_policy/create_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/create_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/find_spec.rb +1 -1
- data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +1 -1
- data/spec/unit/brightbox/server/destroy_spec.rb +1 -1
- data/spec/unit/brightbox/server/find_or_call_spec.rb +1 -1
- data/spec/unit/brightbox/server/shutdown_spec.rb +1 -1
- data/spec/unit/brightbox/server/start_spec.rb +1 -1
- data/spec/unit/brightbox/server/stop_spec.rb +1 -1
- data/spec/unit/brightbox/server/update_spec.rb +1 -1
- data/spec/unit/brightbox/server_group/find_spec.rb +1 -1
- data/spec/unit/brightbox/user_collaboration/get_for_account_spec.rb +3 -3
- metadata +160 -115
- data/lib/brightbox-cli/commands/groups-list.rb +0 -21
- data/lib/brightbox-cli/commands/users-list.rb +0 -25
@@ -16,7 +16,7 @@ http_interactions:
|
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 400
|
19
|
-
message:
|
19
|
+
message:
|
20
20
|
headers:
|
21
21
|
X-Frame-Options:
|
22
22
|
- sameorigin
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: UTF-8
|
43
43
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
44
44
|
client is not authorized to use the access grant type provided."}'
|
45
|
-
http_version:
|
45
|
+
http_version:
|
46
46
|
recorded_at: Wed, 18 Sep 2013 15:15:37 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
response:
|
61
61
|
status:
|
62
62
|
code: 401
|
63
|
-
message:
|
63
|
+
message:
|
64
64
|
headers:
|
65
65
|
WWW-Authenticate:
|
66
66
|
- OAuth error="invalid_token"
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
encoding: UTF-8
|
83
83
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
84
84
|
be found"}'
|
85
|
-
http_version:
|
85
|
+
http_version:
|
86
86
|
recorded_at: Wed, 18 Sep 2013 15:15:37 GMT
|
87
87
|
- request:
|
88
88
|
method: post
|
@@ -100,7 +100,7 @@ http_interactions:
|
|
100
100
|
response:
|
101
101
|
status:
|
102
102
|
code: 400
|
103
|
-
message:
|
103
|
+
message:
|
104
104
|
headers:
|
105
105
|
X-Frame-Options:
|
106
106
|
- sameorigin
|
@@ -126,7 +126,7 @@ http_interactions:
|
|
126
126
|
encoding: UTF-8
|
127
127
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
128
128
|
client is not authorized to use the access grant type provided."}'
|
129
|
-
http_version:
|
129
|
+
http_version:
|
130
130
|
recorded_at: Wed, 18 Sep 2013 15:15:37 GMT
|
131
131
|
- request:
|
132
132
|
method: get
|
@@ -144,7 +144,7 @@ http_interactions:
|
|
144
144
|
response:
|
145
145
|
status:
|
146
146
|
code: 401
|
147
|
-
message:
|
147
|
+
message:
|
148
148
|
headers:
|
149
149
|
WWW-Authenticate:
|
150
150
|
- OAuth error="invalid_token"
|
@@ -166,7 +166,7 @@ http_interactions:
|
|
166
166
|
encoding: UTF-8
|
167
167
|
string: '{"error":"invalid_token","error_description":"The OAuth token can not
|
168
168
|
be found"}'
|
169
|
-
http_version:
|
169
|
+
http_version:
|
170
170
|
recorded_at: Wed, 18 Sep 2013 15:15:37 GMT
|
171
171
|
- request:
|
172
172
|
method: post
|
@@ -184,7 +184,7 @@ http_interactions:
|
|
184
184
|
response:
|
185
185
|
status:
|
186
186
|
code: 401
|
187
|
-
message:
|
187
|
+
message:
|
188
188
|
headers:
|
189
189
|
X-Frame-Options:
|
190
190
|
- sameorigin
|
@@ -211,7 +211,7 @@ http_interactions:
|
|
211
211
|
body:
|
212
212
|
encoding: UTF-8
|
213
213
|
string: '{"error":"invalid_client"}'
|
214
|
-
http_version:
|
214
|
+
http_version:
|
215
215
|
recorded_at: Wed, 18 Sep 2013 15:15:37 GMT
|
216
216
|
- request:
|
217
217
|
method: post
|
@@ -229,7 +229,7 @@ http_interactions:
|
|
229
229
|
response:
|
230
230
|
status:
|
231
231
|
code: 200
|
232
|
-
message:
|
232
|
+
message:
|
233
233
|
headers:
|
234
234
|
X-Frame-Options:
|
235
235
|
- sameorigin
|
@@ -256,6 +256,6 @@ http_interactions:
|
|
256
256
|
body:
|
257
257
|
encoding: UTF-8
|
258
258
|
string: '{"access_token":"ded841d627fb785597659926c60cd551efcaa4c2","expires_in":7200}'
|
259
|
-
http_version:
|
259
|
+
http_version:
|
260
260
|
recorded_at: Wed, 18 Sep 2013 15:17:33 GMT
|
261
261
|
recorded_with: VCR 2.5.0
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
|
-
message:
|
19
|
+
message:
|
20
20
|
headers:
|
21
21
|
X-Frame-Options:
|
22
22
|
- sameorigin
|
@@ -43,7 +43,7 @@ http_interactions:
|
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"access_token":"2a0d890ccd27179107ddab3b979de30259afb794","expires_in":7200}'
|
46
|
-
http_version:
|
46
|
+
http_version:
|
47
47
|
recorded_at: Wed, 28 Aug 2013 12:04:58 GMT
|
48
48
|
- request:
|
49
49
|
method: get
|
@@ -61,7 +61,7 @@ http_interactions:
|
|
61
61
|
response:
|
62
62
|
status:
|
63
63
|
code: 200
|
64
|
-
message:
|
64
|
+
message:
|
65
65
|
headers:
|
66
66
|
Content-Type:
|
67
67
|
- application/json; charset=utf-8
|
@@ -88,7 +88,7 @@ http_interactions:
|
|
88
88
|
new servers are added to this group unless specified otherwise.","created_at":"2013-08-28T10:06:30Z","default":true},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-28T11:19:19Z","default":false}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-08-28T10:06:30Z","description":"Applied
|
89
89
|
to the default server group."},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-28T11:18:47Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-28T11:18:48Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-28T11:18:52Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-28T11:18:53Z","description":null}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Josie
|
90
90
|
Wunsch III","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
|
91
|
-
http_version:
|
91
|
+
http_version:
|
92
92
|
recorded_at: Wed, 28 Aug 2013 12:04:58 GMT
|
93
93
|
- request:
|
94
94
|
method: post
|
@@ -106,7 +106,7 @@ http_interactions:
|
|
106
106
|
response:
|
107
107
|
status:
|
108
108
|
code: 400
|
109
|
-
message:
|
109
|
+
message:
|
110
110
|
headers:
|
111
111
|
X-Frame-Options:
|
112
112
|
- sameorigin
|
@@ -132,6 +132,6 @@ http_interactions:
|
|
132
132
|
encoding: UTF-8
|
133
133
|
string: '{"error":"unauthorized_client","error_description":"The authenticated
|
134
134
|
client is not authorized to use the access grant type provided."}'
|
135
|
-
http_version:
|
135
|
+
http_version:
|
136
136
|
recorded_at: Wed, 18 Sep 2013 15:18:56 GMT
|
137
137
|
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,542 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.brightbox.dev/1.0/cloud_ips/cip-12345?account_id=acc-12345
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog/1.19.0
|
12
|
+
Authorization:
|
13
|
+
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- "\"1e6a05455b00a88433c6894c228f688f\""
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- a0f60beecf06a1ee260336d605e50610
|
31
|
+
X-Runtime:
|
32
|
+
- '0.071168'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
35
|
+
Date:
|
36
|
+
- Tue, 21 Jan 2014 15:59:06 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '495'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"235.239.47.173\",\"reverse_dns\":\"cip-12345-239-47-173.gb1.brightbox.com\",\"port_translators\":[],\"name\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
44
|
+
account\",\"status\":\"active\"},\"interface\":null,\"server\":null,\"load_balancer\":null,\"server_group\":null,\"database_server\":null}"
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 21 Jan 2014 15:59:06 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://api.brightbox.dev/1.0/servers/srv-12345?account_id=acc-12345
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- fog/1.19.0
|
56
|
+
Authorization:
|
57
|
+
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
58
|
+
Content-Type:
|
59
|
+
- application/json
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 200
|
63
|
+
message:
|
64
|
+
headers:
|
65
|
+
Content-Type:
|
66
|
+
- application/json; charset=utf-8
|
67
|
+
X-Ua-Compatible:
|
68
|
+
- IE=Edge
|
69
|
+
Etag:
|
70
|
+
- "\"2cc25d978cb5f374c80f6a4b2565d546\""
|
71
|
+
Cache-Control:
|
72
|
+
- max-age=0, private, must-revalidate
|
73
|
+
X-Request-Id:
|
74
|
+
- 7d361097cea33ac336834ca690b74805
|
75
|
+
X-Runtime:
|
76
|
+
- '0.217922'
|
77
|
+
Server:
|
78
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
79
|
+
Date:
|
80
|
+
- Tue, 21 Jan 2014 15:59:06 GMT
|
81
|
+
Content-Length:
|
82
|
+
- '1770'
|
83
|
+
Connection:
|
84
|
+
- Keep-Alive
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: "{\"id\":\"srv-12345\",\"resource_type\":\"server\",\"url\":\"https://api.gb1.brightbox.com/1.0/servers/srv-12345\",\"name\":\"\",\"status\":\"active\",\"hostname\":\"srv-12345\",\"created_at\":\"2014-01-21T15:57:07Z\",\"started_at\":null,\"deleted_at\":null,\"user_data\":null,\"fqdn\":\"srv-12345.gb1.brightbox.com\",\"compatibility_mode\":false,\"console_url\":null,\"console_token\":null,\"console_token_expires\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
88
|
+
account\",\"status\":\"active\"},\"image\":{\"id\":\"img-12345\",\"resource_type\":\"image\",\"url\":\"https://api.gb1.brightbox.com/1.0/images/img-12345\",\"name\":\"z88ecmsezfk40d2gcl41vr82\",\"username\":null,\"status\":\"available\",\"description\":\"\",\"source\":\"el7x3cb18pvwgamojk7x74gn\",\"arch\":\"x86_64\",\"created_at\":\"2014-01-21T15:57:07Z\",\"official\":false,\"public\":false,\"owner\":\"acc-12345\"},\"server_type\":{\"id\":\"typ-12345\",\"resource_type\":\"server_type\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_types/typ-12345\",\"name\":\"x84jk4y\",\"status\":\"available\",\"cores\":2,\"ram\":4096,\"disk_size\":10240,\"handle\":null},\"zone\":{\"id\":\"zon-12345\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1.brightbox.com/1.0/zones/zon-12345\",\"handle\":\"gb1-b\"},\"cloud_ips\":[],\"interfaces\":[{\"id\":\"int-12345\",\"resource_type\":\"interface\",\"url\":\"https://api.gb1.brightbox.com/1.0/interfaces/int-12345\",\"mac_address\":\"02:24:19:06:b0:12\",\"ipv4_address\":\"10.6.176.18\",\"ipv6_address\":\"2a02:1348:1aa:ac04:24:19ff:fe06:b012\"}],\"snapshots\":[],\"server_groups\":[{\"id\":\"grp-12345\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345\",\"name\":\"default\",\"description\":\"All
|
89
|
+
new servers are added to this group unless specified otherwise.\",\"created_at\":\"2014-01-21T15:57:06Z\",\"default\":true}]}"
|
90
|
+
http_version:
|
91
|
+
recorded_at: Tue, 21 Jan 2014 15:59:06 GMT
|
92
|
+
- request:
|
93
|
+
method: post
|
94
|
+
uri: http://api.brightbox.dev/1.0/cloud_ips/cip-12345/map?account_id=acc-12345
|
95
|
+
body:
|
96
|
+
encoding: UTF-8
|
97
|
+
string: "{\"destination\":\"int-12345\"}"
|
98
|
+
headers:
|
99
|
+
User-Agent:
|
100
|
+
- fog/1.19.0
|
101
|
+
Authorization:
|
102
|
+
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
103
|
+
Content-Type:
|
104
|
+
- application/json
|
105
|
+
response:
|
106
|
+
status:
|
107
|
+
code: 202
|
108
|
+
message:
|
109
|
+
headers:
|
110
|
+
Content-Type:
|
111
|
+
- application/json; charset=utf-8
|
112
|
+
X-Ua-Compatible:
|
113
|
+
- IE=Edge
|
114
|
+
Cache-Control:
|
115
|
+
- no-cache
|
116
|
+
X-Request-Id:
|
117
|
+
- 24e77bd587242e76cbb6abbedd7f5edc
|
118
|
+
X-Runtime:
|
119
|
+
- '0.350377'
|
120
|
+
Server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
122
|
+
Date:
|
123
|
+
- Tue, 21 Jan 2014 15:59:06 GMT
|
124
|
+
Content-Length:
|
125
|
+
- '495'
|
126
|
+
Connection:
|
127
|
+
- Keep-Alive
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: "{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"235.239.47.173\",\"reverse_dns\":\"cip-12345-239-47-173.gb1.brightbox.com\",\"port_translators\":[],\"name\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
131
|
+
account\",\"status\":\"active\"},\"interface\":null,\"server\":null,\"load_balancer\":null,\"server_group\":null,\"database_server\":null}"
|
132
|
+
http_version:
|
133
|
+
recorded_at: Tue, 21 Jan 2014 15:59:06 GMT
|
134
|
+
- request:
|
135
|
+
method: get
|
136
|
+
uri: http://api.brightbox.dev/1.0/cloud_ips/cip-12345?account_id=acc-12345
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ''
|
140
|
+
headers:
|
141
|
+
User-Agent:
|
142
|
+
- fog/1.19.0
|
143
|
+
Authorization:
|
144
|
+
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
response:
|
148
|
+
status:
|
149
|
+
code: 200
|
150
|
+
message:
|
151
|
+
headers:
|
152
|
+
Content-Type:
|
153
|
+
- application/json; charset=utf-8
|
154
|
+
X-Ua-Compatible:
|
155
|
+
- IE=Edge
|
156
|
+
Etag:
|
157
|
+
- "\"1e6a05455b00a88433c6894c228f688f\""
|
158
|
+
Cache-Control:
|
159
|
+
- max-age=0, private, must-revalidate
|
160
|
+
X-Request-Id:
|
161
|
+
- a0e747781e11ae804f2de59820318b9f
|
162
|
+
X-Runtime:
|
163
|
+
- '0.080318'
|
164
|
+
Server:
|
165
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
166
|
+
Date:
|
167
|
+
- Tue, 21 Jan 2014 15:59:07 GMT
|
168
|
+
Content-Length:
|
169
|
+
- '495'
|
170
|
+
Connection:
|
171
|
+
- Keep-Alive
|
172
|
+
body:
|
173
|
+
encoding: UTF-8
|
174
|
+
string: "{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"235.239.47.173\",\"reverse_dns\":\"cip-12345-239-47-173.gb1.brightbox.com\",\"port_translators\":[],\"name\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
175
|
+
account\",\"status\":\"active\"},\"interface\":null,\"server\":null,\"load_balancer\":null,\"server_group\":null,\"database_server\":null}"
|
176
|
+
http_version:
|
177
|
+
recorded_at: Tue, 21 Jan 2014 15:59:07 GMT
|
178
|
+
- request:
|
179
|
+
method: get
|
180
|
+
uri: http://api.brightbox.dev/1.0/cloud_ips/cip-12345?account_id=acc-12345
|
181
|
+
body:
|
182
|
+
encoding: US-ASCII
|
183
|
+
string: ''
|
184
|
+
headers:
|
185
|
+
User-Agent:
|
186
|
+
- fog/1.19.0
|
187
|
+
Authorization:
|
188
|
+
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
189
|
+
Content-Type:
|
190
|
+
- application/json
|
191
|
+
response:
|
192
|
+
status:
|
193
|
+
code: 200
|
194
|
+
message:
|
195
|
+
headers:
|
196
|
+
Content-Type:
|
197
|
+
- application/json; charset=utf-8
|
198
|
+
X-Ua-Compatible:
|
199
|
+
- IE=Edge
|
200
|
+
Etag:
|
201
|
+
- "\"1e6a05455b00a88433c6894c228f688f\""
|
202
|
+
Cache-Control:
|
203
|
+
- max-age=0, private, must-revalidate
|
204
|
+
X-Request-Id:
|
205
|
+
- a8b727fea95cfe8e830246881e41770f
|
206
|
+
X-Runtime:
|
207
|
+
- '0.075550'
|
208
|
+
Server:
|
209
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
210
|
+
Date:
|
211
|
+
- Tue, 21 Jan 2014 15:59:08 GMT
|
212
|
+
Content-Length:
|
213
|
+
- '495'
|
214
|
+
Connection:
|
215
|
+
- Keep-Alive
|
216
|
+
body:
|
217
|
+
encoding: UTF-8
|
218
|
+
string: "{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"235.239.47.173\",\"reverse_dns\":\"cip-12345-239-47-173.gb1.brightbox.com\",\"port_translators\":[],\"name\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
219
|
+
account\",\"status\":\"active\"},\"interface\":null,\"server\":null,\"load_balancer\":null,\"server_group\":null,\"database_server\":null}"
|
220
|
+
http_version:
|
221
|
+
recorded_at: Tue, 21 Jan 2014 15:59:08 GMT
|
222
|
+
- request:
|
223
|
+
method: get
|
224
|
+
uri: http://api.brightbox.dev/1.0/cloud_ips/cip-12345?account_id=acc-12345
|
225
|
+
body:
|
226
|
+
encoding: US-ASCII
|
227
|
+
string: ''
|
228
|
+
headers:
|
229
|
+
User-Agent:
|
230
|
+
- fog/1.19.0
|
231
|
+
Authorization:
|
232
|
+
- OAuth f83da712e6299cda953513ec07f7a754f747d727
|
233
|
+
Content-Type:
|
234
|
+
- application/json
|
235
|
+
response:
|
236
|
+
status:
|
237
|
+
code: 200
|
238
|
+
message:
|
239
|
+
headers:
|
240
|
+
Content-Type:
|
241
|
+
- application/json; charset=utf-8
|
242
|
+
X-Ua-Compatible:
|
243
|
+
- IE=Edge
|
244
|
+
Etag:
|
245
|
+
- "\"1e6a05455b00a88433c6894c228f688f\""
|
246
|
+
Cache-Control:
|
247
|
+
- max-age=0, private, must-revalidate
|
248
|
+
X-Request-Id:
|
249
|
+
- 3ec273b6a79cdc9dc89cd8442f0fd869
|
250
|
+
X-Runtime:
|
251
|
+
- '0.080101'
|
252
|
+
Server:
|
253
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
254
|
+
Date:
|
255
|
+
- Tue, 21 Jan 2014 15:59:09 GMT
|
256
|
+
Content-Length:
|
257
|
+
- '495'
|
258
|
+
Connection:
|
259
|
+
- Keep-Alive
|
260
|
+
body:
|
261
|
+
encoding: UTF-8
|
262
|
+
string: "{\"id\":\"cip-12345\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345\",\"status\":\"unmapped\",\"public_ip\":\"235.239.47.173\",\"reverse_dns\":\"cip-12345-239-47-173.gb1.brightbox.com\",\"port_translators\":[],\"name\":null,\"account\":{\"id\":\"acc-12345\",\"resource_type\":\"account\",\"url\":\"https://api.gb1.brightbox.com/1.0/accounts/acc-12345\",\"name\":\"VCR
|
263
|
+
account\",\"status\":\"active\"},\"interface\":null,\"server\":null,\"load_balancer\":null,\"server_group\":null,\"database_server\":null}"
|
264
|
+
http_version:
|
265
|
+
recorded_at: Tue, 21 Jan 2014 15:59:09 GMT
|
266
|
+
- request:
|
267
|
+
method: post
|
268
|
+
uri: http://api.brightbox.dev/token
|
269
|
+
body:
|
270
|
+
encoding: UTF-8
|
271
|
+
string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
|
272
|
+
headers:
|
273
|
+
User-Agent:
|
274
|
+
- fog/1.19.0
|
275
|
+
Authorization:
|
276
|
+
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
277
|
+
Content-Type:
|
278
|
+
- application/json
|
279
|
+
response:
|
280
|
+
status:
|
281
|
+
code: 400
|
282
|
+
message:
|
283
|
+
headers:
|
284
|
+
X-Frame-Options:
|
285
|
+
- sameorigin
|
286
|
+
X-Xss-Protection:
|
287
|
+
- 1; mode=block
|
288
|
+
Content-Type:
|
289
|
+
- application/json;charset=utf-8
|
290
|
+
Cache-Control:
|
291
|
+
- no-store
|
292
|
+
Content-Length:
|
293
|
+
- '135'
|
294
|
+
X-Ua-Compatible:
|
295
|
+
- IE=Edge
|
296
|
+
X-Request-Id:
|
297
|
+
- b2738ead693124fe12d099f3eb068bc9
|
298
|
+
X-Runtime:
|
299
|
+
- '0.117334'
|
300
|
+
Server:
|
301
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
302
|
+
Date:
|
303
|
+
- Tue, 18 Feb 2014 15:58:18 GMT
|
304
|
+
Connection:
|
305
|
+
- close
|
306
|
+
body:
|
307
|
+
encoding: UTF-8
|
308
|
+
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
309
|
+
client is not authorized to use the access grant type provided.\"}"
|
310
|
+
http_version:
|
311
|
+
recorded_at: Tue, 18 Feb 2014 15:58:18 GMT
|
312
|
+
- request:
|
313
|
+
method: post
|
314
|
+
uri: http://api.brightbox.dev/token
|
315
|
+
body:
|
316
|
+
encoding: UTF-8
|
317
|
+
string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
|
318
|
+
headers:
|
319
|
+
User-Agent:
|
320
|
+
- fog/1.19.0
|
321
|
+
Authorization:
|
322
|
+
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
323
|
+
Content-Type:
|
324
|
+
- application/json
|
325
|
+
response:
|
326
|
+
status:
|
327
|
+
code: 400
|
328
|
+
message:
|
329
|
+
headers:
|
330
|
+
X-Frame-Options:
|
331
|
+
- sameorigin
|
332
|
+
X-Xss-Protection:
|
333
|
+
- 1; mode=block
|
334
|
+
Content-Type:
|
335
|
+
- application/json;charset=utf-8
|
336
|
+
Cache-Control:
|
337
|
+
- no-store
|
338
|
+
Content-Length:
|
339
|
+
- '135'
|
340
|
+
X-Ua-Compatible:
|
341
|
+
- IE=Edge
|
342
|
+
X-Request-Id:
|
343
|
+
- 49e1585478dd13e26146501b730a6bf3
|
344
|
+
X-Runtime:
|
345
|
+
- '0.108686'
|
346
|
+
Server:
|
347
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
348
|
+
Date:
|
349
|
+
- Tue, 18 Feb 2014 15:58:18 GMT
|
350
|
+
Connection:
|
351
|
+
- close
|
352
|
+
body:
|
353
|
+
encoding: UTF-8
|
354
|
+
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
355
|
+
client is not authorized to use the access grant type provided.\"}"
|
356
|
+
http_version:
|
357
|
+
recorded_at: Tue, 18 Feb 2014 15:58:18 GMT
|
358
|
+
- request:
|
359
|
+
method: post
|
360
|
+
uri: http://api.brightbox.dev/token
|
361
|
+
body:
|
362
|
+
encoding: UTF-8
|
363
|
+
string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
|
364
|
+
headers:
|
365
|
+
User-Agent:
|
366
|
+
- fog/1.19.0
|
367
|
+
Authorization:
|
368
|
+
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
369
|
+
Content-Type:
|
370
|
+
- application/json
|
371
|
+
response:
|
372
|
+
status:
|
373
|
+
code: 400
|
374
|
+
message:
|
375
|
+
headers:
|
376
|
+
X-Frame-Options:
|
377
|
+
- sameorigin
|
378
|
+
X-Xss-Protection:
|
379
|
+
- 1; mode=block
|
380
|
+
Content-Type:
|
381
|
+
- application/json;charset=utf-8
|
382
|
+
Cache-Control:
|
383
|
+
- no-store
|
384
|
+
Content-Length:
|
385
|
+
- '135'
|
386
|
+
X-Ua-Compatible:
|
387
|
+
- IE=Edge
|
388
|
+
X-Request-Id:
|
389
|
+
- 3b105154cf904088dbeed787920395f5
|
390
|
+
X-Runtime:
|
391
|
+
- '0.106659'
|
392
|
+
Server:
|
393
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
394
|
+
Date:
|
395
|
+
- Tue, 18 Feb 2014 15:58:18 GMT
|
396
|
+
Connection:
|
397
|
+
- close
|
398
|
+
body:
|
399
|
+
encoding: UTF-8
|
400
|
+
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
401
|
+
client is not authorized to use the access grant type provided.\"}"
|
402
|
+
http_version:
|
403
|
+
recorded_at: Tue, 18 Feb 2014 15:58:18 GMT
|
404
|
+
- request:
|
405
|
+
method: post
|
406
|
+
uri: http://api.brightbox.dev/token
|
407
|
+
body:
|
408
|
+
encoding: UTF-8
|
409
|
+
string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
|
410
|
+
headers:
|
411
|
+
User-Agent:
|
412
|
+
- fog/1.19.0
|
413
|
+
Authorization:
|
414
|
+
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
415
|
+
Content-Type:
|
416
|
+
- application/json
|
417
|
+
response:
|
418
|
+
status:
|
419
|
+
code: 400
|
420
|
+
message:
|
421
|
+
headers:
|
422
|
+
X-Frame-Options:
|
423
|
+
- sameorigin
|
424
|
+
X-Xss-Protection:
|
425
|
+
- 1; mode=block
|
426
|
+
Content-Type:
|
427
|
+
- application/json;charset=utf-8
|
428
|
+
Cache-Control:
|
429
|
+
- no-store
|
430
|
+
Content-Length:
|
431
|
+
- '135'
|
432
|
+
X-Ua-Compatible:
|
433
|
+
- IE=Edge
|
434
|
+
X-Request-Id:
|
435
|
+
- 9a72075d0d915877584dd36a4eae80b2
|
436
|
+
X-Runtime:
|
437
|
+
- '0.106463'
|
438
|
+
Server:
|
439
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
440
|
+
Date:
|
441
|
+
- Tue, 18 Feb 2014 15:58:18 GMT
|
442
|
+
Connection:
|
443
|
+
- close
|
444
|
+
body:
|
445
|
+
encoding: UTF-8
|
446
|
+
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
447
|
+
client is not authorized to use the access grant type provided.\"}"
|
448
|
+
http_version:
|
449
|
+
recorded_at: Tue, 18 Feb 2014 15:58:18 GMT
|
450
|
+
- request:
|
451
|
+
method: post
|
452
|
+
uri: http://api.brightbox.dev/token
|
453
|
+
body:
|
454
|
+
encoding: UTF-8
|
455
|
+
string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
|
456
|
+
headers:
|
457
|
+
User-Agent:
|
458
|
+
- fog/1.19.0
|
459
|
+
Authorization:
|
460
|
+
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
461
|
+
Content-Type:
|
462
|
+
- application/json
|
463
|
+
response:
|
464
|
+
status:
|
465
|
+
code: 400
|
466
|
+
message:
|
467
|
+
headers:
|
468
|
+
X-Frame-Options:
|
469
|
+
- sameorigin
|
470
|
+
X-Xss-Protection:
|
471
|
+
- 1; mode=block
|
472
|
+
Content-Type:
|
473
|
+
- application/json;charset=utf-8
|
474
|
+
Cache-Control:
|
475
|
+
- no-store
|
476
|
+
Content-Length:
|
477
|
+
- '135'
|
478
|
+
X-Ua-Compatible:
|
479
|
+
- IE=Edge
|
480
|
+
X-Request-Id:
|
481
|
+
- c748092fa5b90d71b4f1a17d36ef24aa
|
482
|
+
X-Runtime:
|
483
|
+
- '0.110127'
|
484
|
+
Server:
|
485
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
486
|
+
Date:
|
487
|
+
- Tue, 18 Feb 2014 15:58:19 GMT
|
488
|
+
Connection:
|
489
|
+
- close
|
490
|
+
body:
|
491
|
+
encoding: UTF-8
|
492
|
+
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
493
|
+
client is not authorized to use the access grant type provided.\"}"
|
494
|
+
http_version:
|
495
|
+
recorded_at: Tue, 18 Feb 2014 15:58:19 GMT
|
496
|
+
- request:
|
497
|
+
method: post
|
498
|
+
uri: http://api.brightbox.dev/token
|
499
|
+
body:
|
500
|
+
encoding: UTF-8
|
501
|
+
string: "{\"grant_type\":\"none\",\"client_id\":\"app-12345\"}"
|
502
|
+
headers:
|
503
|
+
User-Agent:
|
504
|
+
- fog/1.19.0
|
505
|
+
Authorization:
|
506
|
+
- Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw==
|
507
|
+
Content-Type:
|
508
|
+
- application/json
|
509
|
+
response:
|
510
|
+
status:
|
511
|
+
code: 400
|
512
|
+
message:
|
513
|
+
headers:
|
514
|
+
X-Frame-Options:
|
515
|
+
- sameorigin
|
516
|
+
X-Xss-Protection:
|
517
|
+
- 1; mode=block
|
518
|
+
Content-Type:
|
519
|
+
- application/json;charset=utf-8
|
520
|
+
Cache-Control:
|
521
|
+
- no-store
|
522
|
+
Content-Length:
|
523
|
+
- '135'
|
524
|
+
X-Ua-Compatible:
|
525
|
+
- IE=Edge
|
526
|
+
X-Request-Id:
|
527
|
+
- 4bbeb8d27cd7e4ffa70f0cf26e170ea3
|
528
|
+
X-Runtime:
|
529
|
+
- '0.103273'
|
530
|
+
Server:
|
531
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-11-22)
|
532
|
+
Date:
|
533
|
+
- Tue, 18 Feb 2014 15:58:20 GMT
|
534
|
+
Connection:
|
535
|
+
- close
|
536
|
+
body:
|
537
|
+
encoding: UTF-8
|
538
|
+
string: "{\"error\":\"unauthorized_client\",\"error_description\":\"The authenticated
|
539
|
+
client is not authorized to use the access grant type provided.\"}"
|
540
|
+
http_version:
|
541
|
+
recorded_at: Tue, 18 Feb 2014 15:58:20 GMT
|
542
|
+
recorded_with: VCR 2.5.0
|