lib/nexpose/engine.rb
# Retrieve a list of all Scan Engines managed by the Security Console.
#
# @return [Array[EngineSummary]] Array of EngineSummary objects associated
#   with each engine associated with this security console.
#
Retrieve a list of all Scan Engines managed by the Security Console.
Retrieve a list of all Scan Engines managed by the Security Console .
def list_engines
      response = execute(make_xml('EngineListingRequest'))
      arr = []
      if response.success
        response.res.elements.each('//EngineSummary') do |engine|
          arr << EngineSummary.new(engine.attributes['id'].to_i,
                                   engine.attributes['name'],
                                   engine.attributes['address'],
                                   engine.attributes['port'].to_i,
                                   engine.attributes['status'])
        end
      end
      arr
    end
def list_engines response = execute ( make_xml ( 'EngineListingRequest' ) ) arr = [ ] if response . success response . res . elements . each ( '//EngineSummary' ) do | engine | arr << EngineSummary . new ( engine . attributes [ 'id' ] . to_i , engine . attributes [ 'name' ] , engine . attributes [ 'address' ] , engine . attributes [ 'port' ] . to_i , engine . attributes [ 'status' ] ) end end arr end
Retrieve a list of all Scan Engines managed by the Security Console.
Retrieve a list of all Scan Engines managed by the Security Console .
] Array of EngineSummary objects associated with each engine associated with this security console.
] Array of EngineSummary objects associated with each engine associated with this security console .
Array[EngineSummary