class Bmc::Sdk::GetServers
GetServers
command will get server properties for all servers in an account.
@see developers.phoenixnap.com/docs/bmc/1/routes/servers/get
Public Class Methods
new(client)
click to toggle source
# File lib/commands.rb, line 72 def initialize(client) @client = client end
Public Instance Methods
execute()
click to toggle source
# File lib/commands.rb, line 76 def execute return @client.get( "#{Entrypoint}servers", headers: {'Content-Type': 'application/json'}) end