class Nessus6::Server
The Server
class returns information about the Nessus Server
itself localhost:8834/api#/resources/server
Public Class Methods
new(client)
click to toggle source
# File lib/Nessus6/server.rb, line 10 def initialize(client) @client = client end
Public Instance Methods
properties()
click to toggle source
Returns the Nessus server version and other properties.
@return [Hash]
# File lib/Nessus6/server.rb, line 17 def properties response = @client.get('server/properties') verify response, internal_server_error: 'Server failed to retrieve properties' end
status()
click to toggle source
Returns the Nessus server status.
@return [Hash]
# File lib/Nessus6/server.rb, line 26 def status response = @client.get('server/status') verify response, internal_server_error: 'Server failed to retrieve status' end