vzctl --devnodes commands through the API

telemagic

New Member
Jan 20, 2013
18
2
1
Hi guys

I am in the process of having a module written to automate the creation of OpenVZ containers on my Proxmox cluster when a customer places an order on my website.

Everything is working well, however for certain products we sell we have to map a device.

The command from the command line we use is

vzctl set 101 --devnodes dahdi/pseudo:rw --save

Is there any way of performing the same from the API? I have looked through the API documentaion and cannot seem to see anything.

Any help or pointers would be appreciated. Dont really want to have to make an SSH connection and call the command from the command line if we can help it.

Regards
 

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!