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, <[email protected]> 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 -- [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/ACRORRHQRH54SJGN3QLEOKIYUMSZC2LQ/
>
_______________________________________________
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/LR3MQS3K5YAERTYHHBHYOIQQ6NATKPTX/

Reply via email to