class Bmc::Sdk::GetServer

GetServer command will get server properties for a given server ID.

@see developers.phoenixnap.com/docs/bmc/1/routes/servers/%7Bserver_id%7D/get

Attributes

serverID[RW]

Public Class Methods

new(client, serverID) click to toggle source
# File lib/commands.rb, line 54
def initialize(client, serverID)
  @client = client
  @serverID = serverID
end

Public Instance Methods

execute() click to toggle source
# File lib/commands.rb, line 59
def execute
  return @client.get(
    "#{Entrypoint}servers/#{serverID}", 
    headers: {'Content-Type': 'application/json'})
end