Hi,
I want to start a LXC using the API but that isn't working and I can't see why. I'm probably just too stupid and missing something easy.
I created a token with admin privileges for testing.
With
With
But using
Someone with more API experience can give me a hint what I'm missing?
I want to start a LXC using the API but that isn't working and I can't see why. I'm probably just too stupid and missing something easy.
I created a token with admin privileges for testing.
With
pvesh create /nodes/j3710/lxc/133/status/start
I can start my LXC.With
curl -k -H 'Authorization: PVEAPIToken=root@pam!test=<mySecret>' https://192.168.43.40:8006/api2/json/nodes/j3710/lxc/133/status/current
I can poll informations about the LXC so I guess authentification works fine.But using
curl -k -X Post -H 'Authorization: PVEAPIToken=root@pam!test=<mySecret>' https://192.168.43.40:8006/api2/json/nodes/j3710/lxc/133/status/start
nothing happens. Command just finishes without any complains but the LXC won't start.Someone with more API experience can give me a hint what I'm missing?