api

  1. 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...
  2. M

    API Special Cases: List of endpoints for root and PAM users only

    The API viewer [1] cannot be searched for the necessary permissions of the API endpoints. Wanted to know which API endpoints need a special user, so that only in these special cases those users are used (especially avoiding root). So I checked all endpoints of the /nodes API path and their...
  3. R

    Get CPU model name using REST API

    I use Proxmox REST API to get info about hypervisors. I am able to iterate [nodes|storages|qemu] and get basic info about every item. Like this is path for storages: $path = "/nodes/$nodeId/storage"; But I can't find the exact CPU model name like 24 x Intel(R) Xeon(R) CPU E5-2620. Can somebody...
  4. I

    Using The MailGateway API

    Hey Guys, I am having a very hard time understanding the proxmox mail gateway's api calls... I am 99% sure it's just me, so hopefully someone can help me? How can I call for example the login function, and the GET /api2/json/config/domains/ function afterwards? Also do I need to allow an IP...
  5. D

    Proxmox VE U2F with Application password

    Hi, We want to enforce usage of U2F on our proxmox datacenter. Hovewer we still do need to access API for 1 of our accounts (api account using proxmoxer for deployment) to deploy CTs. Is thera a way to generate something like application password and enforce U2F for all users?
  6. I

    RemoteDisconnected('Remote end closed connection without response')

    HI, I do have a python script which use pyproxmox. This script shows quite often an ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',)),) Error. And yes we do have GUI connection abort issues too. Is there any know...
  7. G

    [SOLVED] agent/exec-status and agent/file-read issue

    Aloha! Accoding to https://pve.proxmox.com/pve-docs/api-viewer/ api methods "GET /api2/json/nodes/{node}/qemu/{vmid}/agent/exec-status" and "GET /api2/json/nodes/{node}/qemu/{vmid}/agent/file-read" are using request type GET, there no present request type POST for this commands. However, for...
  8. D

    [SOLVED] Proxmox API: Unable to create VM - Already exists on node

    I am not sure whether this is the right place to address this, but we can figure that out together :) When trying to create a VM via the API following error is returned: 500 unable to create VM 109 - CT 109 already exists on node '' The PVE version I am using is: pve-manager/6.1-3/37248ce6...
  9. S

    AnsiballZ_proxmox_kvm.py and API's

    This file is retained in ~/.ansible/tmp/ansible-tmp-########.##-########/AnsiballZ_proxmox_kvm.py Using it from an Ansible playbook from the module ansible.modules.proxmox_kvm producing the error ending the run without a VM create... creation of qemu VM centos-static with vmid 137 failed...
  10. D

    PHP API VncProxy und VncWebSocket

    Guten Tag, ich bin mittlerweile mit meinen nerven am Ende. Ich versuche gerade über meinen WebServer eine VNC Verbindung zum Proxmox Server aufzubauen. Steuerungen wie neustarten und stoppen von VMs mittels der Api funktioniert. Allerdings das einbinden der VNC geht nicht. Aber ich verstehe...
  11. W

    Proxmox API + Postman

    Hi guys. I'm starting with proxmox, i need authenticate with PVEAuthCookie in Postam, but he return Status: 401 No ticket. In authentication in POST I succeed but in GET i have error. Can yout help-me? Login with success! Return nodes with error
  12. U

    [SOLVED] Howto add a VM to an pool with the API?

    Hi, I want simply add an new created VM with pvesh to an pool (like "pvesh add pools/Dev -members 123"). OK, pvesh don't know add - but my try with set are not successfull. How is the right syntax? Udo
  13. B

    Excecute commands on each node using pvesh

    I want to execute several commands to each one of my nodes, looking at Proxmox API is possible to send commands to a node using: pvesh create /nodes/{node}/execute --commands '["apt update", "apt upgrade pkg1, pkg2, pkg3"]' However I can't seem to find a proper way to create the JSON. Can...
  14. A

    LXC Options via API

    Hi, Is there a way to change the "low-level" LXC options via API? https://pve.proxmox.com/wiki/Linux_Container#_file_format I could not find any suitable options under path "/nodes/{node}/lxc/{vmid}/config". Thanks, Andreas
  15. R

    Creating snippets using PVE API

    Hello, Thank you for Proxmox! I'm running 5.4-3 in a test lab right now. I am trying to use the `customci` configuration parameter for VM's, so I can provide arbitrary `user-data` in the cloud-init configuration. For that, I see that the new snippet feature is the way to go if I understood...
  16. I

    HAProxy for API calls ?

    We do have a lot of API calls from different external applications. Each currently pointing to a master host which we expect to have as stable as possible. Should we put a haproxy beforehand to have to the api calls distributed over the different hosts ? If the application would be able to get...
  17. Y

    Give user access to a specific vm using API

    I'm working on a project for a professor where I script the creation of a bunch of users an make 3VMS for each of them . The catch is each user should only be able to access their own VMs but i can only use API requests to make this happen. I want to add the following roles to each user on each...
  18. I

    Bug with CLI pvesh

    Hello i have problems with the command "pvesh create /nodes/{node}/migrateall". When i try from pve01: "pvesh create /nodes/pve03/migrateall -target pve01 -maxworkers 1 -vms 501" I can see the task and the migration in the webgui but in the cli i get following error: From pve03 the command...
  19. M

    API - Add user to VM as Administrator

    Hello. I am trying to integrate Proxmox API into a PHP based tool we have, and I have been able to create a virtual machine, start it up and create a user. I want to add the created user to the created VM as an administrator of that machine. $fields = array( 'user' =>...
  20. D

    Why does maxdisk only account boot disk ?

    I'm querying PVE API to monitor resource usage with Zabbix. And I'm wondering, why does the maxdisk prop (in /cluster/resources or /pools/<pool name> for example) only accounts the size of the boot disk ? Wouldn't it make more sense to sum all the disks attached to the VM / attached to VM of the...

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!