Skip to main content
GET
/
kubernetes
/
clusters
/
{clusterName}
/
automation
List containers enabled for automation in a cluster
curl --request GET \
  --url https://{host}/api/v2/kubernetes/clusters/{clusterName}/automation \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "cluster": "<string>",
      "namespace": "<string>",
      "podOwnerName": "<string>",
      "podOwnerKind": "<string>",
      "container": "<string>",
      "entityId": "<string>",
      "containerId": "<string>",
      "avgContainerCount": 123,
      "currentCpuRequestmCores": 123,
      "currentCpuLimitmCores": 123,
      "currentMemRequestBytes": 123,
      "currentMemLimitBytes": 123,
      "recommendedCpuRequestmCores": 123,
      "recommendedCpuLimitmCores": 123,
      "recommendedMemRequestBytes": 123,
      "recommendedMemLimitBytes": 123,
      "estimatedSavingsPerContainer": 123,
      "analyzedOn": "2023-11-07T05:31:56Z",
      "kubexAutomation": true,
      "automationPolicy": true,
      "hpaMetricName": "<string>",
      "hpaMetricThreshold": "<string>",
      "predictedUptime": 123,
      "configLastChangedOn": "2023-11-07T05:31:56Z",
      "nodeGroup": "<string>",
      "oomKills_last7days": 123,
      "dateFirstAudited": "2023-11-07T05:31:56Z",
      "dateLastAudited": "2023-11-07T05:31:56Z"
    }
  ],
  "checksum": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

clusterName
string
required

The unique cluster name (from /kubernetes/clusters or Kubex UI Connections).

Response

Automation-enabled container recommendations for the cluster.

results
object[]
required
checksum
string

Hash of the result set for change detection.