Fetch backup information
-
Hi all,
Is it possible to collect backup information from the restapi? this could be very usefull when you want to present backup information to end users from within our customer portal.
Robin
-
Question for @julien-f
-
You can get the backups from the logs:
/rest/v0/backup/logs?fields=tasks
-
@KPS thanks, this is indeed the logging but is it possible to fetch the current recoverypoints that are in the repository?
-
What do you mean by "fecthing recovery points" exactly?
-
@olivierlambert Sorry, we would like to show our customers the backups we have available for them, they need this for there iso purpose. So just a list we can show on a per vm basis.
-
@rtjdamen I'm doing something similar using the "xo-cli" utility on the XO server directly. I run this command remotely and it returns JSON array. Using this output I can identify which restore points exist for each VM
xo-cli backupNg.listVmBackups --json remotes="json:'[`"02fcd7e4-7172-46ec-a43f-2eb79fd00009`",`"f2c432dc-eddb-41bc-828f-67121529904c`"]'"Note that I am limiting the output to only show me backups that exist in specific "remotes" but you may not need to do this.
I am interested if there is a REST API call that produces the same output? @julien-f
-
@billcouper yes indeed i think that is what we need. Hope this can be added to the api.
-
@julien-f is it difficult to add to the REST API?
-
@billcouper This is indeed not available at this time.
Currently we have the following backup routes:
backup/jobs/:type: collections of backup jobs, grouped by type (metadata,mirror,vm)backup/logs: collections of backup run logs (for all types)
Any idea where we should put the collection of the VM backup files?
-
@julien-f maybe there can we some recoverypoint endpoint? or remotes?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login