lib/nexpose/tag.rb
# Lists all the tags on a site
#
# @param [Fixnum] site_id id of the site to get the applied tags
# @return [Array[TagSummary]] list of tags on site
#
Lists all the tags on a site
Lists all the tags on a site
def list_site_tags(site_id)
      tag_summary = []
      site_tag = JSON.parse(AJAX.get(self, "/api/2.0/sites/#{site_id}/tags"))
      site_tag['resources'].each do |json|
        tag_summary << TagSummary.parse(json)
      end
      tag_summary
    end
def list_site_tags ( site_id ) tag_summary = [ ] site_tag = JSON . parse ( AJAX . get ( self , "/api/2.0/sites/#{site_id}/tags" ) ) site_tag [ 'resources' ] . each do | json | tag_summary << TagSummary . parse ( json ) end tag_summary end
Lists all the tags on a site
Lists all the tags on a site
] list of tags on site
] list of tags on site
Array[TagSummary
site_id
<not_specific>
<not_specific>
site_id id of the site to get the applied tags
site_id id of the site to get the applied tags