api

  1. S

    API Endpoint move_disk rename volume filename

    To create vm volumes, we make use of: POST https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/storage/{storage}/content because that allows us to manually specify a filename like vm-<vmId>-<diskuuid>. Now, we need the option to move a disk from one vm to another, for which we...
  2. T

    Proxmox 8.0.4 SDN Questions

    Howdy everyone! I have a cluster where we want to use the VXLAN features of the SDN plugin (I know it is an experimental feature and we accept the associated risks). 1. Is there an API endpoint or other automation that others are using for this feature? 2. Are there any issues using SDN with HA?
  3. H

    Verbessungsvorschlag: API REST GET /api2/json/cluster/tasks > VMID

    Hallo zusammen, sobald man eine VM im Cluster verschiebt verschwinden auch deren alten Tasks, die Tasks sind also immer Node gebunden. Leider lässt sich über die API "GET /api2/json/cluster/tasks" keine VMID als Filter anhängen. [upid] =>...
  4. P

    Proxmox 8 API exec not working

    Hello everyone, we use the API in Proxmox quite extensively, especially the agent -> exec function to execute commands in VMs. After upgrading from Proxmox 7 to Proxmox 8, this specific function no longer works properly, we get specifically: array(2) { ["data"]=> NULL ["errors"]=>...
  5. R

    401 Unauthorized when trying to use Proxmox API in Python to clone VM

    Hey, I'm trying to clone VM from one node to the other node, using the following code in Python: data = {"name": "censored", # Name for the new cloned virtual machine "target": "censored2", # The target node where the clone will be created (target_node) } headers = { "Content-Type"...
  6. J

    Can not change CIDR param under IPSet through API using HTTP PUT

    Hello, I searched for some time and checked docs and API viewer here: API viewer - PUT - /api2/json/cluster/firewall/ipset/{name}/{cidr} But I'm not able to change my CIDR range when already exists using HTTP PUT API call. There is no issue create CIDR range (in already created IPSet...
  7. B

    No access to API but access to WEB UI

    English DeepL: In one of the many data centers, access to the API sometimes disappears, despite the fact that access to the WEB UI is available. There is no access to the API from different IPs. It is striking that there is access to pve.8006, but not to pve.8006/api2/json. Moreover, the time...
  8. T

    [SOLVED] [API] ISO parameter for QEMU creation

    Hello all, I'm working on a small project to create a KVM using the API, but I'm encountering an issue. In short, I can successfully create a disk for KVM by calling the endpoint /api2/json/nodes/{node}/qemu with parameters like virtio0: local-lvm:10,cache=none,size=10G,ro=0 Now, I want to...
  9. N

    [SOLVED] Revoke API Tickets

    Hello Im using PHP for connecting to the Proxmox API. Since the construction on how PHP is build, that means that there is at every page reload a new Connection with new ticket created (i think?) So now im wondering if its possible to revoke a API ticket after every request and get a new one...
  10. J

    [SOLVED] Question // API get nodes with tags/lables

    Dear ... Whoever is reading this, I just have a quick question that I couldn't find out by googling. So here is my question Is there a way to get all the vms from the api with the tags so you can sort them with the tags/lables from proxmox. Regards.
  11. S

    Clone multiple vms from a template at the same time (Proxmox API)

    Is it possible that you can clone a vm or a template multiple times at the same time? And if yes what parameter must i use in this python request. HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/clone And if no what would be the best way to achieve to clone a template or a vm multiple...
  12. P

    API2: How to get the node a VM is in without using /api2/json/cluster/resources

    I was wandering if there is a way in which i can get that information using only the vm id without having to access the /api2/json/cluster/resources endpoint. This endpoint returns the info about all VMs and nodes and i wanted a more efficient way to request the information of a single VM.
  13. U

    Opening a VNC console from an external app

    I'm developing a customer facing admin panel application that talks to Proxmox in the background and I need to be able to open a noVNC window from there. Through various tutorials and forum posts, I was able to put together a URL that should open the console however it always ends with a 401: No...
  14. S

    Proxmox API Postman Post Request Error 506

    Hello guys, I am trying to create a VM with the Proxmox API with Postman. I added the Ticket in the Cookies and the CSRFPreventionToken in the Headers, which works. But I dont know how to add the parameters which are required and the optional parameters...
  15. W

    Unable to assign ISO for CDROM in VM via API

    First - I'm doing all with root API-key without limits. Previously doing with special limited key but not worked too. What I'm doing? I'm try to insert ISO in virtual CD-ROM. How I'm doing? See: ~: $ curl --insecure --silent -H "Authorization: PVEAPIToken=$PVEAPIToken" -X POST --data-urlencode...
  16. I

    Is it possible to pause a VM from API?

    Hey! So I can see from the API viewer you can reboot, reset, resume, shutdown, start, stop and suspend, but there seems to be no option to pause a VM. Am I missing something obvious? Could I instead suspend to get a similar effect? Thanks!
  17. B

    Festplatten per API auf Funktion im Raid System überprüfen

    Hi ich habe ein kleines Problem, ich will mithilfe einer API per Curl abfragen wieviele Festplatten verfügbar sind, um zu checken ob eine ausgefallen ist. Ich habe das bei Postman gemacht und es hat auch funktioniert. Ich habe folgenden Link benutzt...
  18. S

    VIP ip for cluster to connect with proxmox API

    Hello, Cluster Proxmox 7.3+ I want to setup VIP ip for API connection. - round robin dns / etc is not an option. - VIP ip must be only on Quorate cluster and active node. Is there any proxmox / corosync option to achiewe this ?
  19. Y

    Using vncwebsocket via API - LXC works while QEMU doesnt

    Hi all Been butting my head against the wall for the last few days over this issue. I was hoping if maybe someone has had the same and found a solution Summery: 1) We are using the API (tokens only, no cookies) to get the vnc credentials using the vncproxy endpoint with the added flag of...
  20. S

    Proxmox API Authentication to create VM

    Hello everyone! I'm currently developing a web application using Python requests to create VMs on Proxmox. In the POST request, I include the necessary parameters such as vmid and node, along with some optional parameters. However, I'm encountering a 401 status code when running the code...

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!