1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[brightbox] Added new Server console activation request

This commit is contained in:
Paul Thornthwaite 2011-03-02 00:13:11 +08:00 committed by Wesley Beary
parent 9a755ee209
commit 5281109874
2 changed files with 21 additions and 0 deletions

View file

@ -26,6 +26,7 @@ module Fog
model :user
request_path 'fog/compute/requests/brightbox'
request :activate_console_server
request :add_listeners_load_balancer
request :add_nodes_load_balancer
request :create_api_client

View file

@ -0,0 +1,20 @@
module Fog
module Brightbox
class Compute
class Real
def activate_console_server(identifier, options = {})
return nil if identifier.nil? || identifier == ""
request(
:expects => [202],
:method => 'POST',
:path => "/1.0/servers/#{identifier}/activate_console",
:headers => {"Content-Type" => "application/json"},
:body => options.to_json
)
end
end
end
end
end