api

  1. 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,
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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 ...
  9. 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...
  10. 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...
  11. 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?
  12. 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...
  13. L

    Proxmox API Data Encoding Format

    I am trying to send a PUT request to `/nodes/{node}/qemu/{vmid}/resize` with the following data: `disk=sata3&size=+1G` However, no matter how I encode this data, I keep getting the error: `size: "value does not match the regex pattern"` I have tied URL encoding, json, plaintext, etc. I am using...
  14. Q

    I had some trouble requesting the api

    hi , I had some trouble requesting the api, It returned a 401 error when I requested '/api2/json/nodes/{node}/qemu/{vmid}/vncwebsocket', Some details will be shown in screenshots: This is what it says in the official wiki: good,This request 200 It returns me the parameters I need for my next...
  15. D

    Change vm args using api + api token authorization schema

    Hello. I am trying to set vm vnc port using api. Previously when I was performing this using "PVEAuthCookie authorization schema" everything worked fine. Now I am trying to switch my script to "PVEAPIToken schema". Problem is that my request does not change args and return '{"data":null}'...
  16. A

    Proxmox API performance issues

    Hi everyone, I'm having some performance issues with the Proxmox API on my cluster. As the number of users and virtual machines grows, the API becomes slower and slower to respond. I've already checked that the hardware is top-notch and the servers have enough resources, and I've also checked...
  17. J

    [SOLVED] Proxmox VE API: provision LXC with two network interfaces

    Hello everyone! I am using the community.general.proxmox Ansible module to provision LinuX Containers into my Proxmox 7 cluster. At the moment I am using this value for the netif option: netif: {'net0':'name={{ proxmox_net_iface }},bridge={{ proxmox_net_bridge }},firewall=1,ip={{ ansible_host...
  18. M

    Guest API clarification (network-get-interfaces)

    Hi, This question is about https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces. Can someone explain to me what these represent? "statistics": { "rx-packets": 501361, "tx-bytes": 15465504, "tx-dropped": 0, "tx-errs": 0, "rx-errs": 0...
  19. U

    [SOLVED] How to Copy/Paste from API Documentation

    How can I copy and paste easily from the "Parameters" section of the API documentation? Here is an example. Navigate to this page of the API docs (they're all the same, and this is just one example): https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/config I can...
  20. U

    [SOLVED] How to Create an Authentication Ticket via REST API?

    I can see in the API documentation where the endpoint is for creating an authentication ticket: https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/access/ticket I don't see anything in the main documentation describing how to use the REST API. I have provided the username and password...

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!