Function: clusterRequest()
function clusterRequest(
path: string,
params: ClusterRequestParams,
queryParams?: QueryParameters): Promise<any>
Sends a request to the backend. If the cluster is required in the params parameter, it will be used as a request to the respective Kubernetes server.
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | The path to the API endpoint. |
params | ClusterRequestParams | Optional parameters for the request. |
queryParams? | QueryParameters | Optional query parameters for the k8s request. |
Returns
Promise<any>
A Promise that resolves to the JSON response from the API server.
Throws
An ApiError if the response status is not ok.