api

  1. S

    Failed to start PVE API Proxy Server can't acquire lock '/var/run/pveproxy/pveproxy.pid.lock

    Hello My server ran some years without trouble but now I am facing a problem which I don't know how to resolve. I firstly noticed backup was buggued, with a task stucked for 2 months now. When I killed it manually by web interface I have just wait to see if the server would get it working the...
  2. C

    ACME API endpoint: 403 Permission check failed (user != root@pam) - despite user being root@pam

    The title says pretty much it all. :) I'm writing an API client and a Terraform provider for Proxmox VE. So far the `version` and `storage` endpoints are working (albeit not necessarily complete :D ). I'm now trying to create an ACME account but I get a `403 Permission check failed (user !=...
  3. E

    Finding total disk size in multi-disk virtual machine

    Hello there I have to get total disk size in VM which have multiple disk. How to do that from api? In documentation /cluster/resources disk -> Used disk space in bytes(for storage), used root image space (for VM) totaldisk -> Storage size in bytes(for storage), root image size (for VM)
  4. D

    PBS - API - Missing informations

    Hello, I'm using a PBS(2.1-5) for more than year and I try to integrate it to my supervision(prometheus) via the blackbox exporter(http's probe). To do this I have to interact with the API and here is the problem: the documentation is very poor about details. Here is my script to try to...
  5. C

    API Proxmox DeleteVM

    Hello, I would like to know if it is possible with the proxmox API, to make API requests to delete a VM using an html request Thanks in advance for your answers
  6. G

    [SOLVED] 401permission denied - invalid PVEVNC ticket

    I'm trying to call the console from an external site. I have successfully called so far: GET / api2 / json / access / ticket POST /api2/json/nodes/{node}/lxc/{vmid}/vncproxy I'm trying to call now GET / api2 / json / nodes / {node} / lxc / {vmid} / vncwebsocket but it gives me an error. I don't...
  7. A

    [SOLVED] Where is the API log PMG?

    Hello, I created a code that register domains in my server using PMG API. In my computer (Local) the connection workly good, but in the server I got the next error: HTTPSConnectionPool(host='url', port=port): Max retries exceeded with url: /api2/json/access/ticket (Caused by...
  8. S

    API how to use 'GET /api2/json/nodes/{node}/qemu --full' via HTTP/proxmoxer

    Hello, How can I use HTTP style of CLI : pvesh get /nodes/{node}/qemu --full GET /api2/json/nodes/{node}/qemu --full ? here is working example from proxmoxer wrapper but without "full" def vm_current_all(targetnode): x = proxmox.nodes(targetnode).qemu().get() return x
  9. U

    Use PsExec to run commands on user session via qemu guest agent

    Hi, I'm trying to execute a script on a vm via the qemu guest agents api exec. However all the commands get executed without a connection the the current user session. so when I for example run powershell via the api it only shows up in task manger as a process but does not show the console on...
  10. M

    Need some guidance with Proxmox

    Hi, I am completely new to Promox. I am normally backend Web/App developer, but currently got into situation where I need to use Proxmox. I know that there are resources out there, however I would like to ask some basic questions. -- Sadly I am constrained deeply with time, so that's why I...
  11. G

    I need a script that moves OVH IP blocks - Paid work

    I have servers at OVH and I need a script that changes the routing on IP blocks when a VM is fenced. I was going to hire a developer to make this but it makes sense to offer the work to someone here. There will be people here that already have this. The script would need to send the relevant...
  12. V

    Proxmox API - get Console working

    Hi, I'm using Proxmox VE 7.0 and I'm trying to write my own GUI interface. I have Proxmox on the local machine with Nginx proxy with SSL. Everything going well, all API endpoints are well documented and working fine, but I'm stuck on to get noVNC console to work. ---------- For auth I'm...
  13. P

    API ticket 401 authentication failure

    Virtual Environment 7.1-7 I use curl to access the PVE API, yesterday I could get a ticket normally, but today I can only get a null every time I access it, the command I use is: (There is no error in the password) output: * Trying 192.168.1.100... * TCP_NODELAY set * Connected to...
  14. J

    Connecting to Proxmox VMs In Java

    Hello! To start off, I am COMPLETELY new to Proxmox. I got through the installation, and it seems pretty intuitive to setup a new virtual machine on PVE (I have some experience with vSphere). What I'm looking for help with is connecting to a virtual machine in a Proxmox server with VNC and...
  15. A

    [SOLVED] Using Packer to deploy Ubuntu 20.04 to Proxmox

    DISCLAIMER I am not sure if this is even "the right" place for this, but it seems like a great place to start. This mostly relates to the Proxmox API and how VMs are actually created, so if you have any deep knowledge or even just a bright idea I might've missed, shoot it my way :) Problem...
  16. G

    Monitoring (nagios) Proxmox Cluster logs

    Hi! We make monitoring tools for Proxmox. We want to monitor the status of the logs. it's simple using an API. example: pvesh get /cluster/log But no documentation was found for the output...
  17. C

    Update HA Groups from API

    Hi folks. Is it possible to edit an HA Group from the API? I can GET all groups from /api2/json/cluster/ha/groups, but I can't seem to PUT a different value for nodes with it, as it just complains that it's not implemented. Basically, what I'd like to achieve is a way of editing a group so I...
  18. M

    api limitations to root@pam

    Hi, we currently try to deploy several lxc containers that require a hookscript via API (using salt-cloud). basically everything is working as long as we are using the root@pam user. due to security reasons we'd like to avoid using the root user for automated 'actions'. so, right now we patch...
  19. G

    [SOLVED] Best way to detect what node a VM is moved to (HA)

    Hii everyone, So iv been playing about with HA on some OVH servers. It works but I need to code a script to point the VMs IP to the new node when they are moved. (I do not have access to vrack) . I'm wondering what the best way to do this is. I could write a function to query the Proxmox API...
  20. J

    Upload custom cert via Proxmox API?

    I have pre-existing infrastructure which registers and updates TLS certificates for organization's sites via Lets Encrypt. I'd like to use this infrastructure to automatically push a new certificate to my various Proxmox VE nodes via the Proxmox API...

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!