api

  1. 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...
  2. 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 =...
  3. 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...
  4. 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...
  5. 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"...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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
  11. L

    IPs im cluster per Rest API

    Hallo zusammen, meine Frage ist, ob es eine Möglichkeit per Proxmox Rest API alle hinterlegten IP Adressen im Cluster zu erhalten. Liebe Grüße und guten Rutsch!
  12. K

    Proxmox VE API 596 Broken pipe

    Hey guys, I've had this problem back in 2022 but the fix that someone gave me doesn't work anymore. Also reastarting the Server doesn't change anything. Getting the 596 broken Pipe error always happens when using a API call involving the guest agent. For Example...
  13. L

    PVE API: Power/ACPI Actions (Start/Shutdown/Reboot/Stop) PVE Error/OK unclear, GUI vs API, etc.

    Hi there, Just comparing the attached realities of what is reflected for an OK action and then a not-OK action, there are a few things I'm curious about: Rather than just firing and hoping that if the request went through OK, that it is actually OK, we need to know the error/status. Comparing...
  14. D

    [TUTORIAL] noVNC api

    Hello I've read through all threads regarding novnc integration with external program. Still I am unable to do it. Is there any proper thread links or external blogs that could help me? Also I'm getting the CORS issue. I know pveproxy is responsible for allowing hosts, I tried editing the...
  15. S

    API Endpoint move_disk rename volume filename

    To create vm volumes, we make use of: POST https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/storage/{storage}/content because that allows us to manually specify a filename like vm-<vmId>-<diskuuid>. Now, we need the option to move a disk from one vm to another, for which we...
  16. T

    Proxmox 8.0.4 SDN Questions

    Howdy everyone! I have a cluster where we want to use the VXLAN features of the SDN plugin (I know it is an experimental feature and we accept the associated risks). 1. Is there an API endpoint or other automation that others are using for this feature? 2. Are there any issues using SDN with HA?
  17. H

    Verbessungsvorschlag: API REST GET /api2/json/cluster/tasks > VMID

    Hallo zusammen, sobald man eine VM im Cluster verschiebt verschwinden auch deren alten Tasks, die Tasks sind also immer Node gebunden. Leider lässt sich über die API "GET /api2/json/cluster/tasks" keine VMID als Filter anhängen. [upid] =>...
  18. P

    Proxmox 8 API exec not working

    Hello everyone, we use the API in Proxmox quite extensively, especially the agent -> exec function to execute commands in VMs. After upgrading from Proxmox 7 to Proxmox 8, this specific function no longer works properly, we get specifically: array(2) { ["data"]=> NULL ["errors"]=>...
  19. R

    401 Unauthorized when trying to use Proxmox API in Python to clone VM

    Hey, I'm trying to clone VM from one node to the other node, using the following code in Python: data = {"name": "censored", # Name for the new cloned virtual machine "target": "censored2", # The target node where the clone will be created (target_node) } headers = { "Content-Type"...
  20. J

    Can not change CIDR param under IPSet through API using HTTP PUT

    Hello, I searched for some time and checked docs and API viewer here: API viewer - PUT - /api2/json/cluster/firewall/ipset/{name}/{cidr} But I'm not able to change my CIDR range when already exists using HTTP PUT API call. There is no issue create CIDR range (in already created IPSet...