Class: OvirtSDK4::StorageServerConnectionExtensionService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ StorageConnectionExtension
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(extension, opts = {}) ⇒ StorageConnectionExtension
Update a storage server connection extension for the given host.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ StorageConnectionExtension
Returns the representation of the object managed by this service.
24981 24982 24983 |
# File 'lib/ovirtsdk4/services.rb', line 24981 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
25006 25007 25008 |
# File 'lib/ovirtsdk4/services.rb', line 25006 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
25064 25065 25066 25067 25068 25069 |
# File 'lib/ovirtsdk4/services.rb', line 25064 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(extension, opts = {}) ⇒ StorageConnectionExtension
Update a storage server connection extension for the given host.
To update the storage connection 456
of host 123
send a request like this:
PUT /ovirt-engine/api/hosts/123/storageconnectionextensions/456
With a request body like this:
<storage_connection_extension>
<target>iqn.2016-01.com.example:mytarget</target>
<username>myuser</username>
<password>mypassword</password>
</storage_connection_extension>
25053 25054 25055 |
# File 'lib/ovirtsdk4/services.rb', line 25053 def update(extension, opts = {}) internal_update(extension, StorageConnectionExtension, UPDATE, opts) end |