Sha256: 956cec2ab7634c660d565029d2d780f88f31fbd8e3428ce48a1da0a1743b00f4
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
module Fog module VcloudDirector class Compute class Real # Redirects to the URL of an entity with the given VCD ID. # # @param [String] id # @return [Excon:Response] # * body<~Hash>: # * :href<~String> - The URI of the entity. # * :type<~String> - The MIME type of the entity. # * :id<~String> - The entity identifier, expressed in URN format. # The value of this attribute uniquely identifies the entity, # persists for the life of the entity, and is never reused. # * :name<~String> - The name of the entity. # * :Link<~Array<Hash>]: # * :href<~String> - Contains the URI to the linked entity. # * :type<~String> - Contains the type of the linked entity. # * :rel<~String> - Defines the relationship of the link to the # object that contains it. # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/GET-Entity.html # @since vCloud API version 1.5 def get_entity(id) response = request( :expects => 200, :idempotent => true, :method => 'GET', :parser => Fog::ToHashDocument.new, :path => "entity/#{id}" ) ensure_list! response.body, :Link response end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-vcloud-director-0.3.1 | lib/fog/vcloud_director/requests/compute/get_entity.rb |
fog-vcloud-director-0.3.0 | lib/fog/vcloud_director/requests/compute/get_entity.rb |