Hypervisor Groups

Retrieve a hypervisor groups resources

GET/compute/hypervisors/groups/{hypervisorGroupId}/resources

Resource usage for every hypervisor in the group: server counts, CPU, memory and storage allocation against each hypervisor's limits.

Request

Authorization
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer ********************
Path Params#
hypervisorGroupIdinteger#required

A valid hypervisor group ID as shown in VirtFusion.

Example: 1
Query Params#
resultsinteger#

Number of results to return. Range between 1 and 200. Defaults to 20.

Example: 20
pageinteger#

Page of results to return, starting at 1. The response carries current_page, last_page, per_page, total and the next and previous page URLs.

Range: at least 1
Example: 1

Request Code Samples

curl --location --request GET 'https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1' \
--header 'Authorization: Bearer <token>' \
--header 'Accept: application/json'
wget --quiet --output-document=- \
  --method=GET \
  --header='Authorization: Bearer <token>' \
  --header='Accept: application/json' \
  'https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1'
http GET 'https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1' \
  'Authorization: Bearer <token>' \
  'Accept: application/json'
const response = await fetch("https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1", {
    method: "GET",
    headers: {
        "Authorization": "Bearer <token>",
        "Accept": "application/json",
    },
});

const data = await response.json();
console.log(response.status, data);
import axios from "axios";

const response = await axios({
    method: "get",
    url: "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1",
    headers: {
        "Authorization": "Bearer <token>",
        "Accept": "application/json",
    },
});

console.log(response.status, response.data);
const https = require("https");

const req = https.request({
    hostname: "cp.domain.com",
    path: "/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1",
    method: "GET",
    headers: {
        "Authorization": "Bearer <token>",
        "Accept": "application/json",
    },
}, (res) => {
    let data = "";
    res.on("data", (chunk) => (data += chunk));
    res.on("end", () => console.log(res.statusCode, JSON.parse(data)));
});

req.on("error", (err) => console.error(err));
req.end();
import requests

url = "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1"
headers = {
    "Authorization": "Bearer <token>",
    "Accept": "application/json",
}

response = requests.request("GET", url, headers=headers)

print(response.status_code)
print(response.json())
import http.client
import json

conn = http.client.HTTPSConnection("cp.domain.com")
headers = {
    "Authorization": "Bearer <token>",
    "Accept": "application/json",
}

conn.request("GET", "/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1", None, headers)
response = conn.getresponse()

print(response.status)
print(json.loads(response.read()))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => array(
        'Authorization: Bearer <token>',
        'Accept: application/json'
    ),
));

$response = curl_exec($curl);
curl_close($curl);

echo $response;
<?php

require 'vendor/autoload.php';

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('GET', 'https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1', [
    'headers' => [
        'Authorization' => 'Bearer <token>',
        'Accept' => 'application/json',
    ],
]);

echo $response->getStatusCode() . "\n";
echo $response->getBody();
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    url := "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1"
    req, _ := http.NewRequest("GET", url, nil)
    req.Header.Add("Authorization", "Bearer <token>")
    req.Header.Add("Accept", "application/json")

    res, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer res.Body.Close()

    body, _ := io.ReadAll(res.Body)
    fmt.Println(res.StatusCode, string(body))
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();

        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1"))
            .header("Authorization", "Bearer <token>")
            .header("Accept", "application/json")
            .method("GET", HttpRequest.BodyPublishers.noBody())
            .build();

        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.statusCode());
        System.out.println(response.body());
    }
}
import okhttp3.*;

public class Main {
    public static void main(String[] args) throws Exception {
        OkHttpClient client = new OkHttpClient();

        Request request = new Request.Builder()
            .url("https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1")
            .method("GET", null)
            .addHeader("Authorization", "Bearer <token>")
            .addHeader("Accept", "application/json")
            .build();

        try (Response response = client.newCall(request).execute()) {
            System.out.println(response.code());
            System.out.println(response.body().string());
        }
    }
}
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;

var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", "<token>");
request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
require "net/http"
require "json"

