A server group is a collection of servers
Certain actions can accept a server group and affect all members
Adds specified servers to this server group
@param [Array] identifiers array of server identifier strings to add @return [Fog::Compute::ServerGroup]
# File lib/fog/brightbox/models/compute/server_group.rb, line 44 def add_servers identifiers requires :identity options = { :servers => server_references(identifiers) } data = service.add_servers_server_group identity, options merge_attributes data end
# File lib/fog/brightbox/models/compute/server_group.rb, line 81 def destroy requires :identity service.destroy_server_group(identity) true end
Moves specified servers from this server group to the specified destination server group
@param [Array] identifiers array of server identifier strings to move @param [String] destination_group_id destination server group identifier @return [Fog::Compute::ServerGroup]
# File lib/fog/brightbox/models/compute/server_group.rb, line 71 def move_servers identifiers, destination_group_id requires :identity options = { :servers => server_references(identifiers), :destination => destination_group_id } data = service.move_servers_server_group identity, options merge_attributes data end
Removes specified servers from this server group
@param [Array] identifiers array of server identifier strings to remove @return [Fog::Compute::ServerGroup]
# File lib/fog/brightbox/models/compute/server_group.rb, line 57 def remove_servers identifiers requires :identity options = { :servers => server_references(identifiers) } data = service.remove_servers_server_group identity, options merge_attributes data end
Generated with the Darkfish Rdoc Generator 2.