api

  1. 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...
  2. 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]...
  3. 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...
  4. J

    bpssh utility?

    Is there a command line utility to interact with the PBS API similar to pvesh or pmgsh? I tried pbssh but that does not exist (or at least is not on the path).
  5. R

    Support for Flatcar Linux vm's using ignition config

    Are there any plans to make the needed modifications on the config files located at /etc/pve/qemu-server to support ignition instead of cloud-init available via the API? This would pretty helpful to get Flatcar Linux vm's provisioned by using one of the terraform providers.
  6. J

    API Token Problems

    I'm one of the maintainers of the proxmoxer python library and I'm trying to get it working with PBS. I have several issues when trying to get the API tokens working. They work perfectly with PVE, but there seem to be issues/differences with PBS. Why is the separator for the token id from the...
  7. A

    [SOLVED] Empty API Response When Getting VMs

    I'm trying to get a list of all VMs (no containers yet) running on my Proxmox v6.2 server (node name is "pve") using the Proxmox API. I've been referring to the API docs here. There are currently ten running VMs. I created a user "api-user@pam" and created a token for the user named "main". I...
  8. M

    Time Out pvesh on create vnc proxy

    Hi when i runn this code pvesh create /nodes/Mahmoudi/lxc/106/vncproxy i got this error on shell Timeout while waiting for port '5900' to get ready! but my gui consoles on proxmox worksfine and i want use this command for api thanks
  9. M

    error 401: no ticket

    Hi i have problem with ticket and cookie system <?php /* For the first you need: 1. Create User group "VNC" –> Datacenter / Permissions / Group 2. Create new user -> Datacenter / Permissions / Users - select Group: "VNC", Realm: pve 3. Create new Role -> Datacenter / Permissions / Roles -...
  10. P

    [SOLVED] Api task return false status

    Hi, I just update one of my proxmox VE server: $ pveversion pve-manager/6.2-15/48bd51b6 (running kernel: 5.4.65-1-pve) And I tried to "terraform" a VM on it. I found something very weird with the api result. step to reproduce: * have a stopped VM * $ pvesh create...
  11. C

    [SOLVED] API Documentation

    Hello, looking through the forum and the included documentation I wasn't able to find any references to the API documentation. For PVE this page exists: https://pve.proxmox.com/pve-docs/api-viewer is there something similar for PBS?
  12. M

    Issues with REST API and percentage symbol

    Hello. I'm using the Proxmox REST API to execute some commands inside the qemu guest agent. Specifically, I'm using the POST /api2/json/nodes/{node}/qemu/{vmid}/agent/exec endpoint. All the commands I execute are correctly "got" by the agent, except for those who have the percentage symbol...
  13. G

    API browse "execute" returns error

    Greetings I'm exploring the API at `https://pve.proxmox.com/pve-docs/api-viewer/index.html` When I click "execute", I see an error in the console: ``` apidoc.js:42583 Uncaught TypeError: Cannot read property 'properties' of undefined ```
  14. A

    Windows VM NIC disconnects and how to fix it

    As we moved to PVE 6.2 (just several hosts, not huge install), we noticed that Windows server VMs we used to run on PVE are to see sudden NIC stop working. The fix is really simple: set NIC to not connected (no link) in PVE web interface, apply changes, the connect it again and apply again - all...
  15. G

    [SOLVED] lxc config via api (PUT problem)

    Hi! Stuck on trying to change lxc config via api, example: curl -Ss --insecure -X PUT --header 'Authorization: PVEAPIToken=root@pam!test=UUID' --data-urlencode onboot=1 "https://pve1:8006/api2/json/nodes/pve1/lxc/107/config"|jq '.' { "data": null } Problem only with this PUT method, other...
  16. U

    A new Proxmox Api client available. (JavaScript / Typescript)

    Hi, I have just release my new client for proxmox Api, It's perfect for JavaScript / typescript developer. proxmox-api Fill free to send me feed back, and to open issues. Uriel.
  17. A

    [SOLVED] HTTP/1.1 401 Permission denied - invalid csrf token - CLI

    Hi guys, I'm trying to create a script to automatically create a VM. I'm using the PVE API to do it. I get a PVE cookie but if I try to use it, I have the following error : HTTP/1.1 401 Permission denied - invalid csrf token. This is the script I created : #echo "Adresse IP : $2" #echo...
  18. G

    [SOLVED] "script":"Only root may set this option."

    In PVE5 we could'n add serial port via user, only via root, in PVE6 it became possible. In PVE6 (6.2-11), method --script in api call "/api2/json/nodes/{node}/vzdump" executed under admin user causes the same error: {"data":null,"errors":{"script":"Only root may set this option."}} Can we expect...
  19. L

    Erweiterung API Endpunkt /quarantine/spam

    Hi, der REST API Endpunkt /quarantine/spam gibt aktuell folgende Felder zurück: Parameter Beispiel Wert spamlevel 0 receiver test@test.de envelope_sender test@test.de subject Test E-Mail mit einem Spam Score von -13 id C2R2453T141259902 from test@test.de time 1596179005 bytes...
  20. S

    API Question.

    I am running pve-manager/6.2-10 and have a VM running an old Natware 3.12 server system. The contents of the VM do not respond to shutdown commands. The only way to stop the VM is to enter the console and manually 'down' the server, exit to DOS then issue a 'stop'. I have written a hookscript...