Skip to main content

K8s cloud clusters

Kubernetes Protection combined cloud clusters is the combined cloud-account-and-cluster collection — GetCombinedCloudClusters. The path is GET /kubernetes-protection/entities/cloud_cluster/v1. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). This is not the Kubernetes clusters list (/kubernetes-protection/entities/kubernetes/clusters/v1): Kubernetes. This is not Kubernetes IOMs (/container-security/combined/kubernetes-ioms/v1): K8s IOMs. This is not Kubernetes Azure tenant IDs (/kubernetes-protection/entities/tenants/azure/v1): K8s Azure tenants. This is not the HelloService template sample (GET /api/hello).

This collection is not CrowdStrike production. It does not call Falcon cloud. It is not CrowdStrike Kubernetes Protection cloud.

RPC field notes: KubernetesProtectionService. REST schemas: API reference. Combined cloud clusters use query params locations, ids, cluster_service, cluster_status, limit, and offset, not FQL.

These curls use Host: crowdstrike-api.localhost against Compose Traefik on :8088. If the hostname already resolves to Traefik, you can omit the Host header and call http://crowdstrike-api.localhost instead.

Auth​

Every call needs a console session or a Bearer token:

  • Cookie cs_console from CreateSession (POST /identity/entities/sessions/v1)
  • Authorization: Bearer with kubernetes-protection:read

A session cookie bypasses OAuth scopes. Seed client cs-local-hosts (hosts:read only) cannot list combined cloud clusters (403). Unit tests use a client named cs-local-k8s with kubernetes-protection:read; that client can list combined cloud clusters. It is not in the production seed. Use the console cookie, or a client you created with that scope. Missing or revoked token → 401.

HTTP paths​

MethodPathUse
GET/kubernetes-protection/entities/cloud_cluster/v1List combined cloud clusters. Query: locations, ids (account ids), cluster_service (aks | eks), cluster_status (Not Installed | Running | Stopped), limit, offset.

Filters are exact match. Empty query params return every combined cloud cluster. ids match account_id. locations match location. Unknown ids → 200 with empty resources (not 404). cluster_service must be empty or one of aks, eks else 400. cluster_status must be empty or one of Not Installed, Running, Stopped else 400. limit and offset must be ≥ 0 else 400. Omitted limit defaults to 100 (capped at 500). Default sort is cluster_name ascending. Repeated ids: OR within the field.

JSON is snake_case MSA: account_id, cloud_status, cluster_name, cluster_service, cluster_status, from_cspm, location. Do not emit aws_meta or azure_meta.

This is not the Kubernetes clusters list. Kubernetes clusters uses /kubernetes-protection/entities/kubernetes/clusters/v1: Kubernetes. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet).

Seed clusters​

cluster_namecluster_servicecluster_statuslocationaccount_idcloud_statusfrom_cspm
lab-eks-1eksRunningus-east-1111111111111operationaltrue
lab-aks-1aksRunningeastussub-lab-1operationaltrue

Empty filters return both. cluster_service=eks returns lab-eks-1. ids=111111111111 returns that row. cluster_status=Running returns both. from_cspm is boolean.

curl -sS -c cookies.txt -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"FalconLocal!1","cloud":"us-1"}' \
http://127.0.0.1:8088/identity/entities/sessions/v1

Empty filters return at least the two seed names, including lab-eks-1 and lab-aks-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1'

cluster_service=eks returns lab-eks-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1?cluster_service=eks'

ids=111111111111 returns that row:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1?ids=111111111111'

Unknown cluster_service is 400:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1?cluster_service=gke'

Unknown cluster_status is 400:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1?cluster_status=bogus'

Unknown ids is 200 with empty resources (not 404):

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1?ids=not-an-account'

Negative limit is 400:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1?limit=-1'

No cookie and no Bearer is 401:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1'

cs-local-hosts (hosts:read only) is 403:

TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1'

Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). Kubernetes clusters is a separate collection: Kubernetes. Kubernetes Azure tenant IDs is a separate collection: K8s Azure tenants. This is not the HelloService template (GET /api/hello).

List (Bearer)​

TOKEN='<access_token from a client with kubernetes-protection:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud_cluster/v1'

kubernetes-protection:read → 200 (including unit-test client cs-local-k8s). A token without that scope (including hosts:read only, e.g. cs-local-hosts) → 403. Missing or revoked token → 401. There is no seeded production client with kubernetes-protection:read — use the console cookie, or a client you created with that scope.

OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.