Ondro/Ravi/Tal, could you please reply to below questions?On Tue, Jul 17, 2018 at 3:59 PM, Suchitra Herwadkar <Suchitra.Herwadkar@veritas.
Hello oVirt Development team
We had some more questions as we continue working on REST APIs. Kindly help us answer the same.
What is the expiry of generated access_token?
Description: We have observed that the output of “/ovirt-engine/sso/oauth/to
ken”contains a field “exp” which points to the date when the access_token is going to expire. In our case, we have seen this value to be 8 days later. However, the access_token gets expired within an hour. We would like to understand exactly what is the lifetime of this access_token? What we are seeing is something unexpected? Is this value configurable by users?
How to retrieve the ‘creation_status’ of the snapshot through REST API?
Description: We see there is a way to get it as part of query snapshot API viz /ovirt-engine/api/vms/<vm_id>/
snapshots/<snapshot_id> where the response contains detailed information of snapshot, along with the field "snapshot_status": "ok". Just wanted to check if there is another API explicitly devoted to getting the creation status so that we can poll it periodically to know the status?
At least in CURL, we see there is some URL to fetch the creation status like this /ovirt-engine/api/<vm_id>/snap
shots/<snapshot_id> /creation_status/<WHAT_IS_THIS _ID?>"
Q. How to call a DELETE snapshot API with ‘async’ operation as ‘false’?
Description: The documentation for DELETE snapshot API mentions that the DELETE operation can be invoked synchronously or asynchronously based on the value of the parameter ‘async’. I wanted to perform DELETE operation synchronously, so tried providing this parameter in the body as “<async>false<async>”, still it was doing the operation asynchronously. Please advise on the correct usage of it.______________________________
Hello oVirt Development team
We had a conversation with Pavan Chavva for supporting RHV. He had suggested to contact you with queries related to oVirt APIs we plan to use.
We have following queries:
1. While downloading a snapshot disk, can we identify allocated extents and download only those using oVirt API? We are able to download the disk using the Image Transfer API mechanism.
However, this method downloads the entire disk including the non-allocated extents, which is a performance overhead. If this functionality does not exist at this point will it be available in near future?
2. Is there an alternate method to transfer a snapshot to and from RHV storage? Are there other methods such as NFS share where we can download snapshot image to and from RHV storage?
_________________List Archives: https://lists.ovirt.org/archiv
Devel mailing list -- firstname.lastname@example.org
To unsubscribe send an email to email@example.com
Privacy Statement: https://www.ovirt.org/site/pri
oVirt Code of Conduct: https://www.ovirt.org/communit
y/about/community-guidelines/ firstname.lastname@example.org/messag e/QJUITZUJKWVG2Y2Y3GMBLXMTRVHT 33ZK/
Associate Manager, Software Engineering
Red Hat Czech s.r.o.