Class FenceAgentsServiceImpl

    • Constructor Detail

      • FenceAgentsServiceImpl

        public FenceAgentsServiceImpl​(HttpConnection connection,
                                      String path)
    • Method Detail

      • add

        public FenceAgentsService.AddRequest add()
        Description copied from interface: FenceAgentsService
        Add a new fencing-agent to the host. [source] ---- POST /ovirt-engine/api/hosts/123/fenceagents You should consult the /usr/sbin/fence_ manual page for the legal parameters to [name1=value1, name2=value2,...] in the options field. If any parameter in options appears by name that means that it is mandatory. For example in slot=7[,name1=value1, name2=value2,...] slot is mandatory. ---- apc, bladecenter, wti fencing agent/s sample request: [source,xml] apc 1 192.168.1.101 user xxx 9 slot=7[,name1=value1, name2=value2,...] apc_snmp, hpblade, ilo, ilo2, ilo_ssh, redfish, rsa fencing agent/s sample request: [source,xml] apc_snmp 1 192.168.1.101 user xxx 9 [name1=value1, name2=value2,...] cisco_ucs, drac5, eps fencing agent/s sample request: [source,xml] cisco_ucs 1 192.168.1.101 user xxx slot=7[,name1=value1, name2=value2,...] drac7, ilo3, ilo4, ipmilan, rsb fencing agent/s sample request: [source,xml] drac7 1 192.168.1.101 user xxx [name1=value1, name2=value2,...]
        Specified by:
        add in interface FenceAgentsService
      • list

        public FenceAgentsService.ListRequest list()
        Description copied from interface: FenceAgentsService
        Returns the list of fencing agents configured for the host. [source] ---- GET /ovirt-engine/api/hosts/123/fenceagents ---- And here is sample response: [source,xml] ---- apc 1 192.168.1.101 user xxx 9 name1=value1, name2=value2 ---- The order of the returned list of fencing agents isn't guaranteed.
        Specified by:
        list in interface FenceAgentsService