about use post api agent exec trouble

haiwan

Active Member
Apr 23, 2019
234
1
38
36
Hi, support, we try more times post
HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/agent/exec

all failed. but we GET is ok. so i wish give me guide about use post visit api agent exec example.
tks
 
you need to provide more details
- what API request are you making (full request including headers/parameters, you can censor the actual ticket/token values of course!)
- which version are you running (pveversion -v)
- does the command work with qm guest cmd?
 
you need to provide more details
- what API request are you making (full request including headers/parameters, you can censor the actual ticket/token values of course!)
- which version are you running (pveversion -v)
- does the command work with qm guest cmd?
HTML:
root@pvehk:~# pveversion -v
proxmox-ve: 6.2-1 (running kernel: 5.3.10-1-pve)
pve-manager: 6.2-11 (running version: 6.2-11/22fb4983)
pve-kernel-5.4: 6.2-5
pve-kernel-helper: 6.2-5
pve-kernel-5.3: 6.1-6
pve-kernel-5.4.55-1-pve: 5.4.55-1
pve-kernel-5.4.44-2-pve: 5.4.44-2
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.10-1-pve: 5.3.10-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.4
libpve-access-control: 6.1-2
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.2-1
libpve-guest-common-perl: 3.1-2
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.2-6
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.2-10
pve-cluster: 6.1-8
pve-container: 3.1-13
pve-docs: 6.2-5
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-2
pve-firmware: 3.1-2
pve-ha-manager: 3.1-1
pve-i18n: 2.1-3
pve-qemu-kvm: 5.0.0-13
pve-xtermjs: 4.7.0-2
qemu-server: 6.2-14
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.4-pve1
tks reply, we try use post running this
qm guest exec 999 kvm ipv4 192.168.1.10 255.255.255.0
1609238606188.png
on proxmox web gui we use this config successfull,
but we use api post try all failed.
 
Last edited:
you still didn't include the actual API request you are trying..
 

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!