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:
parent
9a755ee209
commit
5281109874
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue