api

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

    How can I correctly assign SSL certificates ( let`s Encrypt) to the interfaces for API and TLS?

    I have set up and assigned certificates with Let`y Encrypt for both interfaces TLS (mail.mydomain.com) and API (pmg.mydomain.com). The hostname is pmg and fqdn-name ist pmg.mydomain.com. Access for the web interface is good because hostname and fqd-name are correctly mapped in the certificate...
  9. C

    Download big files using Proxmox API agent/file-read

    Hi Proxmox team, I am a beginner in Proxmox. Currently as per the documentation of agent/file-read API(https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/agent/file-read). There is limit on the file size, and if the file is big, it can get truncated. Is there a way...
  10. S

    API Route vncwebsocket accessible via API Token

    Hello everyone, I have a question regarding the use of API tokens in Proxmox. I am trying to use the vncwebsocket API route via an API token, but I keep receiving an 401 error message stating "invalid authentication - 401 authentication failure" Task log: client connection: 127.0.0.1:50252...
  11. N

    Get Backup Nodes via API

    Hi there, I have another question about the API, I see that there is an note endpoint, but it does not provide notes of the vm, I already know, that they are stored in qemu-server.conf.blob, is there a way to access this via API? Best regards
  12. Y

    Error 599 too many redirections

    Hello everyone, I am contacting support because I am encountering a persistent error when creating a VM via API and Terraform. To be more specific, my goal is to clone a specific VM from a template. My code is below. However, an error constantly appears, interrupting the process with "error...
  13. A

    Export Disk als Stream

    Moin zusammen, ich spiele gerade mit Proxmox und Packer herum. Ich suche nach einer Möglichkeit, eine Disk via API zu streamen/herunterzuladen. Ich weiß, dass sowas bei CitrixXEN mal funktionierte - geht das auch bei PVE? Notfalls müsste ich das mit netcat und co "basteln" - etwas natives wäre...
  14. N

    [SOLVED] API question

    Hi there, I try to automate few things within the Proxmox Backup Server and I'm missing one important endpoint: How can I get all Backups (with IDs, Notes etc.) of a namespace? Best regards
  15. J

    Proxmox api problem

    Hello, I have created a client area to automatically create a vm when a client order one. The code is written in php and I am using the zzantares proxmox php library. Here is the code of the creation in the proxmox side of my vm : public function createVM(string $id_service, int $userid, int...
  16. L

    Reused VMID vs. API current status

    Hi, the thing about reusing/uniqueness of VMID have been discussed several times here. But I have found strange behavior related to API. Imagine following scenario: 1) create VM having VMID = 100 and call /api2/json/nodes/<NODE>/qemu/100/status/current => data as object are returned 2) remove...
  17. C

    Missing VM info when calling API through Ansible

    Running Proxmox 8.2 on 3 nodes (bare metal) and deploying everything with Ansible. For some reason, it works fine for all VMs, except one. I deploy my VMs with Ansible using a Debian 12.5 genericcloud based template VM, except one VM that is deployed manually by cloning an Ubuntu 24.10 based...
  18. K

    Proxmox VE API and CORS problem

    Hello, I am trying to query the Proxmox API via an API key from a Blazor Webassembly app. I can't seem to get it work, I am always denied via CORS. I did try the two proposed solutions from this thread but none of them seem to work for me. I am quite new to web frontend development, so all...
  19. L

    POST 501 Not Implemented (GET API calls working, POST not)

    Hi. My client is using Proxmox VE 8.1.4. Currently, I have been in webapp development using Proxmox API to maintain cluster/nodes/qemus. I am authenticated via API Token of PVE user but I tried PVE username/password with ticket/cookie/CSRF prevention as well and following behaves the same...
  20. I

    sshkeys (ciuser) to an VM endpoint (format error)

    I receive following error from the Proxmox-API (v8.1.10): {"sshkeys": "invalid format - invalid urlencoded string: ssh-rsa%20AA.................................%20eom\n"}}, "msg": "Status code was 400 and not [200]: HTTP Error 400: Parameter verification failed.", "pragma": "no-cache"...