Class: OvirtSDK4::OpenstackImageService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ OpenStackImage
Returns the representation of the object managed by this service.
-
#import(opts = {}) ⇒ Object
Imports a virtual machine from a Glance image storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ OpenStackImage
Returns the representation of the object managed by this service.
16797 16798 16799 |
# File 'lib/ovirtsdk4/services.rb', line 16797 def get(opts = {}) internal_get(GET, opts) end |
#import(opts = {}) ⇒ Object
Imports a virtual machine from a Glance image storage domain.
For example, to import the image with identifier 456 from the
storage domain with identifier 123 send a request like this:
POST /ovirt-engine/api/openstackimageproviders/123/images/456/import HTTP/1.1
With a request body like this:
<action>
<storage_domain>
<name>images0</name>
</storage_domain>
<cluster>
<name>images0</name>
</cluster>
</action>
16859 16860 16861 |
# File 'lib/ovirtsdk4/services.rb', line 16859 def import(opts = {}) internal_action(:import, nil, IMPORT, opts) end |