Hi,

the following request should work, but I didn't test it.


POST /ovirt-engine/api/hosts
<host>
    <name>myhost</name>
    <address>myhost.example.com</address>
    <ssh>
      <authentication_method>publickey</authentication_method>
    </ssh>
</host>


Here is the relevant API documentation:
http://ovirt.github.io/ovirt-engine-api-model/4.4/#types/ssh


Regards,
Andrej

On Fri, 23 Aug 2019 at 15:01, <schill-julian@gmx.de> wrote:
In the UI one can create hosts using two authentication methods: 'Password' and 'SSH Public Key'.
I have only found the Password authentication in the API Docs (/ovirt-engine/apidoc/#/services/hosts/methods/add).
My question is: How can i create hosts using SSH Public Key authentication via the REST API?
I would appreciate an example POST request!
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
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/users@ovirt.org/message/ACRORRHQRH54SJGN3QLEOKIYUMSZC2LQ/