<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 27, 2018 at 3:04 AM, Geoff Sweet <span dir="ltr"><<a href="mailto:geoffrsweet@gmail.com" target="_blank">geoffrsweet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">OK, that's a great place for me to start. However the problem is that all my post-install tooling is now running on a VM that knows nothing about itself (having been installed via pxe and kickstart) like it's <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">{vm_id}. Can the API be used to query for a VM and it's attributes based on something like a MAC address or the IP itself?</span></div></blockquote><div><br></div><div>If you want its ID, you can get it via dmidecode:</div><div>dmidecode |grep UUID </div><div><br></div><div>Y.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="HOEnZb"><font color="#888888"><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">-Geoff</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 25, 2018 at 11:05 PM, Ondra Machacek <span dir="ltr"><<a href="mailto:omachace@redhat.com" target="_blank">omachace@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We don't have any such resource. We have those information in different<br>
places of the API. For example to find the information about devices of<br>
the VM, like network device information (IP address, MAC, etc), you can<br>
query:<br>
<br>
/ovirt-engine/api/vms/{vm_id}<wbr>/reporteddevices<br>
<br>
The FQDN is listed right in the basic information of the VM quering the<br>
VM itself:<br>
<br>
/ovirt-engine/api/vms/{vm_id}<br>
<br>
You can find all the information about specific attributes returned by<br>
the API here in the documentation:<br>
<br>
<a href="http://ovirt.github.io/ovirt-engine-api-model/4.2/#types/vm" rel="noreferrer" target="_blank">http://ovirt.github.io/ovirt-<wbr>engine-api-model/4.2/#types/vm</a><br>
<br>
On 02/25/2018 03:13 AM, Geoff Sweet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there an API endpoint that VM's can query to discover it's oVirt metadata? Something similar to AWS's <a href="http://169.254.169.254/latest/meta-data/" rel="noreferrer" target="_blank">http://169.254.169.254/latest/<wbr>meta-data/</a> <<a href="http://169.254.169.254/latest/meta-data/" rel="noreferrer" target="_blank">http://169.254.169.254/latest<wbr>/meta-data/</a>> query in EC2? I'm trying to stitch a lot of automation workflow together and so far I have had great luck with oVirt. But the next small hurdle is to figure out how all the post-install setup stuff can figure out who the VM is so it can the appropriate configurations.<br>
<br>
Thanks!<br>
-Geoff<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br>
</blockquote>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>