K8s locations
Kubernetes Protection cloud locations is the location-list collection
for this CID — GetLocations. The path is
GET /kubernetes-protection/entities/cloud-locations/v1.
Remaining Kubernetes Protection ops (account mutations, combined, IOMs,
aggregates) and remaining CSPM, Falcon Container writes, and remaining
vuln ops are not implemented (not yet). This is not Kubernetes
clusters (/kubernetes-protection/entities/kubernetes/clusters/v1) and
not Event streams (/sensors/entities/datafeed). Kubernetes clusters
is a separate collection: Kubernetes.
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. Kubernetes cloud locations use query
param clouds (aws | azure | gcp), 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_consolefromCreateSession(POST /identity/entities/sessions/v1) Authorization: Bearerwithkubernetes-protection:read
A session cookie bypasses OAuth scopes. Seed client cs-local-hosts
(hosts:read only) cannot list locations (403). There is no seeded
client with kubernetes-protection:read — use the console cookie, or a
client you created with that scope. Missing or revoked token → 401.
HTTP paths
| Method | Path | Use |
|---|---|---|
GET | /kubernetes-protection/entities/cloud-locations/v1 | List cloud locations. Query: clouds (aws | azure | gcp), limit, offset. |
Filters are exact match. Empty query params return every location in this
CID. clouds other than aws, azure, or gcp → 400. Repeated
clouds: OR within the field. limit and offset must be ≥ 0
else 400. Omitted limit defaults to 100 (capped at 500).
Default sort is region ascending.
JSON is snake_case: cloud, region, cid.
This is not Kubernetes clusters or Event streams. Kubernetes clusters
uses /kubernetes-protection/entities/kubernetes/clusters/v1:
Kubernetes. Event streams uses
/sensors/entities/datafeed/…: Event streams. Remaining
Kubernetes Protection ops and other cloud collections are not
implemented (not yet).
Seed locations
| cloud | region |
|---|---|
| aws | us-east-1 |
| azure | eastus |
| gcp | us-central1 |
cid is cid-local-1. Empty filters return all three. clouds=aws
returns us-east-1.
Session cookie
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
List locations (cookie)
Empty filters return at least the three seed regions, including
us-east-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud-locations/v1'
clouds=aws returns us-east-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/cloud-locations/v1?clouds=aws'
Bad clouds 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-locations/v1?clouds=bogus'
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-locations/v1'
Remaining Kubernetes Protection ops (account mutations, combined, IOMs, aggregates) and other cloud collections are not implemented (not yet). Kubernetes clusters is a separate collection: Kubernetes. Event streams is a separate collection: Event streams.
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-locations/v1'
kubernetes-protection:read → 200. A token without that scope
(including hosts:read only) → 403. Missing or revoked token →
401.
OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.