Description of problem:
To get unregistered vms thorough REST api:
GET /api/storagedomain/{sd_id:'xxxx'}/vms;unregistered
in SDK this behaviour isn't supported
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
This happens because the "unregistered" parameter isn't included in the RSDL metadata for the storagedomains/{storagedomain:id}/vms collection.
Once this is fixed the SDKs will need to be regenerated.
After applying this patch and regenerating the Python SDK the following script should list the unregistered VMs:
import ovirtsdk.api
import ovirtsdk.xml
api = ovirtsdk.api.API(
url="https://ovirt.example.com/ovirt-engine/api",
username="admin@internal",
password="******",
ca_file="/etc/pki/ovirt-engine/ca.pem"
)
sd = api.storagedomains.get(name="mydata")
for vm in sd.vms.list(unregistered=True):
print(vm.get_name())
api.disconnect()
Description of problem: To get unregistered vms thorough REST api: GET /api/storagedomain/{sd_id:'xxxx'}/vms;unregistered in SDK this behaviour isn't supported Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: