class Bmc::Sdk::DeleteServer
DeleteServer
command will deprovision specific server with the given server ID.
@see developers.phoenixnap.com/docs/bmc/1/routes/servers/%7Bserver_id%7D/delete
Attributes
serverID[RW]
Public Class Methods
new(client, serverID)
click to toggle source
# File lib/commands.rb, line 34 def initialize(client, serverID) @client = client @serverID = serverID end
Public Instance Methods
execute()
click to toggle source
# File lib/commands.rb, line 39 def execute return @client.delete( "#{Entrypoint}servers/#{serverID}", headers: {'Content-Type': 'application/json'}) end