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_list = client.cloud.k8s.clusters.pools.list(
cluster_name="cluster_name",
project_id=0,
region_id=0,
)
print(k8s_cluster_pool_list.count){
"count": 1,
"results": [
{
"auto_healing_enabled": true,
"boot_volume_size": 123,
"boot_volume_type": "<string>",
"created_at": "<string>",
"crio_config": {},
"flavor_id": "<string>",
"id": "<string>",
"is_public_ipv4": true,
"kubelet_config": {},
"labels": {},
"max_node_count": 123,
"min_node_count": 123,
"name": "<string>",
"node_count": 123,
"status": "<string>",
"taints": {},
"servergroup_id": "",
"servergroup_name": "",
"servergroup_policy": ""
}
]
}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_list = client.cloud.k8s.clusters.pools.list(
cluster_name="cluster_name",
project_id=0,
region_id=0,
)
print(k8s_cluster_pool_list.count){
"count": 1,
"results": [
{
"auto_healing_enabled": true,
"boot_volume_size": 123,
"boot_volume_type": "<string>",
"created_at": "<string>",
"crio_config": {},
"flavor_id": "<string>",
"id": "<string>",
"is_public_ipv4": true,
"kubelet_config": {},
"labels": {},
"max_node_count": 123,
"min_node_count": 123,
"name": "<string>",
"node_count": 123,
"status": "<string>",
"taints": {},
"servergroup_id": "",
"servergroup_name": "",
"servergroup_policy": ""
}
]
}API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project identifier
Region identifier
Cluster name
List of cluster pools
Number of objects
x >= 0Objects
Show child attributes
Indicates the status of auto healing
Size of the boot volume
Type of the boot volume
Date of function creation
ID of the cluster pool flavor
UUID of the cluster pool
Indicates if the pool is public
Maximum node count in the cluster pool
Minimum node count in the cluster pool
Name of the cluster pool
Node count in the cluster pool
Status of the cluster pool
Server group ID
Server group name
Anti-affinity, affinity or soft-anti-affinity server group policy
Was this page helpful?