lib/nexpose/device.rb
# Get a list of all assets currently associated with a group.
#
# @param [Fixnum] dev_id Unique identifier of a device (asset).
# @return [Array[Asset]] List of group assets.
#
Get a list of all assets currently associated with a group.
Get a list of all assets currently associated with a group .
def group_assets(group_id)
      payload = { 'sort' => 'assetName',
                  'table-id' => 'group-assets',
                  'groupID' => group_id }
      results = DataTable._get_json_table(self, '/data/asset/group', payload)
      results.map { |a| Asset.new(a) }
    end
def group_assets ( group_id ) payload = { 'sort' => 'assetName' , 'table-id' => 'group-assets' , 'groupID' => group_id } results = DataTable . _get_json_table ( self , '/data/asset/group' , payload ) results . map { | a | Asset . new ( a ) } end
Get a list of all assets currently associated with a group.
Get a list of all assets currently associated with a group .
] List of group assets.
] List of group assets .
Array[Asset
group_id
<not_specific>
<not_specific>
dev_id Unique identifier of a device (asset).
dev_id Unique identifier of a device ( asset ) .