efidisk0 creation missing from API

anthony1

New Member
Jul 22, 2018
1
0
1
74
Hi,
I'm trying to create the efidisk0 from the proxmox API, but it seems to not be officially documented, although the proxmox UI uses /api2/extjs/nodes/<node>/qemu/<vmid>/config endpoint to create it. I would rather not use this endpoint if this is not the correct way to do it.

Am I missing the correct way to create the efidisk0 via the API?

Thanks
 
man qm:
You can create such a disk with the following command:

qm set <vmid> -efidisk0 <storage>:1,format=<format>
The path can be checked with pvesh and the creation works like with the disks, just use the above as example.

Please create a bug for this in bugzilla, as it should show up in our api-viewer. Thanks.
https://bugzilla.proxmox.com
 
Hi,

Ah yes it seems like an currently not complete schema for the API viewer is shipped, need to look into it but the efidisk param misses there.

I would rather not use this endpoint if this is not the correct way to do it.
Our WebUI is the reference API user, pretty everything it does can be considered as official way to use the API, and we try hard to not break backward compatibility in the API thus you should not run into problems here :)

You can definitively use that API endpoint to do it, I'll look into the other issue.
 

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!