Hi everyone,
I'm testing Proxmox API to automate VM creation process by cloning existing template on Proxmox VE 5.0-23/af4267bf. The problem is when a new VM is cloned, I want to mount a new CD/DVD device to the VM but I can't upload new ISO file to the server by Proxmox API. The API return HTTP code 501 which means this function is not implemented, and no error message is returned.
This is the document I follow (path: storage -> content -> upload)
pve.proxmox.com/pve-docs/api-viewer/index.html
About source code, I use pyproxmox library for Python. Please take a look at below photos for more information.
So how can I upload a ISO file to the server storage engine ? Strangely, web interface still use this API to upload new ISO file without problems. Does the document that I read is wrong ?
Any helps would be appreciated. Feel free to ask me more information for debugging purpose.
I'm testing Proxmox API to automate VM creation process by cloning existing template on Proxmox VE 5.0-23/af4267bf. The problem is when a new VM is cloned, I want to mount a new CD/DVD device to the VM but I can't upload new ISO file to the server by Proxmox API. The API return HTTP code 501 which means this function is not implemented, and no error message is returned.
This is the document I follow (path: storage -> content -> upload)
pve.proxmox.com/pve-docs/api-viewer/index.html
About source code, I use pyproxmox library for Python. Please take a look at below photos for more information.
So how can I upload a ISO file to the server storage engine ? Strangely, web interface still use this API to upload new ISO file without problems. Does the document that I read is wrong ?
Any helps would be appreciated. Feel free to ask me more information for debugging purpose.
Attachments
Last edited: