Thank you it works fine.
Now, an other question. I want to extract all vms which have the lease
optionnal attribute and display the name of the storage domain of that
lease.
I managed to get that dict:
"lease": {
"storage_domain": {
"href":
"/ovirt-engine/api/storagedomains/0dc2941a-bdc2-4ce4-8ad7-43fa9c944f88",
"id": "0dc2941a-bdc2-4ce4-8ad7-43fa9c944f88"
}
but how can I get the name of the storage instead of the id?
thank you for your help
Le 20/11/2018 à 11:19, Lucie Leistnerova a écrit :
Hello Nathanaël,
On 11/19/18 7:42 PM, Nathanaël Blanchet wrote:
I'd like to manipulate with ovirt_vm_fact ansible module some vm
attributes in the API lik_e _custom_compatibility_version.
<https://infra.v100.abes.fr/ovirt-engine/apidoc/#/types/vm_base/attributes/custom_compatibility_version>
Some of VM attributes are returned via API only when there are some
values saved. That are for example all custom items in System section.
Right from the APi description, it is available from the VmBase
struct, but I can't find it in the return ovirt_vm_facts value,
neither with nested attributes.
How should I do ?
Change the value to not null and then run ansible module to see them.
--
Nathanaël Blanchet
Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
[email protected]
_______________________________________________
Users mailing list [email protected]
To unsubscribe send an email [email protected]
Privacy Statement:https://www.ovirt.org/site/privacy-policy/
oVirt Code of
Conduct:https://www.ovirt.org/community/about/community-guidelines/
List
Archives:https://lists.ovirt.org/archives/list/[email protected]/message/I7VRJREC56DJWVCCFN33C5HQKGLRX7SS/
Best regards,
Lucie
--
Lucie Leistnerova
Quality Engineer, QE Cloud, RHVM
Red Hat EMEA
IRC: lleistne @ #rhev-qe
--
Nathanaël Blanchet
Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
[email protected]
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/6D5WC64B2UROITJA6EK7O67WMQYMSK6G/