api

  1. Q

    I had some trouble requesting the api

    hi , I had some trouble requesting the api, It returned a 401 error when I requested '/api2/json/nodes/{node}/qemu/{vmid}/vncwebsocket', Some details will be shown in screenshots: This is what it says in the official wiki: good,This request 200 It returns me the parameters I need for my next...
  2. D

    Change vm args using api + api token authorization schema

    Hello. I am trying to set vm vnc port using api. Previously when I was performing this using "PVEAuthCookie authorization schema" everything worked fine. Now I am trying to switch my script to "PVEAPIToken schema". Problem is that my request does not change args and return '{"data":null}'...
  3. A

    Proxmox API performance issues

    Hi everyone, I'm having some performance issues with the Proxmox API on my cluster. As the number of users and virtual machines grows, the API becomes slower and slower to respond. I've already checked that the hardware is top-notch and the servers have enough resources, and I've also checked...
  4. J

    [SOLVED] Proxmox VE API: provision LXC with two network interfaces

    Hello everyone! I am using the community.general.proxmox Ansible module to provision LinuX Containers into my Proxmox 7 cluster. At the moment I am using this value for the netif option: netif: {'net0':'name={{ proxmox_net_iface }},bridge={{ proxmox_net_bridge }},firewall=1,ip={{ ansible_host...
  5. M

    Guest API clarification (network-get-interfaces)

    Hi, This question is about https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces. Can someone explain to me what these represent? "statistics": { "rx-packets": 501361, "tx-bytes": 15465504, "tx-dropped": 0, "tx-errs": 0, "rx-errs": 0...
  6. U

    [SOLVED] How to Copy/Paste from API Documentation

    How can I copy and paste easily from the "Parameters" section of the API documentation? Here is an example. Navigate to this page of the API docs (they're all the same, and this is just one example): https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/config I can...
  7. U

    [SOLVED] How to Create an Authentication Ticket via REST API?

    I can see in the API documentation where the endpoint is for creating an authentication ticket: https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/access/ticket I don't see anything in the main documentation describing how to use the REST API. I have provided the username and password...
  8. J

    [SOLVED] Injecting QEMU SSH keys via the API

    Hello, forum! I am running into a bit of trouble. I am using the API to configure a VM (PUT `/api2/json/nodes/{node}/qemu/{vmid}/config`, as documented here). I receive the following error, only when the 'sshkeys' parameter is present: HTTP/1.1 400 Parameter verification failed. If I omit the...
  9. B

    How do I use the Proxmox API with nodejs?

    How can I use the proxmox api to create and manage VM's with nodejs?
  10. E

    [SOLVED] API : User does not doe get responses, while being admin

    The issue is kind of strange: I'm using a service account to provision template using packer. This user, for debug purposes, is admin (is in a "service" group that has "/" administrator permissions) I created a token for it with NO privilege separation, that works fine through packer (tho I am...
  11. S

    Api command in node

    Hello, I would know how to execute this command 'qm set 123 --ipconfig0 ip=10.0.10.123/24,gw=10.0.10.1' in a node with the API. If you know how to do it differently (With the API) I would know it too. It's to configure the ipconfig in cloud in it on a VM I just deploy (with the API)
  12. U

    [SOLVED] Hashicorp Vault Secrets Plugin for Proxmox API

    I think there would be value in there being a Proxmox secrets plugin for Hashicorp's Vault. To understand what this feature would do, I am going to use the AWS secrets plugin as an example. The Proxmox feature would work the same way structurally. Vault is a secure storage system for...
  13. D

    Disable SSL certificate verification

    Hello, I want to disable SSL certificate verification on my proxmox. The thing is I'm working on developing a script with API and I'm unable to access it because proxmox uses https and unfortunately my software has only access for http. Another thing I want to add is using postman I am able to...
  14. C

    Proxmox and Zabbix

    I have tried everything under the sun to get this to work, from PSK configuration to API Token, etc..., but nothing works, and this is just trying to add the PVE host, not a VM. Please let me know if you need any further information. I would really like to get this working.
  15. J

    API funktioniert nicht Anfrage von CORS geblockt

    Also ich bekomme folgende Meldung wenn ich auf die API zugreifen will egal auf welche Art "Access to XMLHttpRequest at 'https://censored-ip:8006/api2/json/version' from origin 'https://example.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check...
  16. S

    property is not defined in schema and the schema does not allow additional properties, while attempting start/stop/reboot.

    Hi Team, We are doing start/stop/reboot, through the curl API, (/nodes/proxmox25/qemu/{$vmid}/status/start /nodes/proxmox25/qemu/{$vmid}/status/stop /nodes/proxmox25/qemu/{$vmid}/status/reboot) and it is throwing the below error, {"data":null,"errors":{"password":"property is not defined in...
  17. H

    Proxmox VE API to create cluster

    Hi! I'm trying to use Proxmox VE API to init a cluster, but I've failed to find such API. So how can I find such API?(I want to use python to call such API)
  18. K

    Proxmox VE API: 596 Broken Pipe

    Hello guys, first it might be good to know what I'm trying to archieve with my program: Currently I'm building a Backend for a Hosting Company, wich has to create and Manage multiple Proxmox KVM Servers. For changing hostname etc. etc. we're using the guest-agent wich is also documented in the...
  19. M

    enabling qemu guest agent affects api call

    Greetings, I have a personal proxmox setup where I have 5 Qemu VPS. I am trying to enable qemu guest agent in one of the VPS via api calls which works fine, but when qemu guest agent is enabled, my network config api calls stops working. My script does the following, 1> API call to server ->...
  20. C

    Proxmox API - Post lxc - IpV6=auto

    Good evening, I wanted to try to POST a lxc with the api proxmox and putting in the net0 that: "net0":"name=vmbr0,ip6=auto,gw6=2001:470:c8fb:ffff::,gw=10.0.0.1,ip=10.0.0.23/24,rate=100" But when it creates my lxc, I look in the network tab and I have this: It does not replace auto with ipv6...

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!