api

  1. K

    Crashing API PBS 4.0.11

    Hi, I’m running into a rather strange and specific issue. I have the latest version of PBS 4.0.11 installed on bare metal. It’s connected to an S3 endpoint as the main storage and an NFS share used as cache. The whole setup is configured correctly and works perfectly fine for single backups...
  2. D

    Trouble setting net0 config via HTTP API (no sdn vnet ID specified error)

    Hi All - I am trying to use the HTTP API to change the vlan tag on net0 for a VM. I'm banging my head against the wall trying to get this seemingly simple command to work. I'm hoping someone has seen this issue and can help out. Example curl command: curl -X PUT -H 'Authorization...
  3. S

    API permission for user and only his pool

    What we are trying to achieve is to be able to give permission to users to clone,create,destroy VMs over the API in their only pool only. So the goal is they see and do only what is in their own pool. We have achieved that in the UI as giving them permission to: Path Role...
  4. D

    [SOLVED] PBS API keeps returning "authentication failed - invalid token name"

    Hi All, I am using the PVE api without any issue so i am familiar with the basics of creating an API token and using it via tools such as cURL or other command line and scripting methods. However, when I attempt to replicate how I do this with PVE in order to do it with PBS (Backup Server...
  5. T

    PVE API Token Timeout - Any way to configure Token lifetime? Veeam PVE Plugin issues

    Hi All, Been running into a problem with restores using Veeam as there appears to be possible issues with their plugin renewing tickets properly after the two-hour expiry during long restores. I have a case open with Veeam for that, but I am looking for a workaround. I skimmed the PVE API...
  6. E

    Creating a SDN fabric node with the API

    Hi. I'm working on automating my homelab setup with Ansible and the PVE API. I'm using the new SDN fabrics in PVE 9, and I've been able to set up my OSPF fabric manually. However, when I try to do the same with the API I get a bit stuck. I'm able to create a fabric node if I don't specify...
  7. M

    [SOLVED] PBS 4 having problems with API tokens?

    I am using the PBS integration of Homepage (https://gethomepage.dev) to show a widget with an overview of PBS status. This uses an API Token for authentication. I have it running on PBS 3 with no problem and now have set up a new PBS 4 instance. I created a user apiuser@pbs, gave it Audit...
  8. K

    Access proxmox API with/without VPN

    I have a Proxmox set up and it is accessible only through a special VPN. Inside the Proxmox I have a VM with a gitlab runner. I want to use the gitlab runner to provision new VMs to proxmox using Terraform through the Proxmox API. I thought that if I created the VM inside the proxmox it would...
  9. D

    API endpoint help

    Hello, I created an API token for the root@pam user, and I am able to successfully make other requests. However, when I attempt to make a linked clone using the following API endpoint: https://192.168.0.2:8006/api2/json/nodes/proxmox/qemu/107/clone I receive the following response: {...
  10. I

    [SOLVED] [OIDC] Trouble using OpenID Connect via the Proxmox API

    Hello everyone, I’m relatively new to Proxmox and I’m working on a VDI platform that uses Proxmox to handle the VMs. I’ve set up Keycloak for SSO and the login flow works perfectly from the Proxmox web UI. Now I’m trying to replicate that same OpenID Connect flow on my own website using the...
  11. D

    Deleting backups via api - Unexpected Content error

    I am trying to delete backups for a specific vmid. here is the code: curl --location --request DELETE 'http://pve0.mgmt.local:8006/api2/json/nodes/pve0/storage/tempbackup/prunebackups' \ --header 'Authorization: PVEAPIToken=api@pve!apiToken=redacted' \ --header 'Content-Type: application/json'...
  12. K

    Is double vGPU AND normal pass-through possible? (PVE use case architecture questions)

    Hi guys! I was given a Dell R730, 2x Xeons 2698 v4, 40 physical cores in total, 128gb RAM, and 2 Tesla P40s, which are natively vGPU capable, with the task to build a multi-purpose machine. I am planning to (note, it is only a concept, and could change): normal mode in PVE...
  13. K

    API - Get VM gen id

    Hey, I need to map all of our VMs across several proxmox installations, and need to discover the vmgenid for a virtual machine. Given that VMID 100 can exists in all our clusters, i cant really rely on that as the unique identifier for my usecase. For now i am looping through each of the VMs...
  14. K

    vTPM/API correlation

    I'm looking for the equivalent of https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTpmEkPub.html to be able to connect what the VM sees of the TPM with metadata available in the Proxmox API in a provable way. Is there a way to do that?
  15. A

    Proxmox API

    Is it possible to disable webgui in ProxmoxVE and use only proxmox api and cli? Also, is it possible to install only the proxmox api function etc. on ubuntu etc.?
  16. M

    API for managing apt repos seems incoherent

    Suppose I want to enable/disable the "test" repository via the API, looking here this should be or in fact is possible: https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/apt/repositories Except: Required params are index, node, path. Let's look at the output from `get /nodes/$(hostname...
  17. C

    How to secure VM access via spice?

    Dear ALL, in my Library I have a LAN where my proxmox infrastructure runs, a DMZ and a public WIFI network. I would like to let our public kiosk to access to specific VM on proxmox (sort of VDI). I have experimented many solutions but the problem is still on secure side. I will try to explain...
  18. R

    API Delete Option missing on domain

    Hello, I was review api guide about PMG. On that endpoint for example /config/ruledb/who/ogroup/domain it is not possible to delete a domain. It is in general not possible to delete a entry from a ogroup only add or edit. did some one know if this only not describe or really not possible and...
  19. N

    API bug?

    pretty-name says Windows 10, but it is Windows 11. Is this a bug? Anyone else seeing this. Google searching gave me nothing. BR Kasper
  20. D

    Help with api permissions

    Here is the identity & permissions I have setup. pveum user add foundry@pve --password "<redacted>" --email "admin@foundryserver.com" pveum user token add foundry@pve foundryApi --comment "API token for Foundry VM management" pveum role add FoundryApiRole --privs...