api

  1. B

    Is there a configuration that can extend the wait time for a one-time VNC connection?

    My web application always use ten seconds to connect the vnc .As a result ,my noVnc can't connect the vm Instantly. So I want to now is there a config file to extend the wait time for a one-time VNC connection.
  2. T

    [SOLVED] Setting up LibreNMS on Proxmox Backup Server, missing libpve-apiclient-perl

    Hi There, Simple enough problem, there is a package that is available in the PVE repository that is not available in the PBS repository and I'm wondering if there is an alternative that I should be using which is more specific to PBS or if I need to install this package manually by running...
  3. T

    API Reboot der Node funktioniert nicht

    Hallo, ich habe bereits http-API Befehle für meine einzelnen VMs eingerichtet, aber es gelingt mir nicht, das ich auch die Node "proxmox" herunterfahre oder reboote. Ich wollte das eigentlich über dieses Skript lösen: #!/bin/bash # Host-Informationen pve="proxmox.fritz.box" node="proxmox"...
  4. A

    Interacting with API…

    I know you can curl your host, to get a CSRFPreventionToken and Ticket for auth. Is that the *only* way to authentication for API stuff? or can you use an API token for it instead? (specifically for interacting with the API, not just regular usage) Thank you in advance!
  5. M

    API get storage with content images

    Hi. I'm trying to write a script to calculate the sizes of the VM's disks in order to create an automated report of vm consumption (with cpu/ram/disk). With /api2/json/cluster/resources I only get the boot disk size which is not enough. The idea is to get the data from API and insert it into a...
  6. P

    get individual per vm disk info via api

    Hi, through pvesh get /cluster/resources it is easy to pick up the info I need for our backoffice. Except for 1 thing... if a VM has more than 1 virtual disk assigned, I'd like to get info (path, size etc) from all disks, not an aggregate. Am I blatantly overlooking the info or is that not...
  7. A

    How does the PVE API work if API node is down?

    Hi, I'm trying to build a 5-node cluster (which will be expanded in the future) and a Python wrapper for PVE API to create/delete VMs/CTs. From my understanding, I need to send the API request to one of my HVs/nodes in the cluster. But what if that specific HV is down? How can I make this...
  8. S

    Backup-Monitoring per Powershell-Skript

    Servus zusammen, ich teste gerade den Proxmox-VM-Server und den Backup-Server. Was mir noch wichtig wäre ist, dass wir die Backups monitoren können... Wir nutzen als Monitorings-Software die Riversuite von Riverbird. Riverbird hat mir nur ein Standard-Skript gegeben (Powershell) das die...
  9. K

    [SOLVED] Proxmox VE API /api2/json/pools optional field "members" empty

    HI! I was trying to find out which pool is connected to a VM-ID by searching with the VM-ID. In theory I should be able to use the /api2/json/pools API call to return the pool-id and the data of it's members, where I could find the VM-ID and backtrace it to the pool. The documentation states...
  10. K

    Proxmox VE API /api2/json/pools optional field "members" empty

    HI! I was trying to find out which pool is connected to a VM-ID by searching with the VM-ID. In theory I should be able to use the /api2/json/pools API call to return the pool-id and the data of it's members, where I could find the VM-ID and backtrace it to the pool. The documentation states...
  11. F

    Using an API Token to manage user permissions

    Hey, I'm trying to create a tool to manage user permissions on a PVE Environment. For that my initial idea was to use a service user with an API token to do that. When trying to use the /access/password endpoint with that token I get the following error: 403 Permission check failed (URI...
  12. B

    API

    Hello, I want to use proxmox API with nodejs. I read this: https://pve.proxmox.com/wiki/Proxmox_VE_API#NodeJS and I decided to use https://www.npmjs.com/package/proxmox (doc is here: https://github.com/ttarvis/node-proxmox#readme). I don't know why but I have this error: token.CSRF =...
  13. L

    Restore from PBS by API to specific storage

    After migrating servers from PVE A to PVE B maybe the original storage from the PBS QEMU Server Config is not existing on the new server. While trying to restore this backup perfectly works from Proxmox GUI PBS Storage view. Example: API POST Request to /api2/json/nodes/nodeXX/qemu Parameters...
  14. A

    API: ExternalAPIException

    We're trying to install a new software to backup our proxmox vitrual machines. We're using Vprotect (Dell solutions) to backup those vm. The problem is that when we try to run the software, sometimes we get this error: API: ExternalAPIException: Failed to execute remote command: [LC_ALL=C...
  15. R

    Proxmox API - permanently set IP on Ubuntu VM

    Hello, could you pls help me with network configuration of Ubuntu 20.04 VM via Rest API ? I need to permanently set IP for network interface ens18, tried it like this: 1) curl POST api2/json/nodes/<node_name>/qemu/<vm_id>/config {"ipconfig0"...
  16. C

    How to put a Virtual Machine in custom backup state

    Hi everyone, I'm looking for a method to put a virtual machine into a backup state on Proxmox, allowing me to safely copy its files without interrupting its operation. I prefer to avoid using the default dump tool or backup utility, as I intend to create my own backup solution. If anyone has...
  17. S

    Log out of Proxmox connection with API/Powershell

    I just started using/exploring the Corsinvest.ProxmoxVE.Api module (https://github.com/Corsinvest/cv4pve-api-powershell) to automate getting VM inventory. I connect with : Connect-PveCluster -HostsAndPorts $server:8006 -ApiToken $token -SkipCertificateCheck Is there a way to disconnect...
  18. C

    "Enumerating VM Files Using the Proxmox API"

    Hi everyone, I'm currently exploring the capabilities of the Proxmox API and wondering if it's possible to enumerate the files of a Proxmox virtual machine (VM). Specifically, I'm not looking to access files within the VM but rather to obtain a list of files that make up the VM itself. Has...
  19. R

    API Command CURL Python

    Hello, i tried to implement the shutdown api call into a python program but i have no idea how to properly build the syntax. The command runs fine on linux bash but i cannot find suitable arguments for python. curl 'https://myhost.local:8006/api2/extjs/nodes/myhost/status' -H 'Authorization...
  20. U

    Upload .iso via API

    Hi, I'm trying to upload an image via ProxmoxVE API but cannot find a way to pass the local path of the .iso file. After reading the documentation, I could not determine which argument is used for the local path. I would appreciate a little help. Cheers

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!