uri = URI("https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <token>"
request["Accept"] = "application/json"

response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
  http.request(request)
end

puts response.code
puts JSON.pretty_generate(JSON.parse(response.body))
import Foundation

var request = URLRequest(url: URL(string: "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1")!)
request.httpMethod = "GET"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Accept")

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    guard let data = data, error == nil else { print(error ?? "request failed"); return }
    print((response as! HTTPURLResponse).statusCode)
    print(String(data: data, encoding: .utf8) ?? "")
}
task.resume()
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
use reqwest::blocking::Client;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let response = client
        .request(reqwest::Method::GET, "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1")
        .bearer_auth("<token>")
        .header("Accept", "application/json")
        .send()?;

    println!("{}", response.status());
    let json: serde_json::Value = response.json()?;
    println!("{}", serde_json::to_string_pretty(&json)?);
    Ok(())
}
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, tokio = { version = "1", features = ["full"] }, serde_json = "1"
use reqwest::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let response = client
        .request(reqwest::Method::GET, "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1")
        .bearer_auth("<token>")
        .header("Accept", "application/json")
        .send()
        .await?;

    println!("{}", response.status());
    let json: serde_json::Value = response.json().await?;
    println!("{}", serde_json::to_string_pretty(&json)?);
    Ok(())
}
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient
import okhttp3.Request

fun main() {
    val client = OkHttpClient()
    val request = Request.Builder()
        .url("https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1")
        .method("GET", null)
        .addHeader("Authorization", "Bearer <token>")
        .addHeader("Accept", "application/json")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.code)
        println(response.body?.string())
    }
}
// pubspec.yaml: http: ^1.2.0
import 'dart:convert';
import 'package:http/http.dart' as http;

Future<void> main() async {
  final request = http.Request('GET', Uri.parse('https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1'));
  request.headers['Authorization'] = 'Bearer <token>';
  request.headers['Accept'] = 'application/json';

  final response = await http.Response.fromStream(await request.send());
  print(response.statusCode);
  print(const JsonEncoder.withIndent('  ').convert(jsonDecode(response.body)));
}
#include <stdio.h>
#include <curl/curl.h>

int main(void) {
    CURL *curl = curl_easy_init();
    if (!curl) return 1;

    struct curl_slist *headers = NULL;
    headers = curl_slist_append(headers, "Authorization: Bearer <token>");
    headers = curl_slist_append(headers, "Accept: application/json");

    curl_easy_setopt(curl, CURLOPT_URL, "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1");
    curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

    CURLcode result = curl_easy_perform(curl);
    if (result != CURLE_OK) fprintf(stderr, "%s\n", curl_easy_strerror(result));

    curl_slist_free_all(headers);
    curl_easy_cleanup(curl);
    return result == CURLE_OK ? 0 : 1;
}
$headers = @{
    Authorization = "Bearer <token>"
    Accept        = "application/json"
}

$response = Invoke-RestMethod -Uri "https://cp.domain.com/api/v1/compute/hypervisors/groups/1/resources?results=20&page=1" -Method GET -Headers $headers
$response | ConvertTo-Json -Depth 10
GET /api/v1/compute/hypervisors/groups/1/resources?results=20&page=1 HTTP/1.1
Host: cp.domain.com
Authorization: Bearer <token>
Accept: application/json

Responses

200

A page of results.

