Class: OvirtSDK4::FenceAgentService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Agent
Gets details of this fence agent.
-
#remove(opts = {}) ⇒ Object
Removes a fence agent for a specific host.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(agent, opts = {}) ⇒ Agent
Update a fencing-agent.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Agent
Gets details of this fence agent.
GET /ovirt-engine/api/hosts/123/fenceagents/0
And here is sample response:
<agent id="0">
<type>apc</type>
<order>1</order>
<ip>192.168.1.101</ip>
<user>user</user>
<password>xxx</password>
<port>9</port>
<options>name1=value1, name2=value2</options>
</agent>
10457 10458 10459 |
# File 'lib/ovirtsdk4/services.rb', line 10457 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Removes a fence agent for a specific host.
DELETE /ovirt-engine/api/hosts/123/fenceagents/0
10487 10488 10489 |
# File 'lib/ovirtsdk4/services.rb', line 10487 def remove(opts = {}) internal_remove(REMOVE, opts) end |