Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 173050

How to get the status of Proxmox API?

$
0
0
I run this PHP code for $vmid = 101
Code:

$result = $pve2->post("/nodes/$svr_hostname/$svr_virt/$vmid/status/start");
The result is:
Code:

UPID:dsi-094117:000471B3:058A929A:5207DFD9:qmstart:101:root@pam:
I need to get the same result provided by Proxmox Web UI:
- When VMID 101 is not started then Proxmox Web UI says: OK
- When VMID 101 was already started then Proxmox Web UI says: ERROR: VM 101 already running

Any idea? Or should I check the node status before perform $pve2->post ?
What does the "000471B3:058A929A:5207DFD9" mean?

Viewing all articles
Browse latest Browse all 173050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>