class Bmc::Sdk::Reset
Reset
command will reset the configuration for a specific server.
@see developers.phoenixnap.com/docs/bmc/1/routes/servers/%7Bserver_id%7D/actions/reset/post
Attributes
server[RW]
Public Class Methods
new(client, server)
click to toggle source
server is a ProvisionedServer
# File lib/commands.rb, line 152 def initialize(client, server) @client = client @server = server end
Public Instance Methods
execute()
click to toggle source
# File lib/commands.rb, line 157 def execute return @client.post( "#{Entrypoint}servers/#{@server.id}/actions/reset", headers: {'Content-Type': 'application/json'}, body: @server.to_json) end