api

  1. D

    [SOLVED] Miss matched backup_status response from API.

    Hi, so I am developing/writing a script to send individual emails to our customers notifying them of their VM's backup status (successful or failed). While testing I discovered that depending on where the backup is cancelled or problem occurs the API's (Proxmox API & PBS API) respond with...
  2. S

    Shutdown Proxmox using APi

    Hi Guys So long story short I want to shut down my physical server that is running Proxmox VE using the API. I am fairly new to using API but what I have found thus far is this: curl https://yourip:8006/api2/json//nodes/proxmox/stop -k -d 'username=root@pam&password=yourpassword' Above does...
  3. P

    [SOLVED] API Authentication - No Ticket

    Having an issue figuring out how to authenticate to PMG API via PHP. I was able to generate a new ticket just fine, put passing in the cookie and header seems to be a problem for follow up requests. The API tells me: HTTP/1.1 401 No ticket $pmgToken = Http::withOptions([ 'verify' => false...
  4. C

    VNC Konsole über die API öffnen

    Ich möchte die VNC Konsole zu einem LXC-Server über die API öffnen. Leider bekomme ich ständig die Meldung Connection failed (Error 401: No ticket). Ich habe auch schon versucht den "PVEAuthCookie" zu setzen mit dem Wert von dem "ticket" aus POST /api2/json//nodes/{node}/lxc/{vmid}/vncproxy...
  5. C

    Configure scsi by Proxmox API

    Hello! I have an installed Proxmox server which is functional through GUI and CLI. I want to launch a VM through the proxmox API, and i am trying to do so by sending a POST request to /nodes/{node}/qemu. I am able to get the VM instantiated, but it wont run. I think the problem is due to the...
  6. R

    xterm.js console doesnt set terminal size correctly

    Hi, The xterm.js terminal doesnt set the terminal size correctly causing the text to not wrap and overwrite the text on the current line The xterm.js console tries to set the tty size by sending "1:<cols>:<rows>:" over the websocket, however, this doesnt work Example: The actual tty size...
  7. T

    Proxmox API – clone and start VM

    Hi, I'd like to automate the use of proxmox. I care about copying and starting the VM. I was able to achieve this with the CLI with the command: Pvesh create /nodes/pve/quemu/100/clone –newid 102 Do you know how this can be achieved using the API? I tried POST...
  8. L

    SMTP Dialog Antworten Log ID

    Hi zusammen, sofern PMG E-Mails annimmt oder blockiert wird geantwortet mit: 250 2.5.0 OK ($self->{queue}->{logid}) 554 5.7.1 [...] ($self->{queue}->{logid}) Der PMG API Endpunkt /tracker/(id) (https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/nodes/{node}/tracker/{id}) führt neben der...
  9. R

    Proxmox HTTP API Firewall - Doesn't return any optional values

    Hello! I need to get the firewall options from all my VMs via an API call. I found out that the optional parameters are not sent at all when they are at the default values. But the API Viewer shows the default values just for dhcp, enable, macfilter, ndp as boolean 0. The other parameters have...
  10. P

    [Proxmox VE 4.4-24] No API /status/start-stop

    I'm trying to call start/stop with API. but I get "data": null in response. /api2/json/nodes/{node}/qemu/{vmid}/status/start I would like to make VM start upon creation. Any suggestions ? NOTE: I know this is an outdated version, but why API is not working ?
  11. G

    [SOLVED] /cluster/resources restrictions

    Hi! Noted something strange: accoding to description: Required permission: Accessible by all authenticated users. But then not privileged user reads this, it gets [{'type': 'node', 'status': 'online', 'id': 'node/pve2', 'level': '', 'node': 'pve2'}] while admin gets normal output like this...
  12. J

    Authentication Method Affecting ISO Upload

    When using the HTTPS API, it appears that the authentication method affects ISO uploads. When using standard username/password authentication, the upload works as expected. When using an API Token (for the same user with all the user's permissions), the upload fails and the Response is a 501...
  13. florian-n

    [SOLVED] 500 Internal Server Error: unable to find configuration file for VM 1000 on node 'alfa'

    Hi we're trying to deploy a linked clone via Ansible's "community.general.proxmox_kvm" module. The template vm (disk and cloudinit disk) is laid out on a cluster wide accessible RBD storage. During the creation step we receive a "500 Internal Server Error": Unable to clone vm fam-dev from...
  14. A

    API parse errors when lxc tags are null

    When testing the /nodes/{node}/lxc/{vmid}/config path for the API I noticed that a parse error is returned whenever the tags of a lxc instance are null. Regardless of the error being returned the tags are updated correctly in both the null -> defined and defined -> null scenarios. This same...
  15. D

    HTTP API Error 596

    Hi, I implemented the check_pve script from https://github.com/nbuchwitz/check_pve to have Proxmox monitored from my Icinga2 instance. Some checks run good, some others receives HTTP error code 596: root@node01:~/check_pve-1.1.3# ./check_pve.py -e node1 -u icinga2@pve -p password -k -m...
  16. florian-n

    [SOLVED] Cloud-init isn't applied after linked clone of template via API

    Hi, currently we're trying to create template based clones using Ansible's community.general.proxmox_kvm. To make the clones configurable we stick with cloud-init. We are building the template using a hand rolled Packer configuration which deploys fine (locally as well as in our production...
  17. S

    Edit configuration before starting VM through custom hook script

    First of all I would like to thank the Proxmox team for the great software and the nice community they built. I'm using a custom hook script (hookscript.pl) to manage VMs on a system with various GPUs passed through. The first motivation to do so is to avoid a VM (which requires a GPU) being...
  18. S

    Proxmox API - vncproxy / vnxwebsocket

    Guten Tag zusammen, ich habe jetzt STUNDEN damit verbracht eine Implementierung eines xterm oder eines noVNC auf einer externen Seite zu programmieren. Folgende Auffälligkeiten... Der API Call "vncproxy" generiert zwar ein Ticket, dass ist aber nicht das Ticket welches "vncwebsocket" erwartet...
  19. S

    API Internal Server Error [500], but requests complete?

    Hi everyone, We're in need for some help here please. In short, some of the API requests return with 500, but complete anyway. We're on proxmox-ve: 6.2-1 There are no errors in /var/log/syslog in fact here is one of the successful attempts: Jan 7 15:47:45 xxx.xxx.xxx pvedaemon[42603]...
  20. J

    Mock API in (docker) container?

    I would like to be able to run some tests against the API for PVE (and PMG and PBS) but I don't want to have an entire instance of PVE installed. I know PVE needs its own kernel to work correctly (which cannot be guaranteed in a container) but I am not sure how much functionality is dependent on...

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!