api

  1. M

    AWS Route53 ACME plugin configuration with Proxmox API

    Hi everyone, I've been automating my Proxmox configuration with the help of the Proxmox API. Here are the docs I'm working from; https://pve.proxmox.com/pve-docs/api-viewer/index.html In particular, per the subject of this post, I am facing an issue with successfully setting up the ACME DNS...
  2. V

    API equivalent of qm importdisk

    Currently I use `qm importdisk 9000 jammy-server-cloudimg-amd64-disk-kvm.iso <Volume Group>` during VM creation. Now would like to use VE API for the same. What is the equivalent for that command with API.
  3. B

    Automatically create file in CT

    Hey, I'm fairly new here and have the following concern: I have a pre-built LXC from which others are cloned (quasi template). However, two additional files are needed that have different contents for each CT (same structure, but different variables that are needed for a script). Is it possible...
  4. P

    [API] Call QEMU Agent error and wrong information

    [PS Script] My code: https://github.com/.../04054a709c8c95.../proxmox-api-problem API: https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/agent/get-osinfo try { $vmAgentResponse = Invoke-RestMethod -URI $vmAgentUri -Headers $Headers...
  5. B

    API: File in CT erzeugen mittels API

    Hey, ich bin ziemlich neu hier und habe folgendes Anliegen: ich habe ein vorgefertigtes LXC von dem andere geclont werden(quasi Template). Es werden aber zusätzlich zwei Dateien gebraucht, die unterschiedliche Inhalte für jedes CT haben (gleiche Struktur, aber andere Variablen, die man für einen...
  6. M

    Ansible direct connection to containers using PVE as a proxy

    I'm using Ansible to connect to containers and VM's via SSH, but I'm wondering if there is a better way to do it using PVE as a proxy, given there are tools such as pct exec, pct enter, and pct console that allow Proxmox to send commands directly to the containers. This would allow to connect to...
  7. Z

    [SOLVED] PBS API

    Hi guys, I'm working on monitoring the completion of backup tasks in Proxmox Backup Server (PBS). My goal is to track when a backup task finishes and receive notifications when all backup tasks report a status of "ok." I’ve reviewed the API documentation at Proxmox API Viewer, but it appears...
  8. S

    Proxmox vncwebsocket connection - 401 No ticket

    We try to avoid getting csrf token because of the lack of api token support. We wanted to get a script to run on the lxc without the need of ssh and tried to make use of the API websocket implementation. We've come up with following code: import requests import threading from time import sleep...
  9. M

    API Problems: SDN availability

    Hi, I'm not 100% sure if it is a bug or if I'm misunderstanding something about the API. If I check the status of an VXLAN zone via api2/json/nodes/{node}/sdn/zones it shows me that the zone is available for all nodes, but /api2/json/cluster/resources shows that the zone is still pending on some...
  10. P

    Api call Timeout from vncwebsocket

    Hello i have a web app and i can't pass this issue My Proxmox mngt is on 10.10.0.15:8006 ``` const handleManageVM = async (vmid, node) => { try { const authTokens = { token: account.token, pveToken: account.pve_token...
  11. V

    Proxmox API QEMU VM Creation Issue

    class VpsCommand extends Command { protected $signature = 'vps'; protected $description = 'Create a new VPS as a Test'; private $data = [ 'cores' => 2, 'memory' => 4, 'disk' => 10 ]; public function handle(): void { $vpsId = 10001...
  12. M

    No ticket for url on any api endpoints with API Token or access ticket

    I have freshly installed a Proxmox VE on a running Debian12 machine, everything works just fine, but i have some problems with the API. import requests import json proxmox_url = "http://localhost:8006/api2/json" node = "debian" auth_token =...
  13. xtonousou

    [FEATURE-REQUEST] Proxmox VE scheduled tasks

    It would be very useful for sysadmins and devops teams, if there was an embedded task scheduler/queue worker for native actions like QEMU/LXC power actions, migrations and deletions with system and user defined intervals or just once-off actions. This feature should be available through API and...
  14. C

    Is it possible to add iSCSI targets via Proxmox API?

    Here are the commands to manually discover and attach the iSCSI target in the Proxmox shell. To discover iSCSI target: iscsiadm -m discovery -t sendtargets -p <IP-address>:3260 To attach the iSCSI targets: iscsiadm --mode node --targetname <IQN> -p <IP-address> --login I tried using the API...
  15. S

    [SOLVED] Proxmox Web API Disk resize not working

    Hey all, For some reason an API call to resize a disk is not working, yet all other calls are working fine. This is an excerpt from my script: # Get parameters from command line cpus=$1 ram=$2 hdd=$3 user=$4 name=$5 template_id="999" task=$(curl -s -k -b "PVEAuthCookie=$ticket" -H...
  16. T

    Deleting several VMs may leave behind Disks

    I'm working on automatically deploying VMs via the API. To update them I delete the old and clone a new one from an uptodate template. During this I noticed that when deleting several VMs some may leave their disk behind. I think I had i happen with 5 VMs but for testing this its easier to just...
  17. C

    Checksum at upload api not working?

    Hi, I try to upload with curl a iso file via the api to the storage, that works well (Prox 8.2). Now I tried to add the checksum check but nothing happens. I am not sure what happens or if it should work at all ? I get the same output regardless if the checksum is correct or not (file get...
  18. M

    Small tags inconsistency

    Hello, I noticed that if I manually assign tags to a vm through the web interface, when retrieving the tags (i.e. with pvesh get nodes/<node>/qemu/<vmid>/config), they will be listed as tag1;tag2;tag3, while if I assign them through the command line (tested only at creation), when retrieving...
  19. L

    noVNC VM restart after installation from ISO

    Hi, I have implemented noVNC via API into my client's webapp. Usually, noVNC console is used for installing OS from ISO attached in IDE0 CD-ROM. There is a requirement from client to automatically detach ISO from CD-ROM once installation in noVNC is done and signal SIGKILL is used to reboot VM...
  20. M

    API List VMs

    Hello, I am having some surprisingly difficult time trying to find an endpoint in the API where I can simply list the running VMs and their configurations. I noticed that even in proxmoxer, and in it's related ansible module, it is not possible to get the configurations of a VM. So far I...

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!