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.
15732 15733 15734 |
# File 'lib/ovirtsdk4/services.rb', line 15732 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
With a request body like this:
<action>
<storage_domain>
<name>images0</name>
</storage_domain>
<cluster>
<name>images0</name>
</cluster>
</action>
15796 15797 15798 |
# File 'lib/ovirtsdk4/services.rb', line 15796 def import(opts = {}) internal_action(:import, nil, IMPORT, opts) end |