CSPM GCP
CSPM GCP is the GCP-account-list collection for this CID —
GetCSPMCGPAccount, ConnectGcpAccount (PEP 8
connect_gcp_account), CreateGcpAccount (PEP 8
create_gcp_account), UpdateGcpAccount (SOURCE
UpdateCSPMGCPAccount, PEP 8 update_gcp_account),
DeleteGcpAccount (SOURCE
DeleteCSPMGCPAccount, PEP 8 delete_gcp_account), and GCP
service-account metadata — GetGcpServiceAccountsExt (SOURCE
GetCSPMGCPServiceAccountsExt, PEP 8 get_gcp_service_account),
UpdateGcpServiceAccountsExt (SOURCE
UpdateCSPMGCPServiceAccountsExt, PEP 8
update_gcp_service_account),
and GCP user-script metadata — GetGcpUserScriptsAttachment (SOURCE
GetCSPMGCPUserScriptsAttachment, PEP 8
get_gcp_user_scripts_attachment), and GCP account validation —
GetGcpValidateAccountsExt (SOURCE
GetCSPMGCPValidateAccountsExt, PEP 8 validate_gcp_account),
and GCP service-account validation —
ValidateGcpServiceAccountsExt (SOURCE
ValidateCSPMGCPServiceAccountExt, PEP 8
validate_gcp_service_account).
The GET path is
GET /cloud-connect-cspm-gcp/entities/account/v1. The Connect POST path
is POST /cloud-connect-cspm-gcp/entities/account/v2. The Create POST
path is POST /cloud-connect-cspm-gcp/entities/account/v1 (same path as
GET, method POST; distinct from Connect /account/v2). The update path
is PATCH /cloud-connect-cspm-gcp/entities/account/v1 (same path as
GET/POST v1, method PATCH; distinct from Create POST and Connect
/account/v2). The delete path
is DELETE /cloud-connect-cspm-gcp/entities/account/v1 (same path as
GET/POST/PATCH v1, method DELETE; distinct from Connect /account/v2).
The service-accounts path is
GET /cloud-connect-cspm-gcp/entities/service-accounts/v1.
The service-account update path is
PATCH /cloud-connect-cspm-gcp/entities/service-accounts/v1 (same path as
GET, method PATCH; distinct from GET service accounts, UpdateGcpAccount
/account/v1, and Kubernetes).
The scripts-attachment path is
GET /cloud-connect-cspm-gcp/entities/user-scripts-download/v1.
The validate path is
POST /cloud-connect-cspm-gcp/entities/account/validate/v1.
The service-account validate path is
POST /cloud-connect-cspm-gcp/entities/service-accounts/validate/v1
(distinct from GET/PATCH /entities/service-accounts/v1,
GetGcpValidateAccountsExt POST /entities/account/validate/v1, and
Kubernetes).
Image assessment policies / remaining cloud and other cloud/container
collections are not implemented (not yet). This is not Kubernetes
(/kubernetes-protection/…) and not Cloud AWS
(/cloud-connect-cspm-aws/…). CSPM Azure is a separate collection
(/cloud-connect-cspm-azure/…):
CSPM Azure. 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 Falcon Cloud or Horizon.
RPC field notes:
CspmRegistrationService.
REST schemas: API reference. CSPM GCP uses query params, not FQL.
POST connect (/account/v2) and POST create (/account/v1) use JSON
body {parent_id, parent_type}. Extra unused keys including
private_key are ignored; the clone does not persist private keys or
emit grant scripts. Clone success is JSON MSA 200 CspmGcpAccount,
not SOURCE 201/207. Create is distinct from Connect.
PATCH update (/account/v1) uses JSON body {parent_id, parent_type}.
Required parent_id, parent_type. Extra unused keys including
environment and private_key are ignored; the clone does not persist
environment or private keys. Clone PATCH success is JSON MSA 200
CspmGcpAccount. PATCH is distinct from Create POST and Connect
/account/v2. This is not Kubernetes.
POST validate (/account/validate/v1) uses JSON body {resources}.
Extra unused body keys (parameters, parent_type) are ignored. The
clone does not call GCP IAM and does not persist private keys. Clone
success is JSON MSA 200 CspmGcpAccountValidation.
DELETE uses query ids (required) and an empty body. Extra unused query
keys (parameters) are ignored. Clone DELETE success is 200 empty
resources, not SOURCE 201/207. DELETE is not Connect
(POST /cloud-connect-cspm-gcp/entities/account/v2).
GetGcpServiceAccountsExt uses query optional id. Extra unused query
keys (parameters) are ignored. Clone success is JSON MSA 200
CspmGcpServiceAccount (client_email, client_id, project_id,
service_account_conditions, service_account_id).
service_account_conditions is always empty. The clone does not persist
or return GCP private keys. Distinct from GET account
/cloud-connect-cspm-gcp/entities/account/v1, POST connect
/cloud-connect-cspm-gcp/entities/account/v2, PATCH service-account
update /cloud-connect-cspm-gcp/entities/service-accounts/v1, and POST
service-account validate
/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1.
PATCH service-account update (/service-accounts/v1) uses JSON body
{service_account_id, client_email}. Required service_account_id,
client_email. Extra unused keys including private_key,
private_key_id, client_id, project_id, resources,
service_account_conditions, and parameters are ignored; the clone
does not persist private keys. Clone PATCH success is JSON MSA 200
CspmGcpServiceAccount. PATCH is distinct from GET service accounts,
UpdateGcpAccount /account/v1, POST service-account validate
/service-accounts/validate/v1, GetGcpValidateAccountsExt POST
/account/validate/v1, and Kubernetes.
POST service-account validate (/service-accounts/validate/v1) uses
JSON body {service_account_id}. Required service_account_id. Extra
unused keys including private_key, private_key_id, client_email,
client_id, project_id, resources, service_account_conditions,
and parameters are ignored; the clone does not persist private keys
and does not mutate stored email. Clone POST success is JSON MSA 200
CspmGcpServiceAccount. POST is distinct from GET/PATCH
/service-accounts/v1, GetGcpValidateAccountsExt POST
/account/validate/v1, and Kubernetes.
GetGcpUserScriptsAttachment uses query optional ids and
parent_type (Project | Folder | Organization). Extra unused
query keys (parameters) are ignored. Clone success is JSON MSA 200
one CspmGcpScriptAttachment (parent_type, ids,
service_account_emails, note). There is no bash field. The clone
does not emit GCP grant scripts and does not persist private keys.
Distinct from GET account
/cloud-connect-cspm-gcp/entities/account/v1, GET service-accounts
/cloud-connect-cspm-gcp/entities/service-accounts/v1, POST connect
/cloud-connect-cspm-gcp/entities/account/v2, and grant-script file
download.
GetGcpValidateAccountsExt uses body JSON {resources} (GCP parent
ids). Empty resources (missing key or []) returns every stored
parent ASC. Extra unused body keys (parameters, parent_type) are
ignored. Clone success is JSON MSA 200 CspmGcpAccountValidation
(parent_id, status, service_account_id, conditions,
gcp_permissions_status, service_account_conditions).
conditions, gcp_permissions_status, and
service_account_conditions are always empty. Matching service
account service_account_id when ProjectID equals parent_id, else
0. Unknown id → 400 unknown gcp account id (all-or-nothing).
The clone does not call GCP IAM and does not persist private keys.
Distinct from GET account
/cloud-connect-cspm-gcp/entities/account/v1, POST connect
/cloud-connect-cspm-gcp/entities/account/v2, POST create
/cloud-connect-cspm-gcp/entities/account/v1, GET service-accounts
/cloud-connect-cspm-gcp/entities/service-accounts/v1, GET
user-scripts-download
/cloud-connect-cspm-gcp/entities/user-scripts-download/v1, and POST
service-account validate
/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1.
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: Bearerwithcspm-registration:read(GET list, GET service-accounts, GET user-scripts-download) orcspm-registration:write(POST connect, POST create, PATCH update, PATCH service-account update, POST validate, POST service-account validate, and DELETE)
A session cookie bypasses OAuth scopes. Seed client cs-local-hosts
(hosts:read only) cannot list accounts, list service accounts,
download scripts, connect, create, update, update service accounts,
validate service accounts, delete, or validate (403).
cspm-registration:read can list accounts, list service accounts,
and download scripts and cannot POST, PATCH, or DELETE (403),
including POST validate, POST service-account validate, and PATCH
service-account update.
GetCSPMCGPAccount, GetGcpServiceAccountsExt, and
GetGcpUserScriptsAttachment stay cspm-registration:read.
ConnectGcpAccount, CreateGcpAccount, UpdateGcpAccount,
UpdateGcpServiceAccountsExt, ValidateGcpServiceAccountsExt,
DeleteGcpAccount, and GetGcpValidateAccountsExt need
cspm-registration:write. There is no
product-seeded write client — use the console cookie, or a client you
created with that scope. Missing or revoked token → 401.
HTTP paths
| Method | Path | Use |
|---|---|---|
GET | /cloud-connect-cspm-gcp/entities/account/v1 | List accounts. Query: ids, status (operational | provisioned), parent_type (Folder | Organization | Project), limit, offset. |
GET | /cloud-connect-cspm-gcp/entities/service-accounts/v1 | List GCP service-account metadata. RPC GetGcpServiceAccountsExt. SOURCE GetCSPMGCPServiceAccountsExt. PEP 8 get_gcp_service_account. Query: optional id. Success 200 MSA CspmGcpServiceAccount (client_email, client_id, project_id, service_account_conditions, service_account_id). Extra unused query keys (parameters) ignored. Distinct from GET account /entities/account/v1, POST connect /entities/account/v2, PATCH service-account update same path, and POST service-account validate /entities/service-accounts/validate/v1. Clone does not persist or return GCP private keys. |
PATCH | /cloud-connect-cspm-gcp/entities/service-accounts/v1 | Update GCP service account. RPC UpdateGcpServiceAccountsExt. SOURCE UpdateCSPMGCPServiceAccountsExt. PEP 8 update_gcp_service_account. Body JSON {service_account_id, client_email}. Distinct from GET service-accounts same path, POST service-account validate /entities/service-accounts/validate/v1, GetGcpValidateAccountsExt POST /entities/account/validate/v1, PATCH update account /account/v1, and Kubernetes. Success 200 MSA CspmGcpServiceAccount. Extra unused keys including private_key ignored. Required service_account_id, client_email. Clone does not persist private keys. cspm-registration:write. |
POST | /cloud-connect-cspm-gcp/entities/service-accounts/validate/v1 | Validate GCP service account. RPC ValidateGcpServiceAccountsExt. SOURCE ValidateCSPMGCPServiceAccountExt. PEP 8 validate_gcp_service_account. Body JSON {service_account_id}. Distinct from GET/PATCH /entities/service-accounts/v1, GetGcpValidateAccountsExt POST /entities/account/validate/v1, and Kubernetes. Success 200 MSA CspmGcpServiceAccount. Extra unused keys ignored. Required service_account_id. Clone does not persist private keys. Does not mutate stored email. cspm-registration:write. |
GET | /cloud-connect-cspm-gcp/entities/user-scripts-download/v1 | Download GCP user-script metadata. RPC GetGcpUserScriptsAttachment. SOURCE GetCSPMGCPUserScriptsAttachment. PEP 8 get_gcp_user_scripts_attachment. Query: optional ids, parent_type (Project | Folder | Organization). Success 200 MSA one CspmGcpScriptAttachment (parent_type, ids, service_account_emails, note). Extra unused query keys (parameters) ignored. Distinct from GET account /entities/account/v1, GET service-accounts /entities/service-accounts/v1, POST connect /entities/account/v2, grant-script file download. Clone does not emit GCP grant scripts and does not persist private keys. No bash field. |
POST | /cloud-connect-cspm-gcp/entities/account/v1 | Create GCP account. RPC CreateGcpAccount. PEP 8 create_gcp_account. Body JSON {parent_id, parent_type}. Distinct from Connect POST /account/v2 and PATCH update /account/v1. Success 200 MSA CspmGcpAccount. |
PATCH | /cloud-connect-cspm-gcp/entities/account/v1 | Update GCP account. RPC UpdateGcpAccount. SOURCE UpdateCSPMGCPAccount. PEP 8 update_gcp_account. Body JSON {parent_id, parent_type}. Distinct from Create POST /account/v1, Connect POST /account/v2, PATCH service-account update /service-accounts/v1, and Kubernetes. Success 200 MSA CspmGcpAccount. Extra unused keys including environment/private_key ignored. Required parent_id, parent_type. Clone does not persist environment or private keys. |
POST | /cloud-connect-cspm-gcp/entities/account/v2 | Connect GCP account. RPC ConnectGcpAccount. Body JSON {parent_id, parent_type}. parent_type Folder | Organization | Project. Distinct from Create POST /account/v1 and PATCH update /account/v1. Success 200 MSA CspmGcpAccount. |
POST | /cloud-connect-cspm-gcp/entities/account/validate/v1 | Validate GCP accounts. RPC GetGcpValidateAccountsExt. SOURCE GetCSPMGCPValidateAccountsExt. PEP 8 validate_gcp_account. Body JSON {resources}. Success 200 MSA CspmGcpAccountValidation (parent_id, status, service_account_id, empty conditions, gcp_permissions_status, service_account_conditions). Extra unused body keys (parameters, parent_type) ignored. Distinct from GET account /entities/account/v1, POST connect /entities/account/v2, POST create /entities/account/v1, GET service-accounts /entities/service-accounts/v1, GET user-scripts-download /entities/user-scripts-download/v1, POST service-account validate /entities/service-accounts/validate/v1. Clone does not call GCP IAM and does not persist private keys. cspm-registration:write, not read. |
DELETE | /cloud-connect-cspm-gcp/entities/account/v1 | Delete GCP account. RPC DeleteGcpAccount. PEP 8 delete_gcp_account. Query: ids (required). Empty body. Success 200 empty resources. Distinct from Connect POST /account/v2 and PATCH update /account/v1. |
Filters are exact match. Empty query params return every account in this
CID. status other than operational or provisioned → 400.
parent_type other than Folder, Organization, or Project → 400.
limit and offset must be ≥ 0 else 400. Omitted limit defaults
to 100 (capped at 500). Repeated ids / status / parent_type:
OR within a field, AND across fields.
POST connect body JSON {parent_id, parent_type} on /account/v2.
Missing parent_id or parent_type → 400. Duplicate parent_id →
400. parent_type other than Folder, Organization, or Project
→ 400. Extra unused keys including private_key are ignored; the
clone does not persist private keys. Clone success is 200 MSA
CspmGcpAccount (not SOURCE 201/207). POST parent_id=proj-lab-3
/ parent_type=Project returns that account with status provisioned.
cspm-registration:read on POST → 403.
POST create body JSON {parent_id, parent_type} on /account/v1
(distinct from Connect /account/v2). Missing parent_id or
parent_type → 400. Duplicate parent_id → 400. parent_type
other than Folder, Organization, or Project → 400. Extra unused
keys including private_key are ignored; the clone does not persist
private keys or emit grant scripts. Clone success is 200 MSA
CspmGcpAccount (not SOURCE 201/207). POST parent_id=proj-lab-5
/ parent_type=Project returns that account with status provisioned.
cspm-registration:read on POST → 403. This is not PATCH update
(/account/v1).
PATCH update body JSON {parent_id, parent_type} on /account/v1
(distinct from Create POST same path and Connect /account/v2). Missing
parent_id or parent_type → 400. Unknown parent_id → 404.
parent_type other than Folder, Organization, or Project → 400.
Extra unused keys including environment and private_key are ignored;
the clone does not persist environment or private keys. Clone success is
200 MSA CspmGcpAccount (not SOURCE 201/207). PATCH
parent_id=proj-lab-1 / parent_type=Folder returns that account with
parent type Folder. Status and cid stay unchanged. GET ids=proj-lab-1
after PATCH is Folder. cspm-registration:read on PATCH → 403.
cs-local-hosts on PATCH → 403. This is not Create POST
(/account/v1), not Connect (/account/v2), not PATCH
service-account update (/service-accounts/v1), and not Kubernetes.
DELETE query ids (empty body) on /account/v1 (distinct from Connect
/account/v2). ids is required; missing ids → 400. Unknown
parent id → 400. Extra unused query keys (parameters) are ignored.
The clone does not persist private keys. Clone success is 200 empty
resources (not SOURCE 201/207). GET ids=proj-lab-5 after
DELETE is empty. A second DELETE of the same id → 400. If several
ids are sent and any is unknown or empty, 400 and no row is
deleted. cspm-registration:read on DELETE → 403.
cs-local-hosts on DELETE → 403. Do not seed proj-lab-5.
This is not Connect
POST /cloud-connect-cspm-gcp/entities/account/v2. This is not PATCH
update /account/v1.
Empty id on GetGcpServiceAccountsExt returns both seed service
accounts ASC by service_account_id. id=1001 returns that row.
Unknown id → 400 unknown gcp service account id. Extra unused
query keys (parameters) are ignored. service_account_conditions is
always empty. There is no private_key field. Success is JSON MSA
200 CspmGcpServiceAccount. Distinct from GET account
/cloud-connect-cspm-gcp/entities/account/v1, POST connect
/cloud-connect-cspm-gcp/entities/account/v2, PATCH service-account
update /cloud-connect-cspm-gcp/entities/service-accounts/v1, and POST
service-account validate
/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1. The clone
does not persist or return GCP private keys.
PATCH service-account update body JSON {service_account_id, client_email}
on /service-accounts/v1 (distinct from GET same path, POST
service-account validate /service-accounts/validate/v1,
GetGcpValidateAccountsExt POST /account/validate/v1, UpdateGcpAccount
PATCH /account/v1, and Kubernetes). Missing service_account_id (0)
→ 400. Missing client_email → 400. Unknown
service_account_id → 404. Extra unused keys including
private_key, private_key_id, client_id, project_id, resources,
service_account_conditions, and parameters are ignored; the clone
does not persist private keys. Clone success is 200 MSA
CspmGcpServiceAccount (not SOURCE 201). PATCH
service_account_id=1001 /
[email protected] returns that
service account with the new email. client_id and project_id stay
unchanged. service_account_conditions stays empty. GET id=1001
after PATCH matches that email. cspm-registration:read on PATCH →
403. cs-local-hosts on PATCH → 403. This is not GET
service accounts, not POST service-account validate
(/service-accounts/validate/v1), not UpdateGcpAccount
(PATCH /account/v1), and not Kubernetes.
POST service-account validate body JSON {service_account_id} on
/service-accounts/validate/v1 (distinct from GET/PATCH
/service-accounts/v1, GetGcpValidateAccountsExt POST
/account/validate/v1, and Kubernetes). Missing service_account_id
(0) → 400. Unknown service_account_id → 404. Extra unused
keys including private_key, private_key_id, client_email,
client_id, project_id, resources, service_account_conditions,
and parameters are ignored; the clone does not persist private keys
and does not mutate stored email. Clone success is 200 MSA
CspmGcpServiceAccount. POST service_account_id=1001 returns that
service account with the stored email. client_email, client_id, and
project_id stay unchanged. service_account_conditions stays empty.
GET id=1001 after POST matches that same email.
cspm-registration:read on POST → 403. cs-local-hosts on POST →
403. This is not GET service accounts, not
UpdateGcpServiceAccountsExt (PATCH /service-accounts/v1), not
GetGcpValidateAccountsExt (POST /account/validate/v1), and not
Kubernetes.
Empty ids and parent_type on GetGcpUserScriptsAttachment returns
both seed parents proj-lab-1 and proj-lab-2 (ASC), empty
parent_type, both lab emails ASC, and note
This clone does not emit GCP grant scripts. ids=proj-lab-1
returns that parent and email
[email protected]. parent_type=Project
with empty ids returns both projects. Unknown id → 400
unknown gcp account id. Unknown parent_type (not empty and not
Project/Folder/Organization) → 400 unknown parent_type.
Extra unused query keys (parameters) are ignored. There is no bash
field. Success is JSON MSA 200 one CspmGcpScriptAttachment, not a
grant-script file download. Distinct from GET account
/cloud-connect-cspm-gcp/entities/account/v1, GET service-accounts
/cloud-connect-cspm-gcp/entities/service-accounts/v1, and POST connect
/cloud-connect-cspm-gcp/entities/account/v2. The clone does not emit GCP
grant scripts and does not persist private keys.
Empty resources (missing key or []) on GetGcpValidateAccountsExt
returns both seed parents proj-lab-1 (operational, service account
1001) and proj-lab-2 (provisioned, service account 1002) ASC.
resources: ["proj-lab-1"] returns that parent. Unknown id → 400
unknown gcp account id. If several resources are sent and any is
unknown, 400 and no validation rows are returned. Extra unused body
keys (parameters, parent_type) are ignored. conditions,
gcp_permissions_status, and service_account_conditions are always
empty. Success is JSON MSA 200 CspmGcpAccountValidation. Distinct
from GET account /cloud-connect-cspm-gcp/entities/account/v1, POST
connect /cloud-connect-cspm-gcp/entities/account/v2, POST create
/cloud-connect-cspm-gcp/entities/account/v1, GET service-accounts
/cloud-connect-cspm-gcp/entities/service-accounts/v1, GET
user-scripts-download
/cloud-connect-cspm-gcp/entities/user-scripts-download/v1, and POST
service-account validate
/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1. The clone
does not call GCP IAM and does not persist private keys.
cspm-registration:read on POST → 403.
JSON is SOURCE snake_case: parent_id, parent_type, status, cid.
Service-account JSON is SOURCE snake_case: client_email, client_id,
project_id, service_account_conditions, service_account_id.
User-script JSON is SOURCE snake_case: parent_type, ids,
service_account_emails, note.
Validation JSON is SOURCE snake_case: parent_id, status,
service_account_id, conditions, gcp_permissions_status,
service_account_conditions.
This is not Kubernetes, Cloud AWS, Cloud Azure, or the HelloService
template.
Kubernetes uses /kubernetes-protection/entities/kubernetes/clusters/v1:
Kubernetes. CSPM AWS uses
/cloud-connect-cspm-aws/entities/account/v1:
CSPM AWS. CSPM Azure uses
/cloud-connect-cspm-azure/entities/account/v1:
CSPM Azure. Image assessment policies / remaining cloud and other cloud collections
are not implemented (not yet).
Seed accounts
parent_id | parent_type | status |
|---|---|---|
proj-lab-1 | Project | operational |
proj-lab-2 | Project | provisioned |
cid is cid-local-1. Empty filters return both.
status=operational returns proj-lab-1.
ids=proj-lab-1 returns that row.
parent_type=Project returns both (both are Project).
POST connect with proj-lab-3 / Project adds that row with status
provisioned. POST create with proj-lab-5 / Project adds that row
with status provisioned. PATCH parent_id=proj-lab-1 /
parent_type=Folder updates that row to parent type Folder. Status
stays operational. DELETE ids=proj-lab-5 removes that row.
GET after DELETE is empty. proj-lab-5 is not a seed.
Empty service-account id returns 1001 and 1002 (ASC).
id=1001 returns that row.
PATCH service_account_id=1001 /
[email protected] updates that
row's email. client_id and project_id stay unchanged. GET id=1001
after PATCH matches that email.
POST service_account_id=1001 on /service-accounts/validate/v1
returns that row with the stored email. Stored client_email is
unchanged.
Empty user-scripts ids and parent_type returns both parents
proj-lab-1 and proj-lab-2 (ASC), both lab emails, empty
parent_type, and note This clone does not emit GCP grant scripts.
ids=proj-lab-1 returns that parent and email
[email protected].
Empty validate resources returns both parents proj-lab-1 and
proj-lab-2 (ASC) with stored statuses and service account ids 1001
/ 1002. resources: ["proj-lab-1"] returns that parent
(operational, service account 1001). The clone does not call GCP IAM.
Seed service accounts
service_account_id | client_email | client_id | project_id |
|---|---|---|---|
1001 | [email protected] | gcp-sa-client-1 | proj-lab-1 |
1002 | [email protected] | gcp-sa-client-2 | proj-lab-2 |
Empty id returns both. id=1001 returns that row.
service_account_conditions is empty. PATCH service_account_id=1001
/ [email protected] updates
that row's email. client_id and project_id stay unchanged. GET
id=1001 after PATCH matches that email. Extra unused keys including
private_key are ignored. POST service_account_id=1001 on
/service-accounts/validate/v1 returns that row with the stored email.
Stored client_email is unchanged. Extra unused keys including
private_key are ignored. The clone does not persist or return GCP
private keys.
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 accounts (cookie)
Empty filters return at least the two seed ids, including proj-lab-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
status=operational returns proj-lab-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?status=operational'
ids=proj-lab-1 returns that row:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?ids=proj-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/cloud-connect-cspm-gcp/entities/account/v1?status=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/cloud-connect-cspm-gcp/entities/account/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM AWS is a separate
collection: CSPM AWS. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Connect account (cookie)
POST parent_id=proj-lab-3 / parent_type=Project returns that account
with status provisioned. Success is 200 MSA CspmGcpAccount:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-3","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
Duplicate parent_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-3","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
Missing parent_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
Missing parent_type is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-3"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
Unknown parent_type is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-4","parent_type":"bogus"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
cs-local-hosts (hosts:read only) is 403 on POST:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-3","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
No cookie and no Bearer is 401 on POST:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-3","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Create account (cookie)
POST parent_id=proj-lab-5 / parent_type=Project on /account/v1
returns that account with status provisioned. Success is 200 MSA
CspmGcpAccount. This is not Connect (/account/v2). Extra unused
keys including private_key are ignored; the clone does not persist
private keys or emit grant scripts:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-5","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Duplicate parent_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-5","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Missing parent_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Missing parent_type is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-5"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Unknown parent_type is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-6","parent_type":"bogus"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
cs-local-hosts (hosts:read only) is 403 on POST:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-5","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
No cookie and no Bearer is 401 on POST:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-5","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Update account (cookie)
PATCH parent_id=proj-lab-1 / parent_type=Folder on /account/v1
returns that account with parent type Folder. Success is 200 MSA
CspmGcpAccount. This is not Create (POST /account/v1) and not
Connect (POST /account/v2). Extra unused keys including environment
and private_key are ignored; the clone does not persist environment
or private keys. Status stays operational. GET ids=proj-lab-1
after PATCH is Folder:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1","parent_type":"Folder"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Missing parent_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_type":"Folder"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Missing parent_type is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Unknown parent_type is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1","parent_type":"bogus"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Unknown parent id is 404:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-unknown","parent_type":"Folder"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Extra unused keys including environment and private_key are ignored:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1","parent_type":"Folder","environment":"ignored","private_key":"ignored"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
cs-local-hosts (hosts:read only) is 403 on PATCH:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1","parent_type":"Folder"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
No cookie and no Bearer is 401 on PATCH:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1","parent_type":"Folder"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Delete account (cookie)
DELETE ids=proj-lab-5 returns empty resources. Success is 200.
A later GET ids=proj-lab-5 is empty. A second DELETE of the same id
is 400. This is not Connect
(POST /cloud-connect-cspm-gcp/entities/account/v2). Extra unused
query keys (parameters) are ignored. Empty body. The clone does not
persist private keys. POST create proj-lab-5 first if it is missing:
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?ids=proj-lab-5'
Missing ids is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
Unknown parent id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?ids=proj-unknown'
cs-local-hosts (hosts:read only) is 403 on DELETE:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?ids=proj-lab-5'
No cookie and no Bearer is 401 on DELETE:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?ids=proj-lab-5'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
List service accounts (cookie)
Empty id returns seed ids 1001 and 1002 (ASC), emails
[email protected] and
[email protected], empty
service_account_conditions, and no private_key. Success is 200
MSA CspmGcpServiceAccount. Extra unused query keys (parameters) are
ignored. This is not GET account
(/cloud-connect-cspm-gcp/entities/account/v1), not POST connect
(/cloud-connect-cspm-gcp/entities/account/v2), and not PATCH
service-account update (same path, method PATCH), and not POST
service-account validate
(/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1). The clone does not
persist or return GCP private keys:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
id=1001 returns that row:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1?id=1001'
Unknown id 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/cloud-connect-cspm-gcp/entities/service-accounts/v1?id=9999'
Extra unused query keys (parameters) are ignored:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1?parameters=ignored'
cs-local-hosts (hosts:read only) is 403 on GET:
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/cloud-connect-cspm-gcp/entities/service-accounts/v1'
No cookie and no Bearer is 401 on GET:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Update service account (cookie)
PATCH service_account_id=1001 /
[email protected] on
/service-accounts/v1 returns that service account with the new
email. Success is 200 MSA CspmGcpServiceAccount. This is not
GET service accounts (same path, method GET), not UpdateGcpAccount
(PATCH /account/v1), not POST service-account validate
(/service-accounts/validate/v1), not GetGcpValidateAccountsExt
(POST /account/validate/v1), and not Kubernetes. Required
service_account_id, client_email. Extra unused keys including
private_key, private_key_id, client_id, project_id,
resources, service_account_conditions, and parameters are
ignored; the clone does not persist private keys. client_id and
project_id stay unchanged. service_account_conditions stays empty.
GET id=1001 after PATCH matches that email:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001,"client_email":"[email protected]"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
Missing service_account_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"client_email":"[email protected]"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
Missing client_email is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
Unknown service account id is 404:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":9999,"client_email":"[email protected]"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
Extra unused keys including private_key are ignored:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001,"client_email":"[email protected]","private_key":"ignored","private_key_id":"ignored","client_id":"ignored","project_id":"ignored","resources":[],"service_account_conditions":[],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
cs-local-hosts (hosts:read only) is 403 on PATCH:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001,"client_email":"[email protected]"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
No cookie and no Bearer is 401 on PATCH:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001,"client_email":"[email protected]"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Validate service account (cookie)
POST service_account_id=1001 on
/service-accounts/validate/v1 returns that service account with the
stored email. Success is 200 MSA CspmGcpServiceAccount. This is
not GET service accounts (same collection, method GET), not
UpdateGcpServiceAccountsExt (PATCH /service-accounts/v1), not
GetGcpValidateAccountsExt (POST /account/validate/v1), and not
Kubernetes. Required service_account_id. Extra unused keys including
private_key, private_key_id, client_email, client_id,
project_id, resources, service_account_conditions, and
parameters are ignored; the clone does not persist private keys and
does not mutate stored email. client_email, client_id, and
project_id stay unchanged. service_account_conditions stays empty.
GET id=1001 after POST matches that same email:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
Missing service_account_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
Unknown service account id is 404:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":9999}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
Extra unused keys including private_key are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001,"private_key":"ignored","private_key_id":"ignored","client_email":"ignored","client_id":"ignored","project_id":"ignored","resources":[],"service_account_conditions":[],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
cs-local-hosts (hosts:read only) is 403 on POST:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
No cookie and no Bearer is 401 on POST:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Download scripts (cookie)
Empty ids and parent_type return parent ids proj-lab-1 and
proj-lab-2 (ASC), emails [email protected]
and [email protected], empty parent_type,
and note This clone does not emit GCP grant scripts. Success is
200 MSA one CspmGcpScriptAttachment. Extra unused query keys
(parameters) are ignored. There is no bash field. This is not
GET account (/cloud-connect-cspm-gcp/entities/account/v1), not GET
service-accounts (/cloud-connect-cspm-gcp/entities/service-accounts/v1),
not POST connect (/cloud-connect-cspm-gcp/entities/account/v2),
and not a grant-script file download. The clone does not emit GCP
grant scripts and does not persist private keys:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/user-scripts-download/v1'
ids=proj-lab-1 returns that parent and email
[email protected]:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/user-scripts-download/v1?ids=proj-lab-1'
parent_type=Project with empty ids returns both projects:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/user-scripts-download/v1?parent_type=Project'
Unknown id 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/cloud-connect-cspm-gcp/entities/user-scripts-download/v1?ids=proj-unknown'
Unknown parent_type 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/cloud-connect-cspm-gcp/entities/user-scripts-download/v1?parent_type=bogus'
Extra unused query keys (parameters) are ignored:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/user-scripts-download/v1?parameters=ignored'
cs-local-hosts (hosts:read only) is 403 on GET:
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/cloud-connect-cspm-gcp/entities/user-scripts-download/v1'
No cookie and no Bearer is 401 on GET:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/user-scripts-download/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
Validate accounts (cookie)
Empty resources (missing key or []) return parent ids proj-lab-1
and proj-lab-2 (ASC) with stored statuses operational /
provisioned and service account ids 1001 / 1002. Success is
200 MSA CspmGcpAccountValidation. Extra unused body keys
(parameters, parent_type) are ignored. conditions,
gcp_permissions_status, and service_account_conditions are always
empty. This is not GET account
(/cloud-connect-cspm-gcp/entities/account/v1), not POST connect
(/cloud-connect-cspm-gcp/entities/account/v2), not POST create
(/cloud-connect-cspm-gcp/entities/account/v1), not GET
service-accounts (/cloud-connect-cspm-gcp/entities/service-accounts/v1),
and not GET user-scripts-download
(/cloud-connect-cspm-gcp/entities/user-scripts-download/v1), and not
POST service-account validate
(/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1). The clone
does not call GCP IAM and does not persist private keys.
cspm-registration:read on POST → 403:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"resources":[]}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
resources: ["proj-lab-1"] returns that parent (operational, service
account 1001):
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"resources":["proj-lab-1"]}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
Unknown id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"resources":["proj-unknown"]}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
Extra unused body keys (parameters) are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
cs-local-hosts (hosts:read only) is 403 on POST:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"resources":["proj-lab-1"]}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
No cookie and no Bearer is 401 on POST:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"resources":["proj-lab-1"]}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
Image assessment policies / remaining cloud and other cloud collections are not implemented (not yet).
Kubernetes is a separate collection:
Kubernetes. CSPM Azure is a separate
collection (/cloud-connect-cspm-azure/…):
CSPM Azure. This is not the HelloService
template (GET /api/hello).
List (Bearer)
TOKEN='<access_token from a client with cspm-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
cspm-registration:read → 200. A token without that scope
(including hosts:read only, e.g. cs-local-hosts) → 403. Missing
or revoked token → 401. GetCSPMCGPAccount stays
cspm-registration:read. There is no seeded production client with
cspm-registration:read — use the console cookie, or a client you
created with that scope.
Connect (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-3","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v2'
cspm-registration:write → 200 on POST. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. ConnectGcpAccount stays
cspm-registration:write. PEP 8 connect_gcp_account. Distinct from
Create POST /account/v1 and PATCH update /account/v1.
Create (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-5","parent_type":"Project"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
cspm-registration:write → 200 on POST. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. CreateGcpAccount stays
cspm-registration:write. PEP 8 create_gcp_account. Distinct from
Connect POST /account/v2 and PATCH update /account/v1.
Update (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"parent_id":"proj-lab-1","parent_type":"Folder"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1'
cspm-registration:write → 200 on PATCH. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. UpdateGcpAccount stays
cspm-registration:write. SOURCE UpdateCSPMGCPAccount. PEP 8
update_gcp_account. Distinct from Create POST /account/v1, Connect
POST /account/v2, PATCH service-account update /service-accounts/v1,
and Kubernetes. The clone does not persist
environment or private keys.
Delete (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/v1?ids=proj-lab-5'
cspm-registration:write → 200 on DELETE. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. DeleteGcpAccount stays
cspm-registration:write. PEP 8 delete_gcp_account. Distinct from
Connect POST /account/v2 and PATCH update /account/v1.
List service accounts (Bearer)
TOKEN='<access_token from a client with cspm-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
cspm-registration:read → 200. A token without that scope
(including hosts:read only, e.g. cs-local-hosts) → 403. Missing
or revoked token → 401. GetGcpServiceAccountsExt stays
cspm-registration:read. PEP 8 get_gcp_service_account. This is
not GET account /entities/account/v1, not POST connect
/entities/account/v2, not PATCH service-account update
same path, and not POST service-account validate
/entities/service-accounts/validate/v1. The clone does not persist or return GCP
private keys. There is no seeded production client with
cspm-registration:read — use the console cookie, or a client you
created with that scope.
Update service account (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001,"client_email":"[email protected]"}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/v1'
cspm-registration:write → 200 on PATCH. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. UpdateGcpServiceAccountsExt stays
cspm-registration:write. SOURCE UpdateCSPMGCPServiceAccountsExt.
PEP 8 update_gcp_service_account. Distinct from GET service accounts
/service-accounts/v1, POST service-account validate
/service-accounts/validate/v1, GetGcpValidateAccountsExt POST
/account/validate/v1, UpdateGcpAccount PATCH /account/v1, and
Kubernetes. The clone does not persist private keys.
Validate service account (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"service_account_id":1001}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
cspm-registration:write → 200 on POST. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. ValidateGcpServiceAccountsExt stays
cspm-registration:write. SOURCE ValidateCSPMGCPServiceAccountExt.
PEP 8 validate_gcp_service_account. Distinct from GET/PATCH
/service-accounts/v1, GetGcpValidateAccountsExt POST
/account/validate/v1, and Kubernetes. The clone does not persist
private keys and does not mutate stored email.
Download scripts (Bearer)
TOKEN='<access_token from a client with cspm-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/user-scripts-download/v1'
cspm-registration:read → 200. A token without that scope
(including hosts:read only, e.g. cs-local-hosts) → 403. Missing
or revoked token → 401. GetGcpUserScriptsAttachment stays
cspm-registration:read. PEP 8 get_gcp_user_scripts_attachment. This
is not GET account /entities/account/v1, not GET
service-accounts /entities/service-accounts/v1, not POST connect
/entities/account/v2, and not a grant-script file download. There
is no bash field. The clone does not emit GCP grant scripts and does
not persist private keys. There is no seeded production client with
cspm-registration:read — use the console cookie, or a client you
created with that scope.
Validate (Bearer)
TOKEN='<access_token from a client with cspm-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"resources":["proj-lab-1"]}' \
'http://127.0.0.1:8088/cloud-connect-cspm-gcp/entities/account/validate/v1'
cspm-registration:write → 200 on POST. A token without that
scope (including hosts:read only, e.g. cs-local-hosts, or
cspm-registration:read) → 403. Missing or revoked token →
401. There is no product-seeded write client with
cspm-registration:write — use the console cookie, or a client you
created with that scope. GetGcpValidateAccountsExt stays
cspm-registration:write. PEP 8 validate_gcp_account. This is
not GET account /entities/account/v1, not POST connect
/entities/account/v2, not POST create /entities/account/v1,
not PATCH update /entities/account/v1, not GET
service-accounts /entities/service-accounts/v1, and
not GET user-scripts-download /entities/user-scripts-download/v1,
and not POST service-account validate
/entities/service-accounts/validate/v1.
The clone does not call GCP IAM and does not persist private keys.
OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.