Upload .iso via API

user_0815

New Member
Jan 5, 2024
5
1
3
Hi,

I'm trying to upload an image via ProxmoxVE API but cannot find a way to pass the local path of the .iso file. After reading the documentation, I could not determine which argument is used for the local path. I would appreciate a little help.

Cheers
 
Hi,

In the CLI, you the command should be as the following:

Bash:
pvesh create /nodes/<Node>/storage/big/<TargetStorage> --content iso --filename proxmox-ve-8-1.iso --tmpfilename /var/tmp/pveupload-<123456>
 
Hi,

Thanks for the answer! I´m trying to upload an .iso image through curl POST. I tried to use tmpfilename to pass the path but it didn`t work. Maybe using pvesh works because the path of --tmpfilename is inside the proxmox host?

Cheers