I've question about API proxmox

totae

New Member
May 27, 2023
10
1
3
Hello,

I want get api all vm running and stop in cluster but i don't see in document.
1685247320149.png

Anyone can help.

Best Regards,
 
Hello,

Sorry i newbie, Do you can help provide path for that ?

Bestregards,
 
Code:
root@pve7test1:~/scripts# more 1_cookie.api
curl --silent --insecure --data "username=root@pam&password=password" \
 https://localhost:8006/api2/json/access/ticket\
| jq --raw-output '.data.ticket' | sed 's/^/PVEAuthCookie=/' > .cookie

root@pve7test1:~/scripts# more 2_token.api
curl --silent --insecure --data "username=root@pam&password=password" \
 https://localhost:8006/api2/json/access/ticket \
| jq --raw-output '.data.CSRFPreventionToken' | sed 's/^/CSRFPreventionToken:/' > .csrftoken

root@pve7test1:~/scripts# more 3_cluster_res.api
curl  --insecure --cookie "$(<.cookie)" https://localhost:8006/api2/json/cluster/resources | jq '.'


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: UdoB and leesteken

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!