Python
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
k8s_cluster_pool_quota = client.cloud.k8s.clusters.pools.check_quota(
project_id=1,
region_id=7,
flavor_id="g1-standard-1-2",
)
print(k8s_cluster_pool_quota.baremetal_gpu_a100_count_limit)package main
import (
"context"
"fmt"
"github.com/G-Core/gcore-go"
"github.com/G-Core/gcore-go/cloud"
"github.com/G-Core/gcore-go/option"
)
func main() {
client := gcore.NewClient(
option.WithAPIKey("My API Key"),
)
k8sClusterPoolQuota, err := client.Cloud.K8S.Clusters.Pools.CheckQuota(context.TODO(), cloud.K8SClusterPoolCheckQuotaParams{
ProjectID: gcore.Int(1),
RegionID: gcore.Int(7),
FlavorID: "g1-standard-1-2",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", k8sClusterPoolQuota.BaremetalGPUA100CountLimit)
}
curl --request POST \
--url https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"flavor_id": "g1-standard-1-2",
"boot_volume_size": 50,
"is_public_ipv4": true,
"max_node_count": 5,
"min_node_count": 3,
"name": "test",
"node_count": 5,
"servergroup_policy": "anti-affinity"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flavor_id: 'g1-standard-1-2',
boot_volume_size: 50,
is_public_ipv4: true,
max_node_count: 5,
min_node_count: 3,
name: 'test',
node_count: 5,
servergroup_policy: 'anti-affinity'
})
};
fetch('https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'flavor_id' => 'g1-standard-1-2',
'boot_volume_size' => 50,
'is_public_ipv4' => true,
'max_node_count' => 5,
'min_node_count' => 3,
'name' => 'test',
'node_count' => 5,
'servergroup_policy' => 'anti-affinity'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"flavor_id\": \"g1-standard-1-2\",\n \"boot_volume_size\": 50,\n \"is_public_ipv4\": true,\n \"max_node_count\": 5,\n \"min_node_count\": 3,\n \"name\": \"test\",\n \"node_count\": 5,\n \"servergroup_policy\": \"anti-affinity\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"flavor_id\": \"g1-standard-1-2\",\n \"boot_volume_size\": 50,\n \"is_public_ipv4\": true,\n \"max_node_count\": 5,\n \"min_node_count\": 3,\n \"name\": \"test\",\n \"node_count\": 5,\n \"servergroup_policy\": \"anti-affinity\"\n}"
response = http.request(request)
puts response.read_body{
"baremetal_gpu_a100_count_limit": 5,
"baremetal_gpu_a100_count_requested": 10,
"baremetal_gpu_a100_count_usage": 3,
"baremetal_gpu_b200_count_limit": 5,
"baremetal_gpu_b200_count_requested": 10,
"baremetal_gpu_b200_count_usage": 3,
"baremetal_gpu_h100_count_limit": 5,
"baremetal_gpu_h100_count_requested": 10,
"baremetal_gpu_h100_count_usage": 3,
"baremetal_gpu_h200_count_limit": 5,
"baremetal_gpu_h200_count_requested": 10,
"baremetal_gpu_h200_count_usage": 3,
"baremetal_gpu_l40s_count_limit": 5,
"baremetal_gpu_l40s_count_requested": 10,
"baremetal_gpu_l40s_count_usage": 3,
"baremetal_hf_count_limit": 5,
"baremetal_hf_count_requested": 10,
"baremetal_hf_count_usage": 3,
"cluster_count_limit": 5,
"cluster_count_requested": 6,
"cluster_count_usage": 4,
"cpu_count_limit": 10,
"cpu_count_requested": 20,
"cpu_count_usage": 5,
"external_ip_count_limit": 5,
"external_ip_count_requested": 6,
"external_ip_count_usage": 4,
"firewall_count_limit": 5,
"firewall_count_requested": 6,
"firewall_count_usage": 4,
"floating_count_limit": 5,
"floating_count_requested": 6,
"floating_count_usage": 4,
"gpu_count_limit": 4,
"gpu_count_requested": 8,
"gpu_count_usage": 2,
"gpu_virtual_a100_count_limit": 4,
"gpu_virtual_a100_count_requested": 8,
"gpu_virtual_a100_count_usage": 2,
"gpu_virtual_h100_count_limit": 4,
"gpu_virtual_h100_count_requested": 8,
"gpu_virtual_h100_count_usage": 2,
"gpu_virtual_h200_count_limit": 4,
"gpu_virtual_h200_count_requested": 8,
"gpu_virtual_h200_count_usage": 2,
"gpu_virtual_l40s_count_limit": 4,
"gpu_virtual_l40s_count_requested": 8,
"gpu_virtual_l40s_count_usage": 2,
"laas_topic_count_limit": 5,
"laas_topic_count_requested": 6,
"laas_topic_count_usage": 4,
"loadbalancer_count_limit": 5,
"loadbalancer_count_requested": 6,
"loadbalancer_count_usage": 4,
"ram_limit": 20480,
"ram_requested": 40960,
"ram_usage": 10240,
"servergroup_count_limit": 5,
"servergroup_count_requested": 10,
"servergroup_count_usage": 3,
"vm_count_limit": 5,
"vm_count_requested": 10,
"vm_count_usage": 3,
"volume_count_limit": 5,
"volume_count_requested": 10,
"volume_count_usage": 3,
"volume_size_limit": 400,
"volume_size_requested": 800,
"volume_size_usage": 200
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}Managed Kubernetes
Check cluster pool quota
Calculate quota requirements for a new cluster pool before creation.
Returns exceeded quotas if regional limits would be violated. Use before
pool creation to validate resource availability. Checks: CPU, RAM, volumes,
VMs, GPUs, external IPs (for pools with is_public_ipv4), and baremetal
quotas depending on flavor type.
POST
/
cloud
/
v2
/
k8s
/
clusters
/
{project_id}
/
{region_id}
/
pools
/
check_limits
Python
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
k8s_cluster_pool_quota = client.cloud.k8s.clusters.pools.check_quota(
project_id=1,
region_id=7,
flavor_id="g1-standard-1-2",
)
print(k8s_cluster_pool_quota.baremetal_gpu_a100_count_limit)package main
import (
"context"
"fmt"
"github.com/G-Core/gcore-go"
"github.com/G-Core/gcore-go/cloud"
"github.com/G-Core/gcore-go/option"
)
func main() {
client := gcore.NewClient(
option.WithAPIKey("My API Key"),
)
k8sClusterPoolQuota, err := client.Cloud.K8S.Clusters.Pools.CheckQuota(context.TODO(), cloud.K8SClusterPoolCheckQuotaParams{
ProjectID: gcore.Int(1),
RegionID: gcore.Int(7),
FlavorID: "g1-standard-1-2",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", k8sClusterPoolQuota.BaremetalGPUA100CountLimit)
}
curl --request POST \
--url https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"flavor_id": "g1-standard-1-2",
"boot_volume_size": 50,
"is_public_ipv4": true,
"max_node_count": 5,
"min_node_count": 3,
"name": "test",
"node_count": 5,
"servergroup_policy": "anti-affinity"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flavor_id: 'g1-standard-1-2',
boot_volume_size: 50,
is_public_ipv4: true,
max_node_count: 5,
min_node_count: 3,
name: 'test',
node_count: 5,
servergroup_policy: 'anti-affinity'
})
};
fetch('https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'flavor_id' => 'g1-standard-1-2',
'boot_volume_size' => 50,
'is_public_ipv4' => true,
'max_node_count' => 5,
'min_node_count' => 3,
'name' => 'test',
'node_count' => 5,
'servergroup_policy' => 'anti-affinity'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"flavor_id\": \"g1-standard-1-2\",\n \"boot_volume_size\": 50,\n \"is_public_ipv4\": true,\n \"max_node_count\": 5,\n \"min_node_count\": 3,\n \"name\": \"test\",\n \"node_count\": 5,\n \"servergroup_policy\": \"anti-affinity\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cloud/v2/k8s/clusters/{project_id}/{region_id}/pools/check_limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"flavor_id\": \"g1-standard-1-2\",\n \"boot_volume_size\": 50,\n \"is_public_ipv4\": true,\n \"max_node_count\": 5,\n \"min_node_count\": 3,\n \"name\": \"test\",\n \"node_count\": 5,\n \"servergroup_policy\": \"anti-affinity\"\n}"
response = http.request(request)
puts response.read_body{
"baremetal_gpu_a100_count_limit": 5,
"baremetal_gpu_a100_count_requested": 10,
"baremetal_gpu_a100_count_usage": 3,
"baremetal_gpu_b200_count_limit": 5,
"baremetal_gpu_b200_count_requested": 10,
"baremetal_gpu_b200_count_usage": 3,
"baremetal_gpu_h100_count_limit": 5,
"baremetal_gpu_h100_count_requested": 10,
"baremetal_gpu_h100_count_usage": 3,
"baremetal_gpu_h200_count_limit": 5,
"baremetal_gpu_h200_count_requested": 10,
"baremetal_gpu_h200_count_usage": 3,
"baremetal_gpu_l40s_count_limit": 5,
"baremetal_gpu_l40s_count_requested": 10,
"baremetal_gpu_l40s_count_usage": 3,
"baremetal_hf_count_limit": 5,
"baremetal_hf_count_requested": 10,
"baremetal_hf_count_usage": 3,
"cluster_count_limit": 5,
"cluster_count_requested": 6,
"cluster_count_usage": 4,
"cpu_count_limit": 10,
"cpu_count_requested": 20,
"cpu_count_usage": 5,
"external_ip_count_limit": 5,
"external_ip_count_requested": 6,
"external_ip_count_usage": 4,
"firewall_count_limit": 5,
"firewall_count_requested": 6,
"firewall_count_usage": 4,
"floating_count_limit": 5,
"floating_count_requested": 6,
"floating_count_usage": 4,
"gpu_count_limit": 4,
"gpu_count_requested": 8,
"gpu_count_usage": 2,
"gpu_virtual_a100_count_limit": 4,
"gpu_virtual_a100_count_requested": 8,
"gpu_virtual_a100_count_usage": 2,
"gpu_virtual_h100_count_limit": 4,
"gpu_virtual_h100_count_requested": 8,
"gpu_virtual_h100_count_usage": 2,
"gpu_virtual_h200_count_limit": 4,
"gpu_virtual_h200_count_requested": 8,
"gpu_virtual_h200_count_usage": 2,
"gpu_virtual_l40s_count_limit": 4,
"gpu_virtual_l40s_count_requested": 8,
"gpu_virtual_l40s_count_usage": 2,
"laas_topic_count_limit": 5,
"laas_topic_count_requested": 6,
"laas_topic_count_usage": 4,
"loadbalancer_count_limit": 5,
"loadbalancer_count_requested": 6,
"loadbalancer_count_usage": 4,
"ram_limit": 20480,
"ram_requested": 40960,
"ram_usage": 10240,
"servergroup_count_limit": 5,
"servergroup_count_requested": 10,
"servergroup_count_usage": 3,
"vm_count_limit": 5,
"vm_count_requested": 10,
"vm_count_usage": 3,
"volume_count_limit": 5,
"volume_count_requested": 10,
"volume_count_usage": 3,
"volume_size_limit": 400,
"volume_size_requested": 800,
"volume_size_usage": 200
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}{
"detail": "<string>",
"exception_class": "<string>",
"hint": "<string>",
"message": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"trace_id": "<string>",
"type": "internal-server-error",
"context": {
"allowed_methods": [
"<string>"
],
"blocking_count": 123,
"blocking_resources": [
{
"resource_id": "<string>",
"resource_type": "<string>",
"resource_name": "<string>"
}
],
"client_id": 123,
"operation": "<string>",
"project_id": 123,
"quotas": [
{
"available": 123,
"limit": 123,
"name": "<string>",
"overflow": 123,
"region_id": 123,
"requested": 123,
"resulting_usage": 123,
"scope": "global",
"unit": "<string>",
"usage": 123
}
],
"reason": "account",
"region_id": 123,
"resource_id": "<string>",
"resource_status": "<string>",
"resource_type": "<string>",
"retry_after": 123
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"loc": [
"<string>"
],
"ctx": {}
}
],
"info": null,
"invalid_fields": null
}Authorizations
Path Parameters
Body
application/json
Response
OK
Response schema for K8s cluster quota check.
Returns quota fields that are exceeded. Fields are only included when regional limits would be violated. Empty response means no quotas exceeded.
Was this page helpful?