oVirt / python-ovirt-engine-sdk4

Python SDK for version 4 of the oVirt Engine API
Apache License 2.0
14 stars 24 forks source link

list_storage_domains: Show how to list storage domains #10

Closed nirs closed 2 years ago

nirs commented 3 years ago

Add example showing how to use storagedomains_service.list() with a search pattern.

This example may not be complete since I don't know where search patterns are documented; for example, do we support more meta characters except '*'?

Also I don't know where the possible search patterns for storage domains are documented; name= works, but type= does not.

Signed-off-by: Nir Soffer nsoffer@redhat.com

nirs commented 3 years ago

@vjuranek, @RomanBednar please review.

mwperina commented 3 years ago

Search engine documentation is a part of administration guide:

https://www.ovirt.org/documentation/administration_guide/index.html#chap-Searches

Storage domain searches are described in relevant chapter:

https://www.ovirt.org/documentation/administration_guide/index.html#Searching_for_storage

mwperina commented 3 years ago

@mnecas @oliel @emesika

nirs commented 3 years ago

Thanks @mwperina I'll add the link to storage search docs to the module docstring.