VM Templates and Clones via API

I

Igor_K

Guest
How can I perform Linked or Full clone via API ? Is it possible?
 
HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/clone
CLI:pvesh create /nodes/{node}/qemu/{vmid}/clone
 
Thank you!


A bit strange that this command is not present in this list:

> pve:/nodes/{MY_NODE}/qemu/{MY_VMID}> help
> help [path] [--verbose]
> cd [path]
> ls [path]
>
> delete /nodes/{node}/qemu/{vmid} [OPTIONS]
> get /nodes/{node}/qemu/{vmid}/config
> set /nodes/{node}/qemu/{vmid}/config [OPTIONS]
> create /nodes/{node}/qemu/{vmid}/migrate -target <string> [OPTIONS]
> create /nodes/{node}/qemu/{vmid}/monitor -command <string> [OPTIONS]
> set /nodes/{node}/qemu/{vmid}/resize -disk <string> -size <string> [OPTIONS]
> get /nodes/{node}/qemu/{vmid}/rrd -ds <string> -timeframe <string> [OPTIONS]
> get /nodes/{node}/qemu/{vmid}/rrddata -timeframe <string> [OPTIONS]
> create /nodes/{node}/qemu/{vmid}/snapshot -snapname <string> [OPTIONS]
> set /nodes/{node}/qemu/{vmid}/unlink -idlist <string> [OPTIONS]
> create /nodes/{node}/qemu/{vmid}/vncproxy

But:

> pve:/nodes/{MY_NODE}/qemu/{MY_VMID}> help clone
> help [path] [--verbose]
> cd [path]
> ls [path]
>
> create /nodes/{node}/qemu/{vmid}/clone -newid <integer> [OPTIONS]



Bug ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!