eks.clusters.resourcesWhat runs inside the cluster: workloads, pods, Services, Ingresses and the hosts they serve, ConfigMap and Secret names, events
Two keys, as for kubectl: the IAM permission, and Kubernetes RBAC for the identity your access entries give you, evaluated over the cluster’s Roles and bindings, so you see only kinds and namespaces you may list. The cluster itself reports it, every 20 seconds while someone looks (else every 5 minutes), so it works with a private endpoint too; `collectedAt` says when. Secret and ConfigMap values are never read out of the cluster. Hosts are checked from the internet every 5 minutes while someone looks: public DNS, then HTTPS on / when DNS points at the cluster’s load balancer.
Request syntax
GET /eks/api/clusters/{cluster}/resourcesPath parameters
clusterRequiredstring
Constraints: /^(ewk-[0-9a-f]{12}|[a-z]([a-z0-9-]{0,38}[a-z0-9])?)$/
Query parameters
namespaceOptionalstring
Only this namespace. Default: every namespace you may list
Constraints: /^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$/
systemOptionalenum
true includes kube-system, kube-public, kube-node-lease and ews-system when no namespace is given; default false
One of:
true,false
Response
200 with { ready: false } until the cluster has reported once (within a minute of the first ask), else { ready: true, collectedAt, identity (your Kubernetes username and groups), namespaces, denied (per section, the kinds your identity may not list), workloads, pods, services, ingresses, exposure (loadBalancers, hosts with their DNS, HTTPS and certificate check), configMaps (names and key names), secrets (names, type, key count), certificates, events (warnings first), truncated, errors }. 404 when no cluster has that id or name, 403 without the permission on it (eks:DescribeClusterResources); 403 also without an access entry on the cluster.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow eks:DescribeClusterResources on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud eks clusters resources clustercurl -X GET "https://console.platform.deutschecloud.app/eks/api/clusters/cluster/resources" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.eks.clusters.resources({ cluster: "cluster" });from dcloud import Client
client = Client()
result = client.eks.clusters.resources(cluster="cluster")Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_eks_clusters_resources.