api

  1. 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 ```
  2. 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...
  3. 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...
  4. 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.
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. A

    [SOLVED] Unlocking VM via API still not possible?

    I want to set the config setting "lock" from the API docs to be empty (something like POST lock='') to remove it via the API. At least in 2016 this seems to not have been possible. Is there a way that doesn't need root privileges?
  10. A

    Proxmox api vncwebsocket

    Hey guys :), I am currently trying to embed a console into a website. from what I read to this point the way to do it is : - vncticket = ticket from previous request ; port = port from previous request The first part works just fine.(I get a ticket in following format : PVEVNC:xxxxxxxx==)...
  11. Y

    [SOLVED] API request with curl

    Hi, this is my very first message on this forum so excuse me if I do something wrong. I'm currently trying to change the cloud-init parameter (ipconfig) by using curl. I've tried several request and the latest was something like this : curl -s -k --cookie "PVEAuthCookie=$ticket" -H...
  12. J

    OpenAPI/Swagger REST API Spec

    Hi! First time user of Proxmox. Looking to automate and store my infrastructure changes as code using Terraform. Found a Proxmox Terraform plugin, but it only covers basic details, not the full suite of options available via the REST API. I was looking into adding to it when I noticed that the...
  13. V

    Proxmoxer possibily expire token

    Hi I integrated proxmox with cuckoo thanks to the use of proxmoxer, but after a few hours I have the error related to the lack of authentication: raise AuthenticationError ("Couldn't authenticate user: {0} to {1}". format (self.username, self.base_url + "/ access / ticket")) in...
  14. F

    Proxmox API - Create VMs

    Thanks in advance for the help and sorry for my English . I am working on my final year project and I have decided to use Proxmox VE as a virtualization environment. I have the need to create a virtual machine from my own web application but I don't know where to start very well. Could someone...
  15. S

    VM PNG RRD API Statistics

    Hello, I'm using the Proxmox API to get png RRD statistics, but I'm receiving something like this: { "data": { "filename": "/var/lib/rrdcached/db/pve2-vm/800_cpu.png", "image":"<encoded string>" } } What is it encoded in, and how should I decode it? Also, it doesn't seem...
  16. J

    Permissions necessary to update custom cert via API

    I'm trying to upload an SSL certificate via the API (https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/certificates/custom) using the Proxmoxer Python API, with an API Token tied to the root user. I think I've gotten my code right, but am seeing the following error when I...
  17. A

    how to know progressing vm migrating

    Hello, I'm using proxmox 6.2 api. I would like to know how i can have the progressing vm migrating in real time. I'm looking for in https://pve.proxmox.com/pve-docs/api-viewer/index.html but i don't find the command ! Can you help me ? Thanks
  18. V

    [SOLVED] Unable to list VMs using API or CLI

    I have a VM in running state, but some how API or pvesh command does not shows it. Not sure, what am I missing here. root@proxmox:~# qm list | grep -i running 105 myrke2-node1 running 8096 20.00 12594 root@proxmox:~# root@proxmox:~# pvesh get /nodes...
  19. D

    Proxmox API allow HTTP connections

    Hi, We need to be able to debug network communication between an apliacation using HTTPS API and proxmox host. For it we need transmission to not be encrypted - is there any way to allow plain HTTP communication?
  20. D

    Proxmox networking problems everyday at the same time

    Hi, We use extensively proxmox HTTP API for creating/managing our containers. We do multiple HTTP requests to API 24/7 - approximately 100-200 per minute. Whole day our service is able to connect to HTTP API and perform needed actions. However, everyday around 18:30 GTM+1, HTTP API for...

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!