Hi!
I wrote a small bash script in order to shutdown a Proxmox VE remotely by using an API call. The invocation is this one:
This works and I am happy with it.
Now I am trying to do the same thing for a Proxmox Backup server. I created a token and the first thing that I noticed is that there is a mismatch between the docs and what I find in the UI. According to the docs there should be a path like
Assuming that the right permission path is
but I keep getting
So am I missing something? Is the invocation to Proxmox Backup server different than the one for Proxmox VE?
Thanks
I wrote a small bash script in order to shutdown a Proxmox VE remotely by using an API call. The invocation is this one:
Bash:
curl -X POST -H "Authorization: PVEAPIToken=root@pam!TOKEN=TOKEN_VALUE" -H "Content-Type: application/x-www-form-urlencoded" -d "command=shutdown" https://proxmoxve.DOMAIN.COM/api2/json/nodes/pve/status
This works and I am happy with it.
Now I am trying to do the same thing for a Proxmox Backup server. I created a token and the first thing that I noticed is that there is a mismatch between the docs and what I find in the UI. According to the docs there should be a path like
nodes/{node}/status
, while on the UI I only see thisAssuming that the right permission path is
/system/status
, I created a token and I am trying to use it like I did for Proxmox VE, for example:
Bash:
curl -X POST -H "Authorization: PVEAPIToken=root@pam!TOKEN=TOKEN_VALUE" -H "Content-Type: application/x-www-form-urlencoded" -d "command=shutdown" https://proxmoxbs.DOMAIN.COM/api2/json/nodes/pbs/status
but I keep getting
authentication failed - no authentication credentials provided.
. I am pretty sure the path is correct because if I manually open the respective path while logged in a browser I can see the correct response.So am I missing something? Is the invocation to Proxmox Backup server different than the one for Proxmox VE?
Thanks