api

  1. 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...
  2. 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...
  3. 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...
  4. 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!
  5. 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...
  6. 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 ?
  7. 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...
  8. 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...
  9. T

    I've question about API proxmox

    Hello, I want get api all vm running and stop in cluster but i don't see in document. Anyone can help. Best Regards,
  10. K

    [SOLVED] [Proxmox API]: vncwebsocket endpoint not sending data (Ratchet)

    Hello, I'm trying to make a Proxmox interface website for a school project, I have to give access to VMs and visualize them, handle permissions from my own interface... Here are the constraints : I've to use PHP 8 and Symfony 6 for the server side. The client should never have access to the...
  11. G

    "no authentication credentials provided" when using PBS API

    Hello Everyone, I'm trying to authenticate in proxmox backup server API using Postman. I've already created a new user (with Admin access to / path) and then a new API Token (also with Admin access to / path). Now, when i try to GET https://pbs.example.tld:8007/api2/json/access this endpoint i...
  12. K

    Delete domains from Relay & Transport command line

    Hi there, I can add domains to PMG like so: #Add domains to Transport pmgsh create /config/transport -domain somedomain.com -host <IP> -port 25 -protocol smtp -use_mx 0 -comment test #Add domains to Relay pmgsh create /config/domains --domain somedomain.com -comment test But how can I delete...
  13. R

    Two extra bytes in ISO file when uploading via API / Proxmoxer

    When I upload the same ISO file manually through the GUI and through the API, I get two slightly different results: Manual upload: The ISO works. Upload using API: The file has two extra leading bytes, specifically `0x0d0a` (`\r\n`), and it's seen as a corrupt ISO file. More details at...
  14. Y

    cloudinit via api

    Hi:), I saw a documentation how to attach a cloudinit drive to vm, and I want to do the same from the API. 1. I have created a vm (vm id: 9000 ) 2. I have downloaded cloudinit image and uploaded it to ISO Images (/var/lib/vz/template/iso/focal-server-cloudimg-amd64.img) 3. ?? I want to add...
  15. parrotassassin15

    [TUTORIAL] How to set up noVNC on a web application.

    A little back story I have had many issues with setting up noVNC after countless hours of research I finally got everything working as designed. I would like to post a quick walkthrough of how I did this so people in the future will have less issues. I am using the following API Wrapper for...
  16. A

    API : Get all LV (disk and snap) to calculate the sum of all thin volume sizes

    Hello, I want to prevent this warning : I can list all LV with : lvs --units=g --nosuffix But, i want to get the list and calculate the sum from the API. I have try : pvesh get /nodes/<node>/scan/lvmthin --vg=<VGID> but the result is : However, the command behind this API endpoint is ...
  17. R

    [SOLVED] Api path /cluster/ha/ressources difference between http and cli

    Dear Proxmox user, I'm trying to use the api, i get a difference if i use it on http or in cli - on cli, like with `pvesh get /cluster/ha/resources`, i'm getting ct AND VM - on http, like curl {{ api_url }}cluster/ha/resources, i'm getting only type=vm, This http is strange as the api...
  18. D

    [SOLVED] Proxmox 7+ unable to parse worker upid

    Hello. I am testing my script which uses Proxmox API (7.3-3) for creation/removing network interfaces (or other things in vm config). While testing it was common situation to have 20+ network interfaces on vm. So I wrote something like: const hv = require('../hv') //177 is vmid for (let i...
  19. D

    Creating SDN vlan's via the API

    hi all I want to create an SDN network via the API as I want to tie it to netbox using a webhook but I want to make sure I can manually create one using the API going to the docs I can't see a post option. is it possible to create a vnet ? if so does anybody have an example?
  20. T

    Proxmox VE API gives HTTP error 500, "user name not set" when PUT qemu config.

    Hi all, I have a cluster of 4 Proxmox servers, all running version 6.2-4, a version that I prefer not upgrade unless I necessary have to. I am creating and removing many QEMU VMs few times a day with up to 20 VMs being concurrently created at a time. I am doing this programmatically through the...

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!