-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API calls for doing a disk import? #145
Comments
Hmmm, this might be the correct API call: https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/storage/{storage}/content Will probably try that out later on today. 😄 |
That API end point can indeed create new VM disk/volume definitions:
That creates the new ZFS volume in the I'm not (yet) seeing how to fill that volume with actual disk data though. If the Go code was running on the server then it could just directly write into the disk device. But how to do it remotely? That's the next needed step. |
Looking at the
That may mean there's no mechanism in place (yet) for uploading disk images remotely via the API. Well, data other than ISO images and templates. Will probably need to ask on the Proxmox forum somewhere, or pve-devel mailing list. 😄 |
Looks like this isn't yet possible. 😦 https://forum.proxmox.com/threads/proxmox-api-import-disk.68171/ |
well that's a bummer |
Trying to do a disk import, as would be done using
qm disk import
, but remotely using the API:Not really seeing anything obviously correct for this, and nothing suitable is showing up in the official API viewer either as I look through it.
Anyone have suggestions? 😄
The text was updated successfully, but these errors were encountered: