2011-08-17 12:03:45 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Brightbox
|
|
|
|
class Real
|
2012-11-15 08:48:32 -05:00
|
|
|
# Remove a number of servers from the server group.
|
2011-08-17 12:03:45 -04:00
|
|
|
#
|
2012-11-15 08:48:32 -05:00
|
|
|
# @param [String] identifier Unique reference to identify the resource
|
|
|
|
# @param [Hash] options
|
|
|
|
# @option options [Array<Hash>] :servers Array of Hashes containing {"server" => server_id} for each server
|
2011-08-17 12:03:45 -04:00
|
|
|
#
|
2012-11-15 08:48:32 -05:00
|
|
|
# @return [Hash, nil] The JSON response parsed to a Hash or nil if no options passed
|
2011-08-17 12:03:45 -04:00
|
|
|
#
|
2012-11-15 08:48:32 -05:00
|
|
|
# @see https://api.gb1.brightbox.com/1.0/#server_group_remove_servers_server_group
|
2011-08-17 12:03:45 -04:00
|
|
|
#
|
2012-11-15 08:48:32 -05:00
|
|
|
# @example
|
|
|
|
# Compute[:brightbox].remove_servers_server_group "grp-12345", :servers => [{"server" => "srv-abcde"}, {"server" => "srv-fghij"}]
|
2011-08-17 12:03:45 -04:00
|
|
|
#
|
|
|
|
def remove_servers_server_group(identifier, options)
|
|
|
|
return nil if identifier.nil? || identifier == ""
|
|
|
|
request("post", "/1.0/server_groups/#{identifier}/remove_servers", [202], options)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|