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/token” 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>/snapshots/<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.
Thanks
Suchitra
From: Ranjit DSouza <Ranjit.DSouza(a)veritas.com>
Date: Tuesday, July 3, 2018 at 1:43 PM
To: "devel(a)ovirt.org" <devel(a)ovirt.org>
Cc: DL-VTAS-ENG-NBU-EverestFalcons <DL-VTAS-ENG-NBU-EverestFalcons(a)veritas.com>,
Sudhakar Paulzagade <Sudhakar.Paulzagade(a)veritas.com>, Pavan Chavva
<pchavva(a)redhat.com>, Navin Tah <Navin.Tah(a)veritas.com>
Subject: Image Transfer mechanism queries/API support
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?
Thanks
Ranjit
Team EverestFalcons