Get VM status by vmid
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/{vmid} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/{vmid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/{vmid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"vmid": 123,
"name": "<string>",
"status": "running",
"cpu": 123,
"cpus": 123,
"mem": 123,
"maxmem": 123,
"disk": 123,
"maxdisk": 123,
"uptime": 123,
"node": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Cloud
Get VM status by vmid
Live Proxmox status for this service’s VM. vmid must be the service’s own vmid; anything else gets the same 404 as a
missing server, so vmids can’t be enumerated. Prefer GET /v1/cloud/, which doesn’t need the vmid.
GET
/
v1
/
cloud
/
{id}
/
{vmid}
Get VM status by vmid
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/{vmid} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/{vmid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/{vmid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"vmid": 123,
"name": "<string>",
"status": "running",
"cpu": 123,
"cpus": 123,
"mem": 123,
"maxmem": 123,
"disk": 123,
"maxdisk": 123,
"uptime": 123,
"node": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Service id of the cloud server.
The server's own Proxmox vmid. Any other number is answered 404.