Class: OvirtSDK4::EventSubscriptionService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ EventSubscription
Gets the information about the event-subscription.
-
#remove(opts = {}) ⇒ Object
Removes the event-subscription from the system.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ EventSubscription
Gets the information about the event-subscription.
For example to retrieve the information about the subscription of user '123' to the event 'vm_console_detected':
GET /ovirt-engine/api/users/123/vm_console_detected
<event-subscription href="/ovirt-engine/api/users/123/event-subscriptions/vm_console_detected">
<event>vm_console_detected</event>
<notification_method>smtp</notification_method>
<user href="/ovirt-engine/api/users/123" id="123"/>
<address>[email protected]</address>
</event-subscription>
8749 8750 8751 |
# File 'lib/ovirtsdk4/services.rb', line 8749 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Removes the event-subscription from the system.
For example to remove user 123’s subscription to vm_console_detected
event:
DELETE /ovirt-engine/api/users/123/vm_console_detected
8780 8781 8782 |
# File 'lib/ovirtsdk4/services.rb', line 8780 def remove(opts = {}) internal_remove(REMOVE, opts) end |