Class: Bmc::Sdk::GetServers

Inherits:
Object
  • Object
show all
Defined in:
lib/commands.rb

Overview

GetServers command will get server properties for all servers in an account.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ GetServers

Returns a new instance of GetServers.



72
73
74
# File 'lib/commands.rb', line 72

def initialize(client)
  @client = client
end

Instance Method Details

#executeObject



76
77
78
79
80
# File 'lib/commands.rb', line 76

def execute
  return @client.get(
    "#{Entrypoint}servers",
    headers: {'Content-Type': 'application/json'})
end