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

Sahil

Member
Jun 14, 2022
32
1
6
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 schema and the schema does not allow additional properties","realm":"property is not defined in schema and the schema does not allow additional properties","username":"property is not defined in schema and the schema does not allow additional properties"}

We request you to please check what may be the issue and help us with this,

Kindly do the needful

Thanks & Regards
Sahil Ahmed F
 
Hi,
it seems like you are passing along request parameters username,password and realm that should not be there when sending a request to those API endpoints.

You can either authenticate first and then send along the ticket as a cookie, but the recommended way is using API Tokens, see here for the documentation.
 

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!