class Tag

API 1.0

Public Class Methods

search_by_href(resource_href) click to toggle source
# File lib/rest_connection/rightscale/tag.rb, line 39
def self.search_by_href(resource_href)
    connection.get("tags/search", :resource_href => resource_href)
end
set(resource_href, tags) click to toggle source

TAGGABLE_RESOURCES = [ ‘Server’, ‘Ec2EbsSnapshot’, ‘Ec2EbsVolume’, ‘Ec2Image’, ‘Image’, ‘ServerArray’, ‘Ec2Instance’,

                       'Instance', 'Deployment', 'ServerTemplate', 'Ec2ServerTemplate' ]

Tag.set( resource_href, tags ) where tags is an array of tags to set on the resource.
# File lib/rest_connection/rightscale/tag.rb, line 46
def self.set(resource_href, tags)
  connection.put("tags/set", :resource_href => resource_href, :tags => tags)
end
unset(resource_href, tags) click to toggle source
# File lib/rest_connection/rightscale/tag.rb, line 50
def self.unset(resource_href, tags)
  connection.put("tags/unset", :resource_href => resource_href, :tags => tags)
end