+++ This bug was initially created as a clone of Bug #1197656 +++ Description of problem: There is no way to Refresh host capabilities via Python-SDK The only way to Refresh host capabilities is via url ovirt-engine/api/hosts/<HOST_ID>;force Version-Release number of selected component (if applicable): rhevm-sdk-python-3.5.0.8-2.el6ev.noarch How reproducible: 100% Steps to Reproduce: API = API(url=URL, username=USERNAME, password=PASSWORD, insecure=True) HOST = API.hosts.get(HOSTS) Actual results: No Refresh host capabilities under HOST object Expected results: Should be Refresh host capabilities under HOST object --- Additional comment from Juan Hernández on 2015-03-02 05:56:27 EST --- This happens because currently the generator of the Python SDK ignores any parameter that is passed to the entity resource, it only takes into account the parameters passed to the collection resource.
The right way to solve this issue is to explicitly represent the "refresh host capabilities" action, instead of using the somewhat obscure (and unsupported by the Python SDK) "force" matrix parameter of the GET method. Once this is implemented in the engine the Python SDK will need to be regenerated.
Verified on rhevm-sdk-python.noarch 0:3.6.0.0-0.2.20150406git5290ed3.el7