How to revert VM to snapshot
-
Re: Automation script to revert and save snapshot
I have the same question.
I'm trying
curl -k -X POST -b 'authenticationToken=<my-token-from-user-authentication-tokens>' 'https://<xen-local>/rest/v0/vm-snapshot/<snapshot-id>/actions'
and i get
[]
How do i revert to the snapshot? -
Hi,
You should use the integrated Swagger doc. Directly from your browser, eg:
https://<xen-local>/rest/v0/docs/#/vmsYou will see in green all the actions possible. Revert isn't implemented yet in the REST API AFAIK.
-
Adding @lsouai-vates in the loop to check with the team to know when it's planned
-
Re: Automation script to revert and save snapshot
Thanks.
Can I be sure that all API capabilities are reflected in Swagger?
So far, I've only found one method: creating a scheduled job, which can be launched via the API.
curl -k -X POST -b 'authenticationToken=<my-token-from-user-authentication-tokens>' 'https://<xen-local>/rest/v0/schedules/<schedule-id>/actions/run'
But that's a bit of a complicated process. -
Swagger is auto generated from the API, so the doc cannot lag. That's the point of the Swagger doc/API.