K8s Azure tenants
Kubernetes Protection Azure tenant IDs is the Azure-tenant-id-list
collection — GetAzureTenantIDs. The path is
GET /kubernetes-protection/entities/tenants/azure/v1. Remaining
Kubernetes Protection mutations / Image assessment policies / remaining cloud are not
implemented (not yet). This is not Kubernetes Azure accounts
(/kubernetes-protection/entities/accounts/azure/v1):
K8s Azure. This is not Kubernetes Azure
install script (/kubernetes-protection/entities/user-script/azure/v1):
K8s Azure script. This is not Kubernetes
Azure tenant config (/kubernetes-protection/entities/config/azure/v1):
K8s Azure config. 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. Kubernetes Azure tenant IDs use
query params ids, 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_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 tenant IDs (403). Unit
tests use a client named cs-local-k8s with
kubernetes-protection:read; that client can list tenant IDs. 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
| Method | Path | Use |
|---|---|---|
GET | /kubernetes-protection/entities/tenants/azure/v1 | List Azure tenant IDs. Query: ids (Azure tenant ids), status (Not Installed | Running | Stopped), limit, offset. |
Filters are exact match. Empty query params return every tenant ID.
ids match tenant_id. Unknown ids → 200 with empty resources
(not 404). 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 tenant_id ascending. Repeated ids: OR within the
field.
JSON is snake_case MSA: tenant_id, subscription_ids. Do not
emit status on the resource.
This is not Kubernetes Azure accounts, Kubernetes Azure install
script, or Kubernetes Azure tenant config. Kubernetes Azure accounts uses
/kubernetes-protection/entities/accounts/azure/v1:
K8s Azure. Kubernetes Azure install script
uses /kubernetes-protection/entities/user-script/azure/v1:
K8s Azure script. Kubernetes Azure tenant config
uses /kubernetes-protection/entities/config/azure/v1:
K8s Azure config. Remaining Kubernetes Protection
mutations / Image assessment policies / remaining cloud are not implemented (not yet).
Seed tenants
| tenant_id | subscription_ids | status (filter) |
|---|---|---|
| t-lab-1 | sub-lab-1 | Running |
| t-lab-2 | sub-lab-2 | Stopped |
Empty filters return both. ids=t-lab-1 returns that row
(subscription_ids sub-lab-1). status=Running returns t-lab-1
(subscription_ids sub-lab-1). ids=t-lab-2 returns that row
(subscription_ids sub-lab-2). status=Stopped returns t-lab-2.
status is a query filter only; it is not on the JSON resource.
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 tenant IDs (cookie)
Empty filters return at least the two seed ids, including
t-lab-1 / sub-lab-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/tenants/azure/v1'
status=Running returns t-lab-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/tenants/azure/v1?status=Running'
ids=t-lab-1 returns that row:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/kubernetes-protection/entities/tenants/azure/v1?ids=t-lab-1'
Unknown 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/tenants/azure/v1?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/tenants/azure/v1?ids=not-a-tenant'
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/tenants/azure/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/tenants/azure/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/tenants/azure/v1'
Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not
implemented (not yet). Kubernetes Azure accounts is a separate collection:
K8s Azure. Kubernetes Azure install script is a
separate collection:
K8s Azure script. Kubernetes Azure tenant config
is a separate collection:
K8s Azure config. 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/tenants/azure/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.