#
application/json
Pagination & object
current_pageinteger#
first_page_urlstring#
frominteger#
last_pageinteger#
last_page_urlstring#
next_page_urlstring#nullable
pathstring#
per_pageinteger#
prev_page_urlstring#nullable
tointeger#
totalinteger#
HypervisorGroupResources fields
hypervisorobject#
fields
idinteger#
namestring#
enabledboolean#
prohibitboolean#
acceptboolean#
commissionedboolean#
resourcesobject#
fields
serversobject#
fields
unitsstring#
maxinteger#
allocatedinteger#
freeinteger#
percentinteger#nullable
memoryobject#
fields
unitsstring#
maxinteger#
allocatedinteger#
freeinteger#
percentnumber#
cpuCoresobject#
fields
unitsstring#
maxinteger#
allocatedinteger#
freeinteger#
percentnumber#
localStorageobject#
fields
enabledinteger#
namestring#
storageTypeinteger#
unitsstring#
maxinteger#
allocatedinteger#
freeinteger#
percentnumber#
otherStoragearray[object]#
item fields
idinteger#
namestring#
enabledinteger#
pathstring#nullable
unitsstring#
storageTypeinteger#
isDatastoreboolean#
maxinteger#
allocatedinteger#
freeinteger#
percentnumber#
networkobject#
fields
totalobject#
fields
ipv4object#
fields
freeinteger#
Example
{
    "current_page": 1,
    "data": [
        {
            "hypervisor": {
                "id": 1,
                "name": "PHV 1 (RED)",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 1,
                    "free": -1,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 6004,
                    "allocated": 4096,
                    "free": 1908,
                    "percent": 68.2
                },
                "cpuCores": {
                    "units": "#",
                    "max": 4,
                    "allocated": 3,
                    "free": 1,
                    "percent": 75
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 90,
                    "allocated": 25,
                    "free": 65,
                    "percent": 27.8
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 470
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 2,
                "name": "PHV 2 (BLUE)",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 1,
                    "free": -1,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 10000,
                    "allocated": 1024,
                    "free": 8976,
                    "percent": 10.2
                },
                "cpuCores": {
                    "units": "#",
                    "max": 28,
                    "allocated": 1,
                    "free": 27,
                    "percent": 3.6
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 150,
                    "allocated": 10,
                    "free": 140,
                    "percent": 6.7
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 470
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 3,
                "name": "BHV 9",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 2,
                    "free": -2,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 27913,
                    "allocated": 2048,
                    "free": 25865,
                    "percent": 7.3
                },
                "cpuCores": {
                    "units": "#",
                    "max": 64,
                    "allocated": 2,
                    "free": 62,
                    "percent": 3.1
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 400,
                    "allocated": 20,
                    "free": 380,
                    "percent": 5
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 470
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 4,
                "name": "BHV 8",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 0,
                    "free": 0,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 27913,
                    "allocated": 0,
                    "free": 27913,
                    "percent": 0
                },
                "cpuCores": {
                    "units": "#",
                    "max": 16,
                    "allocated": 0,
                    "free": 16,
                    "percent": 0
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 1000,
                    "allocated": 0,
                    "free": 1000,
                    "percent": 0
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 0
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 8,
                "name": "BHV 3",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 2,
                    "free": -2,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 27913,
                    "allocated": 2048,
                    "free": 25865,
                    "percent": 7.3
                },
                "cpuCores": {
                    "units": "#",
                    "max": 120,
                    "allocated": 3,
                    "free": 117,
                    "percent": 2.5
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 1,
                    "units": "GB",
                    "max": 2000,
                    "allocated": 20,
                    "free": 1980,
                    "percent": 1
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 470
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 9,
                "name": "BHV 4",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 0,
                    "free": 0,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 13684,
                    "allocated": 0,
                    "free": 13684,
                    "percent": 0
                },
                "cpuCores": {
                    "units": "#",
                    "max": 4,
                    "allocated": 0,
                    "free": 4,
                    "percent": 0
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 1000,
                    "allocated": 0,
                    "free": 1000,
                    "percent": 0
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 0
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 10,
                "name": "BHV 5",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 0,
                    "free": 0,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 13684,
                    "allocated": 0,
                    "free": 13684,
                    "percent": 0
                },
                "cpuCores": {
                    "units": "#",
                    "max": 4,
                    "allocated": 0,
                    "free": 4,
                    "percent": 0
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 1000,
                    "allocated": 0,
                    "free": 1000,
                    "percent": 0
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 0
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 11,
                "name": "BHV 6",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 1,
                    "free": -1,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 27913,
                    "allocated": 1024,
                    "free": 26889,
                    "percent": 3.7
                },
                "cpuCores": {
                    "units": "#",
                    "max": 16,
                    "allocated": 1,
                    "free": 15,
                    "percent": 6.3
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 1000,
                    "allocated": 10,
                    "free": 990,
                    "percent": 1
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 478
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 12,
                "name": "BHV 7",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 1,
                    "free": -1,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 27913,
                    "allocated": 1024,
                    "free": 26889,
                    "percent": 3.7
                },
                "cpuCores": {
                    "units": "#",
                    "max": 16,
                    "allocated": 1,
                    "free": 15,
                    "percent": 6.3
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 0,
                    "units": "GB",
                    "max": 1000,
                    "allocated": 10,
                    "free": 990,
                    "percent": 1
                },
                "otherStorage": [],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 478
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 13,
                "name": "Ceph Hypervisor 1",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 5,
                    "free": -5,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 24000,
                    "allocated": 7168,
                    "free": 16832,
                    "percent": 29.9
                },
                "cpuCores": {
                    "units": "#",
                    "max": 64,
                    "allocated": 8,
                    "free": 56,
                    "percent": 12.5
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 1,
                    "units": "GB",
                    "max": 100,
                    "allocated": 50,
                    "free": 50,
                    "percent": 50
                },
                "otherStorage": [
                    {
                        "id": 1,
                        "name": "Ceph RBD",
                        "enabled": 0,
                        "path": null,
                        "units": "GB",
                        "storageType": 2,
                        "isDatastore": true,
                        "max": 10000,
                        "allocated": 35,
                        "free": 9965,
                        "percent": 0.4
                    },
                    {
                        "id": 4,
                        "name": "Ceph FS",
                        "enabled": 0,
                        "path": null,
                        "units": "GB",
                        "storageType": 2,
                        "isDatastore": true,
                        "max": 558349385,
                        "allocated": 5,
                        "free": 558349380,
                        "percent": 0
                    }
                ],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 503
                        }
                    }
                }
            }
        },
        {
            "hypervisor": {
                "id": 14,
                "name": "Ceph Hypervisor 2",
                "enabled": true,
                "prohibit": false,
                "accept": false,
                "commissioned": true
            },
            "resources": {
                "servers": {
                    "units": "#",
                    "max": 0,
                    "allocated": 3,
                    "free": -3,
                    "percent": null
                },
                "memory": {
                    "units": "MB",
                    "max": 24000,
                    "allocated": 3072,
                    "free": 20928,
                    "percent": 12.8
                },
                "cpuCores": {
                    "units": "#",
                    "max": 64,
                    "allocated": 3,
                    "free": 61,
                    "percent": 4.7
                },
                "localStorage": {
                    "enabled": 1,
                    "name": "Local (Default mountpoint)",
                    "storageType": 1,
                    "units": "GB",
                    "max": 1000,
                    "allocated": 10,
                    "free": 990,
                    "percent": 1
                },
                "otherStorage": [
                    {
                        "id": 2,
                        "name": "Ceph RBD",
                        "enabled": 0,
                        "path": null,
                        "units": "GB",
                        "storageType": 2,
                        "isDatastore": true,
                        "max": 10000,
                        "allocated": 10,
                        "free": 9990,
                        "percent": 0.1
                    },
                    {
                        "id": 3,
                        "name": "Ceph EC",
                        "enabled": 0,
                        "path": null,
                        "units": "GB",
                        "storageType": 2,
                        "isDatastore": true,
                        "max": 13333333,
                        "allocated": 10,
                        "free": 13333323,
                        "percent": 0
                    }
                ],
                "network": {
                    "total": {
                        "ipv4": {
                            "free": 33
                        }
                    }
                }
            }
        }
    ],
    "first_page_url": "https://192.168.3.11/api/v1/compute/hypervisors/groups/1/resources?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://192.168.3.11/api/v1/compute/hypervisors/groups/1/resources?page=1",
    "links": [
        {
            "url": null,
            "label": "&laquo; Previous",
            "active": false
        },
        {
            "url": "https://192.168.3.11/api/v1/compute/hypervisors/groups/1/resources?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next &raquo;",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://192.168.3.11/api/v1/compute/hypervisors/groups/1/resources",
    "per_page": 20,
    "prev_page_url": null,
    "to": 11,
    "total": 11
}
401

The bearer token is missing, invalid, or expired. The response has no body.

#
No response body.
404

The hypervisor group was not found.

#
application/json
msgstring#
Example
{
    "msg": "hypervisor group not found"
}
429

Too many requests. Either the token's requests per minute are used up (see the `X-RateL…

#
application/json

Too many requests. Either the token's requests per minute are used up (see the X-RateLimit-* headers) or the calling address has failed authentication 10 times in a minute (the body then includes retry_after_seconds). Retry-After gives the seconds to wait.

object
errorsarray[string]#
retry_after_secondsinteger#

Seconds to wait before retrying. Present on the failed-authentication limit only.

Response headers
Retry-Afterinteger

Seconds to wait before retrying.

X-RateLimit-Limitinteger

The token's requests per minute (token limit only).

X-RateLimit-Remaininginteger

Requests left in the current minute (token limit only).

X-RateLimit-Resetinteger

Unix timestamp at which the minute resets (token limit only).

Examples
{
    "errors": [
        "Too Many Requests"
    ]
}
{
    "errors": [
        "Too many authentication attempts. Try again later."
    ],
    "retry_after_seconds": 42
}