# K8S Api Proxy

Platform9's unique SaaS Managed approach enables secure remote access to Kubernetes clusters running in private, edge and public clouds. The SaaS management plane enables unique cluster management actions that enable you to query and take action against any managed cluster using the Qbert K8s API Proxy.

The Qbert API enables programatic access to managed infrastructure, executing `https://pmkft-demo-18238.platform9.io/qbert/v3/c89ed4aa436f46d09d532c467961dbee/clusters` will return a list of clusters in the identified tenant.

Platform9 built an extension to Qbert that is the K8s API Proxy which enables Kubernetes API requests to be sent directly to the cluster.

For example, executing `https://pmkft-demo-18238.platform9.io/qbert/v1/clusters/aa09f04f-14a2-4012-8df3-f0ef3943af88/k8sapi/api/v1/namespaces/pf9-monitoring/pods/prometheus-system-0` will return the Kubernetes data from a Pods API request scoped to a named Pod.

## K8s API Proxy Explained

To access the K8s API Proxy a Cluster UUID is required this can be found on the Infrastructure Dashboard Clusters tab by adding the UUID column to the table. The K8s API Proxy can be accessed through a variety of languages, below is an example HTTPS request.

{% tabs %}
{% tab title="Http" %}

```http
https://<platform9-instance>/qbert/v1/clusters/<cluster_uuid>/k8sapi/<k8s_api_version>/<api>
```

{% endtab %}
{% endtabs %}

The API could also be accessed using a CURL command

The K8s API Proxy is able to execute [Kubernetes API Commands the full reference can be found here.](https://kubernetes.io/docs/reference/kubernetes-api/)

{% hint style="info" %}
**Platform9 Learn**

For more examples visit <https://platform9.com/learn/k8s-api-proxy>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-kubernetes/5.10/k8s-api-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
