import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)k8s_cluster_certificate = client.cloud.k8s.clusters.get_certificate( cluster_name="cluster_name", project_id=0, region_id=0,)print(k8s_cluster_certificate.certificate)
Copy
Ask AI
{ "certificate": "<string>", "key": "<string>"}
Managed Kubernetes
Get k8s cluster CA certificate
GET
/
cloud
/
v2
/
k8s
/
clusters
/
{project_id}
/
{region_id}
/
{cluster_name}
/
certificates
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)k8s_cluster_certificate = client.cloud.k8s.clusters.get_certificate( cluster_name="cluster_name", project_id=0, region_id=0,)print(k8s_cluster_certificate.certificate)