[ovirt-users] schedule a VM backup in ovirt 3.5
Maor Lipchuk
mlipchuk at redhat.com
Thu Oct 22 13:23:54 UTC 2015
Hi Indunil,
You can access the api as you mentioned before:
https://engine.example.com:[port]/ovirt-engine/api
if you having trouble to access it, I suggest you try to open your admin portal,
and once it is opened go to the URL and simply add "/api" at the end of the address, this will present you the output of ovirt-engine API.
To get the list of the VMs through the API just call:
https://engine.example.com:[port]/ovirt-engine/api/vms
then you should notive all the Ids of the VMs which you can use for backup.
I've attached an example of a print screen accessing to the API.
Regards,
Maor
----- Original Message -----
> From: "Indunil Jayasooriya" <indunil75 at gmail.com>
> To: users at ovirt.org
> Sent: Thursday, October 22, 2015 8:50:03 AM
> Subject: [ovirt-users] schedule a VM backup in ovirt 3.5
>
> Hi list,
>
> I want to schedule a VM backup in ovirt 3.5. I read below URL.
>
> http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups
>
> It gives an below example of VM backup
>
>
> Example for VM Backup
>
>
> * Use existing VM Snapshot/Create a vm snapshot (example):
> URL = SERVER:PORT/api/vms/VM_ID/snapshots
> Method = POST
> (with Content-Type:application/xml header)
> Body =
> <snapshot>
> <description>Virtual Machine 1 - Snapshot For Backup</description>
> </snapshot>
>
>
> But, How can I find the VM_ID of the VM that I want to backup?
>
> How can I write this below format?
> URL = SERVER:PORT/api/vms/VM_ID/snapshots
>
> MY Ovirt Engine manager is running on another PC. (let's say
> engine.example.com ) i can access it by typing https://engine.example.com/
>
> is it https://engine.example.com/api/vms/ VM_ID /snapshots ? I can't access
> it in firefox browser?
>
> Should I write a script? is there any Youtube video or doc that makes me to
> understand this?
>
> Hope to hear from you.
>
>
>
>
>
>
>
> --
> cat /etc/motd
>
> Thank you
> Indunil Jayasooriya
> http://www.theravadanet.net/
> http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2015-10-22 16-20-19.png
Type: image/png
Size: 438283 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151022/141ff88b/attachment-0001.png>
More information about the Users
mailing list