lib/nexpose/tag.rb
# Lists all the tags on an asset_group
#
# @param [Fixnum] asset_group_id id of the group on which tags are listed
# @return [Array[TagSummary]] list of tags on asset group
#
Lists all the tags on an asset_group
Lists all the tags on an asset_group
def list_asset_group_tags(asset_group_id)
      tag_summary = []
      asset_group_tag = JSON.parse(AJAX.get(self, "/api/2.0/asset_groups/#{asset_group_id}/tags"))
      asset_group_tag['resources'].each do |json|
        tag_summary << TagSummary.parse(json)
      end
      tag_summary
    end
def list_asset_group_tags ( asset_group_id ) tag_summary = [ ] asset_group_tag = JSON . parse ( AJAX . get ( self , "/api/2.0/asset_groups/#{asset_group_id}/tags" ) ) asset_group_tag [ 'resources' ] . each do | json | tag_summary << TagSummary . parse ( json ) end tag_summary end
Lists all the tags on an asset_group
Lists all the tags on an asset_group
] list of tags on asset group
] list of tags on asset group
Array[TagSummary
asset_group_id
<not_specific>
<not_specific>
asset_group_id id of the group on which tags are listed
asset_group_id id of the group on which tags are listed