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>"
}Returns container recommendations for the specified Kubernetes cluster, limited to containers that have been enabled for automation via the UI. If a property or value is not set or not available, it is omitted from the response.
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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique cluster name (from /kubernetes/clusters or Kubex UI Connections).
Automation-enabled container recommendations for the cluster.
Show child attributes
Cluster name from the config.yaml.
Namespace of the container.
Name of the controller or pod.
Controller type (e.g., DaemonSet, Deployment, ReplicaSet, StatefulSet).
Container manifest name.
Densify-assigned unique identifier for the selected cluster.
Unique identifier for the listed container.
Average number of containers ("In Service Instances").
Current CPU request (mCores).
Current CPU limit (mCores).
Current memory request (bytes).
Current memory limit (bytes).
Recommended CPU request (mCores).
Recommended CPU limit (mCores).
Recommended memory request (bytes).
Recommended memory limit (bytes).
Estimated savings per container when applying recommendations.
Timestamp of the most recent analysis refresh (UTC).
Indicates whether automation is enabled for this container.
Indicates whether an automation policy is applied.
Metric used to trigger autoscaling (e.g., "cpu utilization").
Threshold value used to trigger autoscaling.
Predicted uptime percentage based on presence of CPU utilization data in the historical interval.
Timestamp when request/limit values were last changed (UTC).
Name of the associated node group.
Count of OOM events in the last 7 days.
First audit timestamp from workload history (UTC).
Most recent audit timestamp from workload history (UTC).
Hash of the result set for change detection.