Open gthieleb opened 5 months ago
@gthieleb sorry for being late. There is no api key
. You simply must perform a login on the target device using basic auth. You get a SID back, which you must add as sid
query parameter to the URL on subsequent calls to the API.
The https://github.com/tmeckel/qnap-core-sdk-for-go repo contains the respective endpoints in the services/auth
package.
Hi, i stumbled above your repo as I am currently researching a possibility to update retrieve QVS internal state when creating directly VM using libvirt api (by using terraform). Currently I discovered that
qvs
is implemented using django (plainold version 2015) and python2. I am familar with python and django butqvs
only the bytecompiled version is released. So there will be a hard time to "demystify" the rest api and the database model. Can you give any hints on how to create a api key. My idea is too stick with terraform but put some additional api calls to "create" the VM in the scope of QVS. So I would like to leverage from your findings. Of course a terraform provider for QVS could be also an idea :-)